summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2015-06-24 21:21:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-24 21:21:24 +0000
commit6301d802244f6e6c9fc6084e4bedd20ba0bd3064 (patch)
treeeeef0c378d84747ad36f16d623b373c716974b55 /packages
parent420cf236762db164ef8d37b336ee18ba84aab5b6 (diff)
parentb8f03072d46b0d535415c07655b9fe5a8c41fb8f (diff)
downloadframeworks_base-6301d802244f6e6c9fc6084e4bedd20ba0bd3064.zip
frameworks_base-6301d802244f6e6c9fc6084e4bedd20ba0bd3064.tar.gz
frameworks_base-6301d802244f6e6c9fc6084e4bedd20ba0bd3064.tar.bz2
Merge "Catching launch errors when trying to go Home while Home is updating." into mnc-dev
Diffstat (limited to 'packages')
-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();