Make a copy of DeviceProfile before updating its insets

Change-Id: Ic0fb6dd103ac7af810373c8454cb0bad84e7fddd
This commit is contained in:
Tony Wickham
2018-04-10 10:50:32 -07:00
parent 71ba448671
commit 6cf86a37ea

View File

@@ -487,6 +487,7 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity> {
// not valid immediately after rotation, just use the stable insets for now
Rect insets = new Rect();
WindowManagerWrapper.getInstance().getStableInsets(insets);
dp = dp.copy(mContext);
dp.updateInsets(insets);
}