OSDN Git Service

Fix there are no folders in NavigationView Pinned file manager
authorkai.cao <kai.cao@ck-telecom.com>
Wed, 20 May 2015 03:26:05 +0000 (11:26 +0800)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Mon, 25 May 2015 22:59:01 +0000 (22:59 +0000)
Procedures

1.Go to Settings -> Security ->Screen pinning and Open the screen pinning.
2.Go to FileManager and Callout the Recents Task.
3.Press the screen pinning button and lock the CMFileManager screen.
4.Press back key sometimes when the scren pinning toast show.
5.Open DrawerLayout and Press the Internal storage
6.Press the All to enter NavigationView.

There are no folders in NavigationView.

Change-Id: I7bbdad87812a66c346c4632886b42c3c79540373

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

index 741e759..13e28e2 100755 (executable)
@@ -723,6 +723,7 @@ public class NavigationActivity extends Activity
             /**NON BLOCK**/
         }
 
+        recycle();
         //All destroy. Continue
         super.onDestroy();
     }
@@ -2538,6 +2539,10 @@ public class NavigationActivity extends Activity
      * @hide
      */
     void exit() {
+        finish();
+    }
+
+    private void recycle() {
         // Recycle the navigation views
         int cc = this.mNavigationViews.length;
         for (int i = 0; i < cc; i++) {
@@ -2553,7 +2558,6 @@ public class NavigationActivity extends Activity
         } catch (Throwable ex) {
             /**NON BLOCK**/
         }
-        finish();
     }
 
     /**