Differentiate battery optimization string.
Bug: 23585186 Change-Id: If98629c7a3204f2600c9d7d9c257de24e826f085
This commit is contained in:
@@ -6740,7 +6740,7 @@
|
|||||||
<string name="high_power_filter_on">Not optimized</string>
|
<string name="high_power_filter_on">Not optimized</string>
|
||||||
|
|
||||||
<!-- Summary of app allowed to use a lot of power [CHAR LIMIT=60] -->
|
<!-- 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] -->
|
<!-- Summary of app not allowed to use a lot of power [CHAR LIMIT=60] -->
|
||||||
<string name="high_power_off">Optimizing battery use</string>
|
<string name="high_power_off">Optimizing battery use</string>
|
||||||
|
@@ -143,7 +143,7 @@ public class HighPowerDetail extends DialogFragment implements OnClickListener,
|
|||||||
public static CharSequence getSummary(Context context, String pkg) {
|
public static CharSequence getSummary(Context context, String pkg) {
|
||||||
PowerWhitelistBackend powerWhitelist = PowerWhitelistBackend.getInstance();
|
PowerWhitelistBackend powerWhitelist = PowerWhitelistBackend.getInstance();
|
||||||
return context.getString(powerWhitelist.isSysWhitelisted(pkg) ? R.string.high_power_system
|
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);
|
: R.string.high_power_off);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user