Catching all exceptions when docking.

- Catch all exceptions thrown when docking an activity (similar to when
  we start an activity) to allow us to gracefully handle the failure and
  animate the task back into the stack.

Bug: 28867188
Change-Id: I3f80d261343c0161c5cbfd08a05a1fc6157f653e
This commit is contained in:
Winson
2016-05-21 10:39:53 -07:00
committed by Winson Chung
parent 6a983faab3
commit f60a4af047

View File

@@ -417,8 +417,8 @@ public class SystemServicesProxy {
options.setLaunchStackId(DOCKED_STACK_ID);
mIam.startActivityFromRecents(taskId, options.toBundle());
return true;
} catch (RemoteException | IllegalArgumentException e) {
e.printStackTrace();
} catch (Exception e) {
Log.e(TAG, "Failed to dock task: " + taskId + " with createMode: " + createMode, e);
}
return false;
}