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.

]]>

5 Commentsto There is a script to dim background when a folder is open.

  1. Anonymous says:

    < ![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?

    ]]>

  2. Anonymous says:

    < ![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)

    ]]>

  3. Anonymous says:

    < ![CDATA[

    The problem I had was: how do I get the dialog?

    ]]>

  4. Anonymous says:

    < ![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.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    I don’t want to create a dialog, I want to change the background of Lightnings dialog/overlay

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *