mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Fixing custom widgets support:
> Moving the definitions to xml so that it is easier to override in derivative projects > Fixing verious bind and save logic for custom widgets > Adding feature flag to easily disable custom widgets Change-Id: I0e278bc7dd415713029364060ef10842da990be9
This commit is contained in:
@@ -22,7 +22,6 @@ import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Build;
|
||||
import android.os.CancellationSignal;
|
||||
import android.os.Handler;
|
||||
import android.os.UserHandle;
|
||||
@@ -412,7 +411,8 @@ public class WidgetPreviewLoader {
|
||||
|
||||
// Draw icon in the center.
|
||||
try {
|
||||
Drawable icon = info.getIcon(launcher, mIconCache);
|
||||
Drawable icon =
|
||||
mIconCache.getFullResIcon(info.provider.getPackageName(), info.icon);
|
||||
if (icon != null) {
|
||||
int appIconSize = launcher.getDeviceProfile().iconSizePx;
|
||||
int iconSize = (int) Math.min(appIconSize * scale,
|
||||
|
||||
Reference in New Issue
Block a user