mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Merge pull request #1593 from nextcloud/NPE_OCFileListFragment
Prevent NPE in OCFileListFragment
This commit is contained in:
commit
1d6afe34e3
1 changed files with 10 additions and 6 deletions
|
@ -1538,12 +1538,16 @@ public class OCFileListFragment extends ExtendedListFragment implements OCFileLi
|
||||||
}
|
}
|
||||||
|
|
||||||
final FileDisplayActivity fileDisplayActivity = (FileDisplayActivity) getActivity();
|
final FileDisplayActivity fileDisplayActivity = (FileDisplayActivity) getActivity();
|
||||||
fileDisplayActivity.runOnUiThread(new Runnable() {
|
if (fileDisplayActivity != null) {
|
||||||
@Override
|
fileDisplayActivity.runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
@Override
|
||||||
fileDisplayActivity.setIndeterminate(false);
|
public void run() {
|
||||||
}
|
if (fileDisplayActivity != null) {
|
||||||
});
|
fileDisplayActivity.setIndeterminate(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return remoteOperationResult.isSuccess();
|
return remoteOperationResult.isSuccess();
|
||||||
|
|
Loading…
Reference in a new issue