Эх сурвалжийг харах

use same check as elseware

AndyScherzinger 8 жил өмнө
parent
commit
1a9ce8d517

+ 1 - 1
src/com/owncloud/android/ui/fragment/ExtendedListFragment.java

@@ -207,7 +207,7 @@ public class ExtendedListFragment extends Fragment
 
         if (savedInstanceState != null) {
             int referencePosition = savedInstanceState.getInt(KEY_SAVED_LIST_POSITION);
-            if (mListView.equals(mCurrentListView)) {
+            if (mCurrentListView!= null && mCurrentListView.equals(mListView)) {
                 Log_OC.v(TAG, "Setting and centering around list position " + referencePosition);
                 mListView.setAndCenterSelection(referencePosition);
             } else {