alternative to isPaused

Although the alternative is different, isPaused is defined as whether the current context is paused (the activity, I guess) which should be the state of the homeScreen, not the other Screens. Still, this difference is explained.
This commit is contained in:
TrianguloY 2019-02-18 18:03:12 +01:00
parent e90df80bd6
commit 2b9d2db8c3

View file

@ -394,7 +394,9 @@ public class LL {
* Returns whether the current context is paused. It often means that Lightning Launcher is not displayed, for instance because another app is running.
* When the script is executed in the background this method always returns true.
*
* @deprecated no alternative
* @deprecated use {@link net.pierrox.lightning_launcher.script.api.screen.Screen#isPaused()} instead together with {@link Lightning#getHomeScreen()}
* (difference: this function returns false if any screen is not paused, not only the HomeScreen. For an exact substitute check all the other screens too)
* <br><code>LL.isPaused(tag) ~> getHomeScreen().isPaused()</code>
*/
public boolean isPaused() {
boolean paused = true;