mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Merge pull request #4539 from nextcloud/ezaquarii/fix-npe-crash-in-ocfilelistfragment
Fix NPE crash in OCFileListFragment when action mode is destroyed
This commit is contained in:
commit
f64485f279
1 changed files with 5 additions and 2 deletions
|
@ -643,8 +643,11 @@ public class OCFileListFragment extends ExtendedListFragment implements
|
||||||
mActiveActionMode = null;
|
mActiveActionMode = null;
|
||||||
|
|
||||||
// reset to previous color
|
// reset to previous color
|
||||||
ThemeUtils.colorStatusBar(getActivity(), mSystemBarColor);
|
final FragmentActivity activity = getActivity();
|
||||||
ThemeUtils.colorToolbarProgressBar(getActivity(), mProgressBarColor);
|
if (activity != null) {
|
||||||
|
ThemeUtils.colorStatusBar(activity, mSystemBarColor);
|
||||||
|
ThemeUtils.colorToolbarProgressBar(activity, mProgressBarColor);
|
||||||
|
}
|
||||||
|
|
||||||
// show FAB on multi selection mode exit
|
// show FAB on multi selection mode exit
|
||||||
if (!mHideFab && !searchFragment) {
|
if (!mHideFab && !searchFragment) {
|
||||||
|
|
Loading…
Reference in a new issue