Merge "Reset wallpaper state during startup" into pi-dev
am: 6b89784691
Change-Id: I77b1bb00a5b55bb9eb189e981f0bc13217b85260
This commit is contained in:
@@ -45,6 +45,7 @@ import android.annotation.Nullable;
|
||||
import android.app.ActivityManager;
|
||||
import android.app.ActivityOptions;
|
||||
import android.app.AlarmManager;
|
||||
import android.app.IWallpaperManager;
|
||||
import android.app.KeyguardManager;
|
||||
import android.app.Notification;
|
||||
import android.app.NotificationManager;
|
||||
@@ -747,6 +748,14 @@ public class StatusBar extends SystemUI implements DemoMode,
|
||||
Slog.e(TAG, "Failed to register VR mode state listener: " + e);
|
||||
}
|
||||
|
||||
IWallpaperManager wallpaperManager = IWallpaperManager.Stub.asInterface(
|
||||
ServiceManager.getService(Context.WALLPAPER_SERVICE));
|
||||
try {
|
||||
wallpaperManager.setInAmbientMode(false /* ambientMode */, false /* animated */);
|
||||
} catch (RemoteException e) {
|
||||
// Just pass, nothing critical.
|
||||
}
|
||||
|
||||
// end old BaseStatusBar.start().
|
||||
|
||||
// Lastly, call to the icon policy to install/update all the icons.
|
||||
|
||||
Reference in New Issue
Block a user