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

Commit e82f5dc6 authored by Omprakash Dhyade c_odhyad@quicinc.com's avatar Omprakash Dhyade c_odhyad@quicinc.com Committed by Steve Kondik
Browse files

frameworks/base: Add commands to change visibility of wallpaper

In current architecture the wallpaper remains alive even when its not
visible. Provide commands to change visibility of wallpaper.
parent b1687104
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -2243,6 +2243,19 @@ public class WindowManagerService extends IWindowManager.Stub
                    curWallpaperIndex--;
                    WindowState wallpaper = token.windows.get(curWallpaperIndex);
                    try {
                        if (action.equals("hide"))  {
			    if (wallpaper.mWallpaperVisible != false) {
			        wallpaper.mWallpaperVisible = false;
                                wallpaper.mClient.dispatchAppVisibility(false); 
			    }
			}
                        else if (action.equals("show"))  {
			    if (wallpaper.mWallpaperVisible != true) {
			        wallpaper.mWallpaperVisible = true;
                                wallpaper.mClient.dispatchAppVisibility(true); 
			    }
			}
                        else
                            wallpaper.mClient.dispatchWallpaperCommand(action,
                                   x, y, z, extras, sync);
                        // We only want to be synchronous with one wallpaper.