mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Fixing different bitmap sizes in different orientations
> Using a single bitmap icon size > Picking up appropriate density for satisfy the required icon size > Fixing some icon size assumptions during icon animations Bug: 19514688 Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585
This commit is contained in:
@@ -241,6 +241,7 @@ public class WidgetsContainerView extends BaseContainerView
|
||||
Drawable icon = mIconCache.getFullResIcon(createShortcutInfo.activityInfo);
|
||||
preview = Utilities.createIconBitmap(icon, mLauncher);
|
||||
createItemInfo.spanX = createItemInfo.spanY = 1;
|
||||
scale = ((float) mLauncher.getDeviceProfile().iconSizePx) / preview.getWidth();
|
||||
}
|
||||
|
||||
// Don't clip alpha values for the drag outline if we're using the default widget preview
|
||||
|
||||
Reference in New Issue
Block a user