浏览代码

replace == with equals call

AndyScherzinger 8 年之前
父节点
当前提交
aced3f518d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/com/owncloud/android/ui/fragment/ExtendedListFragment.java

+ 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 {