Merge "Pinned animation: Avoid expensive defensive programming."

This commit is contained in:
TreeHugger Robot
2017-03-01 19:11:18 +00:00
committed by Android (Google) Code Review

View File

@@ -1425,16 +1425,6 @@ public class TaskStack extends WindowContainer<Task> implements DimLayer.DimLaye
}
public boolean setPinnedStackSize(Rect bounds, Rect tempTaskBounds) {
synchronized (mService.mWindowMap) {
if (mDisplayContent == null) {
return false;
}
if (mStackId != PINNED_STACK_ID) {
Slog.w(TAG_WM, "Attempt to use pinned stack resize animation helper on"
+ "non pinned stack");
return false;
}
}
try {
mService.mActivityManager.resizePinnedStack(bounds, tempTaskBounds);
} catch (RemoteException e) {