MotoActions: Broadcast doze pulse as current user
- Fixes warning in logcat Change-Id: Ibed659bd5d801a8cdcfe12ec9dd789cb8ce481cb
This commit is contained in:
parent
4a07e9ca98
commit
63d883171d
@ -19,6 +19,7 @@ package org.lineageos.settings.device.doze;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.UserHandle;
|
||||
import android.util.Log;
|
||||
|
||||
import org.lineageos.settings.device.SensorAction;
|
||||
@ -48,7 +49,8 @@ public class DozePulseAction implements SensorAction, ScreenStateNotifier {
|
||||
public void action() {
|
||||
if (mayDoze()) {
|
||||
Log.d(TAG, "Sending doze.pulse intent");
|
||||
mContext.sendBroadcast(new Intent("com.android.systemui.doze.pulse"));
|
||||
Intent pulseIntent = new Intent("com.android.systemui.doze.pulse");
|
||||
mContext.sendBroadcastAsUser(pulseIntent, UserHandle.CURRENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user