mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Layout and spacing changes for AllApps/Customization drawer
- Also fixing issue where preview images in the customization drawer were not being scaled down Change-Id: I83d1abf019d591954204b87a437eac2ff916dd54
This commit is contained in:
@@ -156,12 +156,16 @@ public class PagedViewIcon extends TextView implements Checkable {
|
||||
}
|
||||
|
||||
public void applyFromResolveInfo(ResolveInfo info, PackageManager packageManager,
|
||||
PagedViewIconCache cache) {
|
||||
PagedViewIconCache cache, boolean scaleUp) {
|
||||
mIconCache = cache;
|
||||
mIconCacheKey = info;
|
||||
mHolographicOutline = mIconCache.getOutline(mIconCacheKey);
|
||||
|
||||
mIcon = Utilities.createIconBitmap(info.loadIcon(packageManager), mContext);
|
||||
if (scaleUp) {
|
||||
mIcon = Bitmap.createScaledBitmap(mIcon, mScaledIconSize,
|
||||
mScaledIconSize, true);
|
||||
}
|
||||
setCompoundDrawablesWithIntrinsicBounds(null, new FastBitmapDrawable(mIcon), null, null);
|
||||
setText(info.loadLabel(packageManager));
|
||||
setTag(info);
|
||||
|
||||
Reference in New Issue
Block a user