diff options
author | Yorke Lee <yorkelee@google.com> | 2015-08-06 22:46:22 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-08-06 22:46:22 +0000 |
commit | 907cfe9e454df574e7e2b03358a1ae8ee4336da8 (patch) | |
tree | 38445f9ff0e3fba7c1ff486b6cc74bcdd490999c | |
parent | 304933fa326a6748eab0f3d3401a6c2274b8dc0b (diff) | |
parent | c566659ed916323364ea0cd7593c43650349a10c (diff) |
am 7d4ecade: am be729e6f: Catch RuntimeException when calling setExcludeFromRecents
* commit '7d4ecade5cd3d169a2ec1229b7177f25c0141f97':
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); + } } } } |