mirror of
https://github.com/TrianguloY/LightningLauncher.git
synced 2025-01-13 20:01:34 +01:00
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:
parent
e90df80bd6
commit
2b9d2db8c3
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue