Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6cf86a37 authored by Tony Wickham's avatar Tony Wickham
Browse files

Make a copy of DeviceProfile before updating its insets

Change-Id: Ic0fb6dd103ac7af810373c8454cb0bad84e7fddd
parent 71ba4486
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
                    }