mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Make a copy of DeviceProfile before updating its insets
Change-Id: Ic0fb6dd103ac7af810373c8454cb0bad84e7fddd
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user