summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-08-06 23:06:42 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-08-06 23:06:42 +0000
commit3880980437573dc11f67590bc5c333b5c26327ec (patch)
treef4ec71c1d098093d6bfeb855ec8ef78ac0886cc1
parent2322b25fee517decd13e42ea2b13663ec60f4a06 (diff)
parente4ce3e43744e82d61a1256467b0e8df48a055509 (diff)
am 816693cf: am b0c84ec0: am 05ca4053: am 7d4ecade: am be729e6f: Catch RuntimeException when calling setExcludeFromRecents
* commit '816693cf5b228ad136f6103c4a7dfca91d54458f': 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);
+ }
}
}
}