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

Commit 0675f66f authored by cretin45's avatar cretin45 Committed by Gerrit Code Review
Browse files

SystemUI: Prevent search bar flicker between recents and launcher

Issue-id: CYNGNOS-1892

Change-Id: I200ccc319e81762c0485f405279bcc9880f07b71
parent 0d7fd344
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -217,10 +217,8 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView
                Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
        mFinishLaunchHomeRunnable = new FinishRecentsRunnable(homeIntent,
            ActivityOptions.makeCustomAnimation(this,
                mConfig.launchedFromSearchHome ? R.anim.recents_to_search_launcher_enter :
                        R.anim.recents_to_launcher_enter,
                    mConfig.launchedFromSearchHome ? R.anim.recents_to_search_launcher_exit :
                        R.anim.recents_to_launcher_exit));
                 R.anim.recents_to_search_launcher_enter,
                    R.anim.recents_to_search_launcher_exit));

        // Mark the task that is the launch target
        int taskStackCount = stacks.size();
@@ -440,6 +438,14 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView
        }
    }

    @Override
    protected void onResume() {
        if (mConfig.searchBarEnabled && mConfig.launchedFromHome) {
            overridePendingTransition(0, 0);
        }
        super.onResume();
    }

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