There is a script to dim background when a folder is open.
There is a script to dim background when a folder is open. Is it possible to do the same when opening floating desktop? I can set the wallpaper tint, but the way the script does it looks better.
]]>
< ![CDATA[
I just tried that. It’s not possible for several reasons:
– Neither resumed nor paused event are fired for the floating desktop
– LL.getContext returns a service instead of the overlay in the floating desktop.
Pierre Hébert at least the first is a bug, isn’t it?
]]>
< ![CDATA[
Lukas Morawietz yes, the first one is a big bug. The Service is a Context, so you should be able to use it normally. Regarding dialogs, they don’t play nice with service context because of the window (and the token which is not available in the service). You may try this however:
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
(the app has the right permission to do that)
]]>
< ![CDATA[
The problem I had was: how do I get the dialog?
]]>
< ![CDATA[
With builder.create() before to show it. At this point you can also access views for button or other stuff that are not available from the builder.
]]>
< ![CDATA[
I don’t want to create a dialog, I want to change the background of Lightnings dialog/overlay
]]>