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) {
|
||||
Log.w(
|
||||
"[Hacks] Power saver detected, user is going to settings :)");
|
||||
if (doNotAskAgain.isChecked()) {
|
||||
LinphonePreferences.instance()
|
||||
.powerSaverDialogPrompted(true);
|
||||
}
|
||||
// If user is going into the settings,
|
||||
// assume it will make the change so don't prompt again
|
||||
LinphonePreferences.instance().powerSaverDialogPrompted(true);
|
||||
|
||||
context.startActivity(intent);
|
||||
dialog.dismiss();
|
||||
|
|
Loading…
Reference in a new issue