Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72a9387d authored by Lucas Dupin's avatar Lucas Dupin Committed by android-build-merger
Browse files

Merge "Reset wallpaper state during startup" into pi-dev am: 6b897846

am: 1db0eafc

Change-Id: I8701d968649978269b7e1bd97a486ee49366e174
parents b705ebf1 1db0eafc
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -45,6 +45,7 @@ import android.annotation.Nullable;
import android.app.ActivityManager;
import android.app.ActivityManager;
import android.app.ActivityOptions;
import android.app.ActivityOptions;
import android.app.AlarmManager;
import android.app.AlarmManager;
import android.app.IWallpaperManager;
import android.app.KeyguardManager;
import android.app.KeyguardManager;
import android.app.Notification;
import android.app.Notification;
import android.app.NotificationManager;
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);
            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().
        // end old BaseStatusBar.start().


        // Lastly, call to the icon policy to install/update all the icons.
        // Lastly, call to the icon policy to install/update all the icons.