diff options
| author | Selim Cinek <cinek@google.com> | 2016-10-19 13:38:32 -0700 |
|---|---|---|
| committer | Selim Cinek <cinek@google.com> | 2016-11-21 14:33:44 -0800 |
| commit | 0242fbb9fdd7db0398a197d0e63d20dcac7cd916 (patch) | |
| tree | 127e369a97f62ca95959f3fa342e12eb5ba4bfbd /core/java/android/view/NotificationHeaderView.java | |
| parent | ad7fac0659185f368fa067e2edc5dda852182efd (diff) | |
Adapted the icon transformation into the shelf
The transformation is now more refined.
Test: Add notifications, scroll
Bug: 32437839
Change-Id: I2d553b2305fae508d2eb94ca4cee18faa41815a1
Diffstat (limited to 'core/java/android/view/NotificationHeaderView.java')
| -rw-r--r-- | core/java/android/view/NotificationHeaderView.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/view/NotificationHeaderView.java b/core/java/android/view/NotificationHeaderView.java index ed4188ef58cf..0da710a1fb33 100644 --- a/core/java/android/view/NotificationHeaderView.java +++ b/core/java/android/view/NotificationHeaderView.java @@ -28,6 +28,8 @@ import android.view.accessibility.AccessibilityNodeInfo; import android.widget.ImageView; import android.widget.RemoteViews; +import com.android.internal.widget.CachingIconView; + import java.util.ArrayList; /** @@ -45,7 +47,7 @@ public class NotificationHeaderView extends ViewGroup { private OnClickListener mExpandClickListener; private HeaderTouchListener mTouchListener = new HeaderTouchListener(); private ImageView mExpandButton; - private View mIcon; + private CachingIconView mIcon; private View mProfileBadge; private View mInfo; private int mIconColor; @@ -123,7 +125,7 @@ public class NotificationHeaderView extends ViewGroup { if (mExpandButton != null) { mExpandButton.setAccessibilityDelegate(mExpandDelegate); } - mIcon = findViewById(com.android.internal.R.id.icon); + mIcon = (CachingIconView) findViewById(com.android.internal.R.id.icon); mProfileBadge = findViewById(com.android.internal.R.id.profile_badge); } @@ -311,7 +313,7 @@ public class NotificationHeaderView extends ViewGroup { return mProfileBadge; } - public View getIcon() { + public CachingIconView getIcon() { return mIcon; } |
