Browse Source

replace == with equals call

AndyScherzinger 8 năm trước cách đây
mục cha
commit
aced3f518d

+ 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 (mCurrentListView == mListView) {
+            if (mListView.equals(mCurrentListView)) {
                 Log_OC.v(TAG, "Setting and centering around list position " + referencePosition);
                 mListView.setAndCenterSelection(referencePosition);
             } else {