Loading core/java/android/service/wallpaper/WallpaperService.java +4 −1 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import android.os.Bundle; import android.os.IBinder; import android.os.Looper; import android.os.Message; import android.os.PowerManager; import android.os.Process; import android.os.RemoteException; import android.util.Log; Loading Loading @@ -717,6 +718,8 @@ public abstract class WallpaperService extends Service { mWindow.setSession(mSession); mScreenOn = ((PowerManager)getSystemService(Context.POWER_SERVICE)).isScreenOn(); IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_SCREEN_ON); filter.addAction(Intent.ACTION_SCREEN_OFF); Loading Loading
core/java/android/service/wallpaper/WallpaperService.java +4 −1 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ import android.os.Bundle; import android.os.IBinder; import android.os.Looper; import android.os.Message; import android.os.PowerManager; import android.os.Process; import android.os.RemoteException; import android.util.Log; Loading Loading @@ -717,6 +718,8 @@ public abstract class WallpaperService extends Service { mWindow.setSession(mSession); mScreenOn = ((PowerManager)getSystemService(Context.POWER_SERVICE)).isScreenOn(); IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_SCREEN_ON); filter.addAction(Intent.ACTION_SCREEN_OFF); Loading