From 2b9d2db8c3307a29a7dde04ca9eb3cd63737075b Mon Sep 17 00:00:00 2001 From: TrianguloY Date: Mon, 18 Feb 2019 18:03:12 +0100 Subject: [PATCH] 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. --- .../java/net/pierrox/lightning_launcher/script/api/LL.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/llx/core/src/main/java/net/pierrox/lightning_launcher/script/api/LL.java b/app/llx/core/src/main/java/net/pierrox/lightning_launcher/script/api/LL.java index c037abf..4346e23 100644 --- a/app/llx/core/src/main/java/net/pierrox/lightning_launcher/script/api/LL.java +++ b/app/llx/core/src/main/java/net/pierrox/lightning_launcher/script/api/LL.java @@ -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) + *
LL.isPaused(tag) ~> getHomeScreen().isPaused() */ public boolean isPaused() { boolean paused = true;