mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +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:
@@ -121,7 +121,7 @@ public class PendingAppWidgetHostView extends LauncherAppWidgetHostView implemen
|
||||
// 2) Preload icon in the center
|
||||
// 3) Setup icon in the center and app icon in the top right corner.
|
||||
if (mDisabledForSafeMode) {
|
||||
FastBitmapDrawable disabledIcon = Utilities.createIconDrawable(mIcon);
|
||||
FastBitmapDrawable disabledIcon = mLauncher.createIconDrawable(mIcon);
|
||||
disabledIcon.setGhostModeEnabled(true);
|
||||
mCenterDrawable = disabledIcon;
|
||||
mTopCornerDrawable = null;
|
||||
@@ -134,7 +134,7 @@ public class PendingAppWidgetHostView extends LauncherAppWidgetHostView implemen
|
||||
sPreloaderTheme.applyStyle(R.style.PreloadIcon, true);
|
||||
}
|
||||
|
||||
FastBitmapDrawable drawable = Utilities.createIconDrawable(mIcon);
|
||||
FastBitmapDrawable drawable = mLauncher.createIconDrawable(mIcon);
|
||||
mCenterDrawable = new PreloadIconDrawable(drawable, sPreloaderTheme);
|
||||
mCenterDrawable.setCallback(this);
|
||||
mTopCornerDrawable = null;
|
||||
|
||||
Reference in New Issue
Block a user