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

Commit 6301d802 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Catching launch errors when trying to go Home while Home is updating." into mnc-dev

parents 420cf236 b8f03072
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import android.widget.Toast;

import com.android.systemui.Prefs;
import com.android.systemui.R;
import com.android.systemui.recents.misc.Console;
import com.android.systemui.recents.misc.DebugTrigger;
import com.android.systemui.recents.misc.ReferenceCountedTrigger;
import com.android.systemui.recents.misc.SystemServicesProxy;
@@ -108,11 +109,16 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView
        public void run() {
            // Finish Recents
            if (mLaunchIntent != null) {
                try {
                    if (mLaunchOpts != null) {
                        startActivityAsUser(mLaunchIntent, mLaunchOpts.toBundle(), UserHandle.CURRENT);
                    } else {
                        startActivityAsUser(mLaunchIntent, UserHandle.CURRENT);
                    }
                } catch (Exception e) {
                    Console.logError(RecentsActivity.this,
                            getString(R.string.recents_launch_error_message, "Home"));
                }
            } else {
                finish();
                overridePendingTransition(R.anim.recents_to_launcher_enter,