mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Fix widget reorder animations in multi-window mode.
The original animation assumed that the views are not translated and not scaled. In multi-window mode this assumption is no longer valid, because app widgets are scaled and translated to fit center within their cells. Bug: 32176631 Change-Id: Id60c793730d982277c9d91860e9fb0e6a0df7d38
This commit is contained in:
@@ -354,8 +354,7 @@ public class AppWidgetResizeFrame extends FrameLayout
|
||||
}
|
||||
|
||||
public void snapToWidget(boolean animate) {
|
||||
DeviceProfile profile = mLauncher.getDeviceProfile();
|
||||
float scale = Math.min(profile.appWidgetScale.x, profile.appWidgetScale.y);
|
||||
float scale = mWidgetView.getScaleToFit();
|
||||
|
||||
mDragLayer.getViewRectRelativeToSelf(mWidgetView, sTmpRect);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user