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

Commit e1cc6f6a authored by Chen Bai's avatar Chen Bai Committed by Yifei Zhang
Browse files

wallpaper: fix null service manager registered to server

- Don't getService WallPaperManagerService within ctor.

BUG: 277380463
Change-Id: I4297ee0e39318b6ce11744b36fb1690a2e1e10ca
(cherry picked from commit 07871890)
parent feb922b0
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.FileUtils;
import android.os.SystemProperties;
import android.util.Slog;
import android.util.SparseArray;
import android.util.Xml;
@@ -85,8 +86,8 @@ class WallpaperDataParser {
        mWallpaperCropper = wallpaperCropper;
        mImageWallpaper = ComponentName.unflattenFromString(
                context.getResources().getString(R.string.image_wallpaper_component));
        mIsLockscreenLiveWallpaperEnabled = context.getSystemService(WallpaperManager.class)
                .isLockscreenLiveWallpaperEnabled();
        mIsLockscreenLiveWallpaperEnabled =
                SystemProperties.getBoolean("persist.wm.debug.lockscreen_live_wallpaper", false);
    }

    private JournaledFile makeJournaledFile(int userId) {