Fixed power saver dialog that keeps showing up even if user did whitelist app
This commit is contained in:
parent
745c532461
commit
ef1c04eab5
1 changed files with 3 additions and 4 deletions
|
@ -197,10 +197,9 @@ public class DeviceUtils {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
Log.w(
|
Log.w(
|
||||||
"[Hacks] Power saver detected, user is going to settings :)");
|
"[Hacks] Power saver detected, user is going to settings :)");
|
||||||
if (doNotAskAgain.isChecked()) {
|
// If user is going into the settings,
|
||||||
LinphonePreferences.instance()
|
// assume it will make the change so don't prompt again
|
||||||
.powerSaverDialogPrompted(true);
|
LinphonePreferences.instance().powerSaverDialogPrompted(true);
|
||||||
}
|
|
||||||
|
|
||||||
context.startActivity(intent);
|
context.startActivity(intent);
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
|
|
Loading…
Reference in a new issue