Skip to content

Commit f55769f

Browse files
author
John Spurlock
committed
Low battery dialog should use UserHandle.CURRENT.
Bug:7493313 Change-Id: Ie753633c550e4ce679fbb6f9e0c6adf56392ec87
1 parent 5fff5f0 commit f55769f

File tree

1 file changed

+2
-1
lines changed
  • packages/SystemUI/src/com/android/systemui/power

1 file changed

+2
-1
lines changed

packages/SystemUI/src/com/android/systemui/power/PowerUI.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import android.net.Uri;
3131
import android.os.BatteryManager;
3232
import android.os.Handler;
33+
import android.os.UserHandle;
3334
import android.media.AudioManager;
3435
import android.media.Ringtone;
3536
import android.media.RingtoneManager;
@@ -209,7 +210,7 @@ void showLowBatteryWarning() {
209210
new DialogInterface.OnClickListener() {
210211
@Override
211212
public void onClick(DialogInterface dialog, int which) {
212-
mContext.startActivity(intent);
213+
mContext.startActivityAsUser(intent, UserHandle.CURRENT);
213214
dismissLowBatteryWarning();
214215
}
215216
});

0 commit comments

Comments
 (0)