Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6e5e694 authored by kai.cao's avatar kai.cao Committed by Jorge Ruesga
Browse files

[CMFileManager] Fix "File Manager isn't responding..." pops up after tapping...

[CMFileManager] Fix "File Manager isn't responding..." pops up after tapping "Secure storage" in File Manager

Procedures
1.Go to “File Manager”.
2.Press "Menu" icon on upper left corner,and then tap "Secure storage".
3.Select "CANCEL" when the note "Create storage" pops up.
4.Repeat Step2 again,check the phone

Have no response when pressing "Secure storage",wait about 10-20s,the note "File Manager isn't responding..." pops up.

Change-Id: I8ce4b55002d6fc34f89c4a59404469e7f3637cbc
(cherry picked from commit ebd0462a)
parent 164c3d9e
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -158,6 +158,11 @@ public class SecureStorageKeyPromptDialog
                public void onDismiss(DialogInterface dialog) {
                    mDialog.dismiss();
                    finish();

                    // Unlock the wait
                    synchronized (WAIT_SYNC) {
                        WAIT_SYNC.notify();
                    }
                }
            });
            mDialog.setOnCancelListener(new OnCancelListener() {
@@ -166,6 +171,11 @@ public class SecureStorageKeyPromptDialog
                    sUnlockKeyTemp = null;
                    mDialog.cancel();
                    finish();

                    // Unlock the wait
                    synchronized (WAIT_SYNC) {
                        WAIT_SYNC.notify();
                    }
                }
            });
            mDialog.setCanceledOnTouchOutside(false);
@@ -183,16 +193,6 @@ public class SecureStorageKeyPromptDialog
            mUnlock.setEnabled(false);
        }

        @Override
        protected void onDestroy() {
            super.onDestroy();

            // Unlock the wait
            synchronized (WAIT_SYNC) {
                WAIT_SYNC.notify();
            }
        }

        @Override
        public void onClick(DialogInterface dialog, int which) {
            switch (which) {