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

Commit 12a0e0d1 authored by Andy Mast's avatar Andy Mast Committed by Steve Kondik
Browse files

Themes: System theme should clear wallpaper

CM12's default lockscreen wallpaper is clear. So
applying the system default should clear the wallpaper.

Change-Id: I9a269985009f96c18948aa8db9cef64c245fe431
parent e3d10f7d
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -650,11 +650,7 @@ public class ThemeService extends IThemeService.Stub {
    private boolean setCustomLockScreenWallpaper(String pkgName) {
        WallpaperManager wm = WallpaperManager.getInstance(mContext);
        try {
            if (SYSTEM_DEFAULT.equals(pkgName)) {
                final Bitmap bmp = BitmapFactory.decodeResource(mContext.getResources(),
                        com.android.internal.R.drawable.default_wallpaper);
                wm.setKeyguardBitmap(bmp);
            } else if (TextUtils.isEmpty(pkgName)) {
            if (SYSTEM_DEFAULT.equals(pkgName) || TextUtils.isEmpty(pkgName)) {
                wm.clearKeyguardWallpaper();
            } else {
                InputStream in = ImageUtils.getCroppedKeyguardStream(pkgName, mContext);