mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Scale RemoteViews from requestPinAppWidget shown in AddItemActivity
Test: manual Bug: 193144010 Change-Id: Ia2b64c32f92a43a8d71ee82f164543e1e624814a
This commit is contained in:
@@ -176,7 +176,9 @@ public abstract class BaseWidgetSheet extends AbstractSlideInView<Launcher>
|
||||
}
|
||||
|
||||
PendingItemDragHelper dragHelper = new PendingItemDragHelper(v);
|
||||
dragHelper.setRemoteViewsPreview(v.getRemoteViewsPreview());
|
||||
// RemoteViews are being rendered in AppWidgetHostView in WidgetCell. And thus, the scale of
|
||||
// RemoteViews is equivalent to the AppWidgetHostView scale.
|
||||
dragHelper.setRemoteViewsPreview(v.getRemoteViewsPreview(), v.getAppWidgetHostViewScale());
|
||||
dragHelper.setAppWidgetHostViewPreview(v.getAppWidgetHostViewPreview());
|
||||
|
||||
if (image.getDrawable() != null) {
|
||||
|
||||
Reference in New Issue
Block a user