summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2015-06-23 11:52:04 -0700
committerWinson Chung <winsonc@google.com>2015-06-24 14:11:45 -0700
commitb8f03072d46b0d535415c07655b9fe5a8c41fb8f (patch)
treee66803a0bc5e442ffca0aae26eb62cf96704470f /packages/SystemUI/src
parent9bf9a3a99ec29beff823607b5327347434d0f3fe (diff)
downloadframeworks_base-b8f03072d46b0d535415c07655b9fe5a8c41fb8f.zip
frameworks_base-b8f03072d46b0d535415c07655b9fe5a8c41fb8f.tar.gz
frameworks_base-b8f03072d46b0d535415c07655b9fe5a8c41fb8f.tar.bz2
Catching launch errors when trying to go Home while Home is updating.
Bug: 21442898 Change-Id: I7fc74422b220cb02acb195b5c9121ff72bc16dbe
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java b/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
index 3cd769e..da7247c 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
@@ -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,10 +109,15 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView
public void run() {
// Finish Recents
if (mLaunchIntent != null) {
- if (mLaunchOpts != null) {
- startActivityAsUser(mLaunchIntent, mLaunchOpts.toBundle(), UserHandle.CURRENT);
- } else {
- startActivityAsUser(mLaunchIntent, UserHandle.CURRENT);
+ 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();