diff options
| author | herriojr <jherriott@cyngn.com> | 2015-07-15 15:58:15 -0700 |
|---|---|---|
| committer | Jon Herriott <jherriott@cyngn.com> | 2015-07-16 14:46:25 -0700 |
| commit | f6a214094043b6de4150f4b33933c3dbbf5eec71 (patch) | |
| tree | 4ffd12e948f76c18944c344358c39f49678e1153 | |
| parent | 84f1c2f4920dc90c75b0d3e94ac8215c8e4de719 (diff) | |
| download | android_packages_apps_CMFileManager-f6a214094043b6de4150f4b33933c3dbbf5eec71.tar.gz android_packages_apps_CMFileManager-f6a214094043b6de4150f4b33933c3dbbf5eec71.tar.bz2 android_packages_apps_CMFileManager-f6a214094043b6de4150f4b33933c3dbbf5eec71.zip | |
Changed NavigationView.refresh() in onResume() of the activity to try
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
(cherry picked from commit 84ff5edc9e6f3331a5324e3f273998e4bed13b58)
| -rw-r--r-- | src/com/cyanogenmod/filemanager/activities/NavigationActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/filemanager/activities/NavigationActivity.java b/src/com/cyanogenmod/filemanager/activities/NavigationActivity.java index 37307987..49d13f55 100644 --- a/src/com/cyanogenmod/filemanager/activities/NavigationActivity.java +++ b/src/com/cyanogenmod/filemanager/activities/NavigationActivity.java @@ -647,7 +647,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(); |
