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

Commit 336c3849 authored by xiao.hu's avatar xiao.hu Committed by Gerrit Code Review
Browse files

CMFileManager: Fix back press events of SearchActivity

epro:
- SearchActivity to audio file
- Open audio file with small player (e.g. Play Music)
- Press back
- Observe: audio player closes and CMFM SearchActivity up one directory(NavigationActivity)

Change-Id: I4ab1faa1d061eea97050b89e96c1bdf1df66db3f
parent 05ddc9cd
Loading
Loading
Loading
Loading
+5 −12
Original line number Original line Diff line number Diff line
@@ -971,18 +971,11 @@ public class SearchActivity extends Activity
     * {@inheritDoc}
     * {@inheritDoc}
     */
     */
    @Override
    @Override
    public boolean onKeyUp(int keyCode, KeyEvent event) {
    public void onBackPressed() {
        switch (keyCode) {
            case KeyEvent.KEYCODE_BACK:
                // release Console lock held by the async search task
       if (mExecutable != null) {
       if (mExecutable != null) {
            mExecutable.end();
            mExecutable.end();
       }
       }
       back(true, null, false);
       back(true, null, false);
                return true;
            default:
                return super.onKeyUp(keyCode, event);
        }
    }
    }


    /**
    /**