OSDN Git Service

Changed NavigationView.refresh() in onResume() of the activity to try
authorherriojr <jherriott@cyngn.com>
Wed, 15 Jul 2015 22:58:15 +0000 (15:58 -0700)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Thu, 16 Jul 2015 21:45:51 +0000 (14:45 -0700)
to restore the original position.

The only caveat is because the history items don't maintain the scroll
offset, it's not a perfect restore. Ideally, we want to maintain the
scroll offsets of the first item within the AdapterView and restore
those as well.

Change-Id: I69b01bef11e26a29aabd57d2bc3e7853b6f67e08
Ticket: QRDL-922

src/com/cyanogenmod/filemanager/activities/NavigationActivity.java

index ca560c6..93a18a3 100755 (executable)
@@ -641,7 +641,7 @@ public class NavigationActivity extends Activity
         if (curDir != null) {
             VirtualMountPointConsole vc = VirtualMountPointConsole.getVirtualConsoleForPath(
                     mNavigationViews[mCurrentNavigationView].getCurrentDir());
-            getCurrentNavigationView().refresh();
+            getCurrentNavigationView().refresh(true);
             if (vc != null && !vc.isMounted()) {
                 onRequestBookmarksRefresh();
                 removeUnmountedHistory();