summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-08-06 22:38:58 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-06 22:38:58 +0000
commit7d4ecade5cd3d169a2ec1229b7177f25c0141f97 (patch)
tree6f07f24a32286b355fb89a9caca2f9a7eff8a094
parent916be12215ce79ee1f7b82887b19e405c3a35ea7 (diff)
parentbe729e6fd69f30a97b669b009d608ac7395919c7 (diff)
downloadInCallUI-7d4ecade5cd3d169a2ec1229b7177f25c0141f97.tar.gz
am be729e6f: Catch RuntimeException when calling setExcludeFromRecents
* commit 'be729e6fd69f30a97b669b009d608ac7395919c7': Catch RuntimeException when calling setExcludeFromRecents
-rw-r--r--src/com/android/incallui/InCallActivity.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/incallui/InCallActivity.java b/src/com/android/incallui/InCallActivity.java
index acb11b5a..c6892b21 100644
--- a/src/com/android/incallui/InCallActivity.java
+++ b/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);
+ }
}
}
}