Differentiate battery optimization string.

Bug: 23585186
Change-Id: If98629c7a3204f2600c9d7d9c257de24e826f085
This commit is contained in:
Julia Reynolds
2015-09-04 10:36:57 -04:00
parent 68a28751a2
commit f08185b8e3
2 changed files with 2 additions and 2 deletions

View File

@@ -6740,7 +6740,7 @@
<string name="high_power_filter_on">Not optimized</string>
<!-- Summary of app allowed to use a lot of power [CHAR LIMIT=60] -->
<string name="high_power_on">Ignoring battery optimization</string>
<string name="high_power_on">Not optimized</string>
<!-- Summary of app not allowed to use a lot of power [CHAR LIMIT=60] -->
<string name="high_power_off">Optimizing battery use</string>

View File

@@ -143,7 +143,7 @@ public class HighPowerDetail extends DialogFragment implements OnClickListener,
public static CharSequence getSummary(Context context, String pkg) {
PowerWhitelistBackend powerWhitelist = PowerWhitelistBackend.getInstance();
return context.getString(powerWhitelist.isSysWhitelisted(pkg) ? R.string.high_power_system
: powerWhitelist.isWhitelisted(pkg) ? R.string.high_power_filter_on
: powerWhitelist.isWhitelisted(pkg) ? R.string.high_power_on
: R.string.high_power_off);
}