зеркало из https://github.com/nextcloud/android.git
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
Родитель
27d2970b7d
Коммит
6fccdbb6f2
|
@ -647,7 +647,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
|
|||
|
||||
@Override
|
||||
public void onHeaderClicked() {
|
||||
if (!getAdapter().isMultiSelect() && mContainerActivity instanceof FileDisplayActivity) {
|
||||
if (getAdapter() != null && !getAdapter().isMultiSelect() && mContainerActivity instanceof FileDisplayActivity) {
|
||||
((FileDisplayActivity) mContainerActivity).startRichWorkspacePreview(getCurrentFile());
|
||||
}
|
||||
}
|
||||
|
@ -1075,7 +1075,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
|
|||
fileActivity.checkInternetConnection();
|
||||
}
|
||||
|
||||
if (getCommonAdapter().isMultiSelect()) {
|
||||
if (getCommonAdapter() != null && getCommonAdapter().isMultiSelect()) {
|
||||
toggleItemToCheckedList(file);
|
||||
} else {
|
||||
if (file != null) {
|
||||
|
@ -1205,9 +1205,8 @@ public class OCFileListFragment extends ExtendedListFragment implements
|
|||
return;
|
||||
}
|
||||
|
||||
int position = getCommonAdapter().getItemPosition(file);
|
||||
|
||||
if (file.isFolder()) {
|
||||
if (getCommonAdapter() != null && file.isFolder()) {
|
||||
int position = getCommonAdapter().getItemPosition(file);
|
||||
folderOnItemClick(file, position);
|
||||
} else if (mFileSelectable) {
|
||||
Intent intent = new Intent();
|
||||
|
|
Загрузка…
Ссылка в новой задаче