Loading res/xml/app_info_settings.xml +1 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ <Preference android:key="battery" android:title="@string/app_battery_usage_title" android:title="@string/battery_details_title" android:summary="@string/summary_placeholder" /> <Preference Loading src/com/android/settings/spa/app/appinfo/AppBatteryPreference.kt +1 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ fun AppBatteryPreference(app: ApplicationInfo) { if (!presenter.isAvailable()) return Preference(object : PreferenceModel { override val title = stringResource(R.string.app_battery_usage_title) override val title = stringResource(R.string.battery_details_title) override val summary = presenter.summary override val enabled = presenter.enabled override val onClick = presenter::startActivity Loading tests/spa_unit/src/com/android/settings/spa/app/appinfo/AppBatteryPreferenceTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -101,7 +101,7 @@ class AppBatteryPreferenceTest { setContent(notInstalledApp) composeTestRule.onNode(hasTextExactly(context.getString(R.string.app_battery_usage_title))) composeTestRule.onNode(hasTextExactly(context.getString(R.string.battery_details_title))) .assertIsDisplayed() .assertIsNotEnabled() } Loading @@ -114,7 +114,7 @@ class AppBatteryPreferenceTest { composeTestRule.onNode( hasTextExactly( context.getString(R.string.app_battery_usage_title), context.getString(R.string.battery_details_title), context.getString(R.string.no_battery_summary), ), ).assertIsDisplayed().assertIsEnabled() Loading Loading
res/xml/app_info_settings.xml +1 −1 Original line number Diff line number Diff line Loading @@ -85,7 +85,7 @@ <Preference android:key="battery" android:title="@string/app_battery_usage_title" android:title="@string/battery_details_title" android:summary="@string/summary_placeholder" /> <Preference Loading
src/com/android/settings/spa/app/appinfo/AppBatteryPreference.kt +1 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ fun AppBatteryPreference(app: ApplicationInfo) { if (!presenter.isAvailable()) return Preference(object : PreferenceModel { override val title = stringResource(R.string.app_battery_usage_title) override val title = stringResource(R.string.battery_details_title) override val summary = presenter.summary override val enabled = presenter.enabled override val onClick = presenter::startActivity Loading
tests/spa_unit/src/com/android/settings/spa/app/appinfo/AppBatteryPreferenceTest.kt +2 −2 Original line number Diff line number Diff line Loading @@ -101,7 +101,7 @@ class AppBatteryPreferenceTest { setContent(notInstalledApp) composeTestRule.onNode(hasTextExactly(context.getString(R.string.app_battery_usage_title))) composeTestRule.onNode(hasTextExactly(context.getString(R.string.battery_details_title))) .assertIsDisplayed() .assertIsNotEnabled() } Loading @@ -114,7 +114,7 @@ class AppBatteryPreferenceTest { composeTestRule.onNode( hasTextExactly( context.getString(R.string.app_battery_usage_title), context.getString(R.string.battery_details_title), context.getString(R.string.no_battery_summary), ), ).assertIsDisplayed().assertIsEnabled() Loading