mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Fix All Apps Search plugin shortcut icon redrawing issue.
BubbleTextViews animate the update from their placeholder icons to their high res icons. Added a field to allow restricting what BubbleTextViews' icon updates should be animated. Updated SearchResultIconRow to store the icon Drawable rather than the resource id to prevent unecessary redrawing. Fixes: 170966269 Demo: https://drive.google.com/file/d/1FBdEl11mHZk1SpCMRY4XZAGt5TVZ01W4/view?usp=sharing Change-Id: Ib55dafdf5b5fed00d343af5f95f3dd3f08c4ee8e
This commit is contained in:
@@ -705,8 +705,13 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
|
||||
updateIcon(icon);
|
||||
|
||||
ItemInfo itemInfo = (ItemInfo) getTag();
|
||||
|
||||
// If the current icon is a placeholder color, animate its update.
|
||||
if (mIcon != null && mIcon instanceof PlaceHolderIconDrawable) {
|
||||
if (mIcon != null
|
||||
&& mIcon instanceof PlaceHolderIconDrawable
|
||||
&& (itemInfo == null
|
||||
|| itemInfo.itemType != LauncherSettings.Favorites.ITEM_TYPE_DEEP_SHORTCUT)) {
|
||||
animateIconUpdate((PlaceHolderIconDrawable) mIcon, icon);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user