Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c566659e authored by Yorke Lee's avatar Yorke Lee Committed by Android Git Automerger
Browse files

am be729e6f: Catch RuntimeException when calling setExcludeFromRecents

* commit 'be729e6fd69f30a97b669b009d608ac7395919c7':
  Catch RuntimeException when calling setExcludeFromRecents
parents a95ba9c6 202a140e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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) {
                try {
                    task.setExcludeFromRecents(exclude);
                } catch (RuntimeException e) {
                    Log.e(TAG, "RuntimeException when excluding task from recents.", e);
                }
            }
        }
    }