Skip to content

Commit

Permalink
v0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
sriharshaarangi committed May 6, 2017
1 parent 1da73a5 commit 70bc4d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Binary file added app/BatteryChargeLimit-0.9-release.apk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ public static void serviceEnabled(Context context){
if (SharedMethods.isPhonePluggedIn(context)) {
context.startService(new Intent(context, ForegroundService.class));
}
Toast.makeText(context, "enabled", Toast.LENGTH_LONG).show();
Toast.makeText(context, R.string.enabled, Toast.LENGTH_LONG).show();
}
public static void serviceDisabled(Context context){
ForegroundService.ignoreAutoReset();
context.stopService(new Intent(context, ForegroundService.class));
SharedMethods.changeState(context, null, CHARGE_ON);

Toast.makeText(context, "disabled", Toast.LENGTH_LONG).show();
Toast.makeText(context, R.string.disabled, Toast.LENGTH_LONG).show();
}

}
3 changes: 3 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@
<string name="intent_limit_invalid">The supplied limit was invalid.</string>
<string name="intent_limit_accepted">The battery charging limit was changed to %1$d%%.</string>
<string name="mime_battery_limit">text/x-battery-limit</string>

<string name="enabled"> Enabled! </string>
<string name="disabled"> Disabled! </string>
</resources>

0 comments on commit 70bc4d3

Please sign in to comment.