mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Update notification visuals (part 2)
am: 9407d4ab57
Change-Id: Ie6a8c6605fdb115fee6c46a0e7b60f1e5a3525ac
This commit is contained in:
@@ -43,9 +43,9 @@ import com.android.launcher3.folder.FolderIcon;
|
||||
import com.android.launcher3.folder.FolderIconPreviewVerifier;
|
||||
import com.android.launcher3.graphics.DrawableFactory;
|
||||
import com.android.launcher3.graphics.HolographicOutlineHelper;
|
||||
import com.android.launcher3.graphics.IconPalette;
|
||||
import com.android.launcher3.graphics.PreloadIconDrawable;
|
||||
import com.android.launcher3.model.PackageItemInfo;
|
||||
import com.android.launcher3.popup.PopupContainerWithArrow;
|
||||
|
||||
import java.text.NumberFormat;
|
||||
|
||||
@@ -503,15 +503,14 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver {
|
||||
if (mIcon instanceof FastBitmapDrawable) {
|
||||
BadgeInfo badgeInfo = mLauncher.getPopupDataProvider().getBadgeInfoForItem(itemInfo);
|
||||
BadgeRenderer badgeRenderer = mLauncher.getDeviceProfile().mBadgeRenderer;
|
||||
PopupContainerWithArrow popup = PopupContainerWithArrow.getOpen(mLauncher);
|
||||
if (popup != null) {
|
||||
popup.updateNotificationHeader(badgeInfo, itemInfo);
|
||||
}
|
||||
((FastBitmapDrawable) mIcon).applyIconBadge(badgeInfo, badgeRenderer, animate);
|
||||
}
|
||||
}
|
||||
|
||||
public IconPalette getIconPalette() {
|
||||
return mIcon instanceof FastBitmapDrawable ? ((FastBitmapDrawable) mIcon).getIconPalette()
|
||||
: null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the icon for this view based on the layout direction.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user