зеркало из 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
|
@Override
|
||||||
public void onHeaderClicked() {
|
public void onHeaderClicked() {
|
||||||
if (!getAdapter().isMultiSelect() && mContainerActivity instanceof FileDisplayActivity) {
|
if (getAdapter() != null && !getAdapter().isMultiSelect() && mContainerActivity instanceof FileDisplayActivity) {
|
||||||
((FileDisplayActivity) mContainerActivity).startRichWorkspacePreview(getCurrentFile());
|
((FileDisplayActivity) mContainerActivity).startRichWorkspacePreview(getCurrentFile());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1075,7 +1075,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
|
||||||
fileActivity.checkInternetConnection();
|
fileActivity.checkInternetConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getCommonAdapter().isMultiSelect()) {
|
if (getCommonAdapter() != null && getCommonAdapter().isMultiSelect()) {
|
||||||
toggleItemToCheckedList(file);
|
toggleItemToCheckedList(file);
|
||||||
} else {
|
} else {
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
|
@ -1205,9 +1205,8 @@ public class OCFileListFragment extends ExtendedListFragment implements
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int position = getCommonAdapter().getItemPosition(file);
|
if (getCommonAdapter() != null && file.isFolder()) {
|
||||||
|
int position = getCommonAdapter().getItemPosition(file);
|
||||||
if (file.isFolder()) {
|
|
||||||
folderOnItemClick(file, position);
|
folderOnItemClick(file, position);
|
||||||
} else if (mFileSelectable) {
|
} else if (mFileSelectable) {
|
||||||
Intent intent = new Intent();
|
Intent intent = new Intent();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче