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

Commit 830dad9f authored by kai.cao's avatar kai.cao Committed by Stephen Bird
Browse files

[CMFileManager]Fix CMFileManager sometimes crash.

sometimes,the CMFileManager crash.

Change-Id: Id82ec92c680248539bb070c30b6bf45c2feab6ab
(cherry picked from commit 9a75e1b3)
parent cc9d4139
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -450,6 +450,7 @@ public class SearchActivity extends Activity
        } catch (Throwable ex) {
            /**NON BLOCK**/
        }
        recycle();

        //All destroy. Continue
        super.onDestroy();
@@ -1288,10 +1289,13 @@ public class SearchActivity extends Activity
     * Method invoked when the activity needs to exit
     */
    private void exit() {
        finish();
    }

    private void recycle() {
        if (this.mSearchListView.getAdapter() != null) {
            ((SearchResultAdapter)this.mSearchListView.getAdapter()).dispose();
        }
        finish();
    }

    /**