OSDN Git Service

Fix Secure SD Card Entry to open folder.
authorherriojr <jherriott@cyngn.com>
Mon, 27 Jul 2015 19:07:09 +0000 (12:07 -0700)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Mon, 27 Jul 2015 21:11:52 +0000 (14:11 -0700)
Whenever the secure folder was opened from the drawer, it would prompt
for a password and then go to the root folder again. This was caused
by the logic in onResume() which is all meant for when entering
another activity and then coming back into this activity. This should
really be the job on onStart() as onResume() also handles dialogs.

Change-Id: I45e0e44e3e8f9031b0685628a3f24c02725e24e1
Ticket: QRDL-946

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

index 93a18a3..dde9fd1 100755 (executable)
@@ -624,8 +624,8 @@ public class NavigationActivity extends Activity
     }
 
     @Override
-    protected void onResume() {
-        super.onResume();
+    protected void onStart() {
+        super.onStart();
 
         if (mSearchView.getVisibility() == View.VISIBLE) {
             closeSearch();