summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BubbleTextView.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-06-22 09:53:59 -0700
committerSunny Goyal <sunnygoyal@google.com>2017-06-22 10:25:43 -0700
commit828b11e5a934af781f620620dd20d312defa49b8 (patch)
tree1796b97550999a0e435add39fd49a76f52685278 /src/com/android/launcher3/BubbleTextView.java
parent0d52bca39e23af789217869fc19fa719b063475f (diff)
downloadandroid_packages_apps_Trebuchet-828b11e5a934af781f620620dd20d312defa49b8.tar.gz
android_packages_apps_Trebuchet-828b11e5a934af781f620620dd20d312defa49b8.tar.bz2
android_packages_apps_Trebuchet-828b11e5a934af781f620620dd20d312defa49b8.zip
Setting the callback for previewItems to folderIcon. This allows the FolderIcon to get updated
without going through the child'draw pass. Also simplifying the draw code for the FolderIcon to remove any cycling invalidate calls Bug: 62900800 Change-Id: I17009a5347a1c3c35426313ac759e0240ce6a395
Diffstat (limited to 'src/com/android/launcher3/BubbleTextView.java')
-rw-r--r--src/com/android/launcher3/BubbleTextView.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java
index cb3cbd2bf..f8e87c57f 100644
--- a/src/com/android/launcher3/BubbleTextView.java
+++ b/src/com/android/launcher3/BubbleTextView.java
@@ -30,7 +30,6 @@ import android.graphics.Rect;
import android.graphics.Region;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
-import android.support.annotation.NonNull;
import android.support.v4.graphics.ColorUtils;
import android.util.AttributeSet;
import android.util.Property;
@@ -48,7 +47,6 @@ import com.android.launcher3.IconCache.ItemInfoUpdateReceiver;
import com.android.launcher3.badge.BadgeInfo;
import com.android.launcher3.badge.BadgeRenderer;
import com.android.launcher3.folder.FolderIconPreviewVerifier;
-import com.android.launcher3.folder.FolderPagedView;
import com.android.launcher3.graphics.DrawableFactory;
import com.android.launcher3.graphics.HolographicOutlineHelper;
import com.android.launcher3.graphics.IconPalette;
@@ -209,17 +207,6 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver {
applyFromShortcutInfo(info, false);
}
- @Override
- public void invalidateDrawable(@NonNull Drawable drawable) {
- super.invalidateDrawable(drawable);
-
- if (getParent() != null
- && getParent().getParent() != null
- && getParent().getParent().getParent() instanceof FolderPagedView) {
- ((FolderPagedView) getParent().getParent().getParent()).onIconInvalidated(this);
- }
- }
-
public void applyFromShortcutInfo(ShortcutInfo info, boolean promiseStateChanged) {
applyIconAndLabel(info.iconBitmap, info);
setTag(info);