Load zen mode type icon options from the proper resources
* Move default mode icons from Settings res to core res. * Add array resources for the icon options and their descriptions. * As the initial version of the list, use the default mode icons. Bug: 333901673 Test: atest IconOptionsProviderImplTest Flag: android.app.modes_ui Change-Id: I66669e67a9d607268c05d5ed3df6c9555e57864c
This commit is contained in:
@@ -17,12 +17,13 @@
|
||||
package com.android.settings.notification.modes;
|
||||
|
||||
import androidx.annotation.DrawableRes;
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
|
||||
interface IconOptionsProvider {
|
||||
|
||||
ImmutableList<IconInfo> getIcons();
|
||||
@NonNull ImmutableList<IconInfo> getIcons();
|
||||
|
||||
record IconInfo(@DrawableRes int resId, String description) { }
|
||||
}
|
||||
|
Reference in New Issue
Block a user