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

Commit 4324f9f2 authored by Evan Rosky's avatar Evan Rosky
Browse files

Get lockscreen wallpaper even for current user

Bug: 25184308
Change-Id: Id8093eccc82ffa9953eebd3c26fd6861a3749a80
(cherry picked from commit 39704ef5e412b031a7b99c1696f5544f0e4f4e7e)
parent 92a1bd01
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -115,15 +115,13 @@ public class LockscreenWallpaper extends IWallpaperManagerCallback.Stub implemen
                IoUtils.closeQuietly(fd);
            }
        } else {
            if (selectedUser != null && selectedUser.getIdentifier() != currentUserId) {
                // When selected user is different from the current user, show the selected
                // user's static wallpaper.
            if (selectedUser != null) {
                // Show the selected user's static wallpaper.
                return LoaderResult.success(
                        mWallpaperManager.getBitmapAsUser(selectedUser.getIdentifier()));

            } else {
                // When there is no selected user, or it's same as the current user, show the
                // system (possibly dynamic) wallpaper for the selected user.
                // When there is no selected user, show the system wallpaper
                return LoaderResult.success(null);
            }
        }