Loading packages/SettingsLib/src/com/android/settingslib/notification/modes/ZenMode.java +10 −0 Original line number Original line Diff line number Diff line Loading @@ -220,6 +220,16 @@ public class ZenMode implements Parcelable { return getTriggerDescription(); return getTriggerDescription(); } } /** * Returns an icon "key" that is guaranteed to be different if the icon is different. Note that * the inverse is not true, i.e. two keys can be different and the icon still be visually the * same. */ @NonNull public String getIconKey() { return mRule.getType() + ":" + mRule.getPackageName() + ":" + mRule.getIconResId(); } @NonNull @NonNull public ListenableFuture<Drawable> getIcon(@NonNull Context context, public ListenableFuture<Drawable> getIcon(@NonNull Context context, @NonNull ZenIconLoader iconLoader) { @NonNull ZenIconLoader iconLoader) { Loading Loading
packages/SettingsLib/src/com/android/settingslib/notification/modes/ZenMode.java +10 −0 Original line number Original line Diff line number Diff line Loading @@ -220,6 +220,16 @@ public class ZenMode implements Parcelable { return getTriggerDescription(); return getTriggerDescription(); } } /** * Returns an icon "key" that is guaranteed to be different if the icon is different. Note that * the inverse is not true, i.e. two keys can be different and the icon still be visually the * same. */ @NonNull public String getIconKey() { return mRule.getType() + ":" + mRule.getPackageName() + ":" + mRule.getIconResId(); } @NonNull @NonNull public ListenableFuture<Drawable> getIcon(@NonNull Context context, public ListenableFuture<Drawable> getIcon(@NonNull Context context, @NonNull ZenIconLoader iconLoader) { @NonNull ZenIconLoader iconLoader) { Loading