- Fixes warning in logcat
Change-Id: Ibed659bd5d801a8cdcfe12ec9dd789cb8ce481cb
import android.content.Context;
import android.content.Intent;
+import android.os.UserHandle;
import android.util.Log;
import org.lineageos.settings.device.SensorAction;
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);
}
}