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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user