diff --git a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java index 5938836574..f54eba5edf 100644 --- a/src/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/src/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -120,6 +120,7 @@ public class OCFileListFragment extends ExtendedListFragment { mSystemBarColor = getResources().getColor(R.color.primary_dark); mProgressBarActionModeColor = getResources().getColor(R.color.action_mode_background); mProgressBarColor = getResources().getColor(R.color.primary); + mMultiChoiceModeListener = new MultiChoiceModeListener(); } /** @@ -529,7 +530,6 @@ public class OCFileListFragment extends ExtendedListFragment { */ private void setChoiceModeAsMultipleModal(Bundle savedInstanceState) { setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL); - mMultiChoiceModeListener = new MultiChoiceModeListener(); if (savedInstanceState != null) { mMultiChoiceModeListener.loadStateFrom(savedInstanceState); }