diff options
author | Yorke Lee <yorkelee@google.com> | 2015-08-06 22:38:58 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-08-06 22:38:58 +0000 |
commit | c566659ed916323364ea0cd7593c43650349a10c (patch) | |
tree | ad45ad770d955c9a4d1f2f7e0a18655df13953a5 | |
parent | a95ba9c63fce59bbd02eb4b1cef4d9078f0f97f7 (diff) | |
parent | 202a140e8e89c8fffec84aeefb606d58cb50f6d6 (diff) |
am be729e6f: Catch RuntimeException when calling setExcludeFromRecents
* commit 'be729e6fd69f30a97b669b009d608ac7395919c7':
Catch RuntimeException when calling setExcludeFromRecents
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallActivity.java | 6 |
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); + } } } } |