Add name and icon for AOD

Keep it in both app list and full usage list for now,
so we don't need to update smearing code.

Bug: 77156569
Test: Screenshot | RunSettingsRoboTests
Change-Id: I5247da90ea591b226cafef8f2d1ffcbff387b62f
This commit is contained in:
Lei Yu
2018-04-05 15:01:52 -07:00
parent cf60ff7e08
commit 85bab3d4d9
3 changed files with 51 additions and 0 deletions

View File

@@ -209,6 +209,10 @@ public class BatteryEntry {
name = context.getResources().getString(R.string.power_camera);
iconId = R.drawable.ic_settings_camera;
break;
case AMBIENT_DISPLAY:
name = context.getResources().getString(R.string.ambient_display_screen_title);
iconId = R.drawable.ic_settings_aod;
break;
}
if (iconId > 0) {
icon = context.getDrawable(iconId);