summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-08-06 22:58:37 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-06 22:58:37 +0000
commite4ce3e43744e82d61a1256467b0e8df48a055509 (patch)
tree3173a1960f34d292fd7b8206b07f9f428f956289
parent81df882e78e995d97e747378447b0f9cb1f489e4 (diff)
parent3376dd48453e6587a37e5e58e431d816fd9d6160 (diff)
am b0c84ec0: am 05ca4053: am 7d4ecade: am be729e6f: Catch RuntimeException when calling setExcludeFromRecents
* commit 'b0c84ec0af3161eb685519d36ea9a1a67ceb30c4': Catch RuntimeException when calling setExcludeFromRecents
-rw-r--r--InCallUI/src/com/android/incallui/InCallActivity.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java
index acb11b5a7..c6892b21a 100644
--- a/InCallUI/src/com/android/incallui/InCallActivity.java
+++ b/InCallUI/src/com/android/incallui/InCallActivity.java
@@ -871,7 +871,11 @@ public class InCallActivity extends Activity implements FragmentDisplayManager {
for (int i=0; i<tasks.size(); i++) {
ActivityManager.AppTask task = tasks.get(i);
if (task.getTaskInfo().id == taskId) {
- task.setExcludeFromRecents(exclude);
+ try {
+ task.setExcludeFromRecents(exclude);
+ } catch (RuntimeException e) {
+ Log.e(TAG, "RuntimeException when excluding task from recents.", e);
+ }
}
}
}