Add uninstall button

This commit is contained in:
topjohnwu
2017-02-06 03:19:41 +08:00
parent 9150bf720d
commit 6e28a26015
6 changed files with 231 additions and 4 deletions
@@ -284,7 +284,7 @@ public class Async {
Utils.getAlertDialogBuilder(mContext)
.setTitle(R.string.reboot_title)
.setMessage(R.string.reboot_msg)
.setPositiveButton(R.string.reboot, (dialogInterface, i) -> Shell.sh("su -c reboot"))
.setPositiveButton(R.string.reboot, (dialogInterface, i) -> Shell.su(true, "reboot"))
.setNegativeButton(R.string.no_thanks, null)
.show();
}