Refactor Power Usage Time Page.

- Show use time category

Screenshot:
[Screen time with hint] https://screenshot.googleplex.com/3cRLrwevzw4iytb
[Background time with hint] https://screenshot.googleplex.com/zEf8PcWopCVCRZR
[without hint] https://screenshot.googleplex.com/9bao9sVd8s7VRwM
[enter from app info (without category)] https://screenshot.googleplex.com/8sozxMrq8ojadiF

Bug: 302063050
Test: Manual
Change-Id: Ic967d05a173afa76c2a958e1332dedd9f83cd687
This commit is contained in:
mxyyiyi
2023-09-25 18:57:33 +08:00
parent d11b9d1647
commit 1b9eb170dd
14 changed files with 407 additions and 79 deletions

View File

@@ -126,8 +126,10 @@ private class AppBatteryPresenter(private val context: Context, private val app:
AppInfoSettingsProvider.METRICS_CATEGORY,
this,
Utils.formatPercentage(percentage, true),
null,
false,
/*slotInformation=*/ null,
/*showTimeInformation=*/ false,
/*anomalyHintPrefKey=*/ null,
/*anomalyHintText=*/ null
)
}