Merge pull request #649 from carstendev/rotation-crash-fix

Fix for #448. Rotation change in FolderPicker caused app crash.
This commit is contained in:
Mario Đanić 2017-02-13 10:34:16 +01:00 committed by GitHub
commit bfb0fdf763

View file

@ -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);
}