OSDN Git Service

onResume: Refresh current view
authorStephen Bird <sbird@cyngn.com>
Thu, 11 Jun 2015 20:34:27 +0000 (13:34 -0700)
committerStephen Bird <sbird@cyngn.com>
Thu, 11 Jun 2015 20:42:52 +0000 (20:42 +0000)
Sometimes files get deleted while FM is in
the background. Let's update the list of
current items every time we resume just in
case.

Change-Id: Ib3076ec97d9a0af23f57bb83bff6e0de9c728285

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

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