mirror of
https://github.com/TrianguloY/LightningLauncher.git
synced 2024-12-26 09:58:20 +01:00
imports cleanup
This commit is contained in:
parent
e5eee7381d
commit
5242393ff7
2 changed files with 6 additions and 5 deletions
|
@ -49,8 +49,8 @@ import net.pierrox.lightning_launcher.Version;
|
|||
import net.pierrox.lightning_launcher.data.FileUtils;
|
||||
import net.pierrox.lightning_launcher.data.Utils;
|
||||
import net.pierrox.lightning_launcher.engine.LightningEngine;
|
||||
import net.pierrox.lightning_launcher.script.ScriptManager;
|
||||
import net.pierrox.lightning_launcher.script.Script;
|
||||
import net.pierrox.lightning_launcher.script.ScriptManager;
|
||||
import net.pierrox.lightning_launcher.script.api.Array;
|
||||
import net.pierrox.lightning_launcher.script.api.Box;
|
||||
import net.pierrox.lightning_launcher.script.api.Container;
|
||||
|
|
|
@ -9,6 +9,7 @@ import android.content.res.Resources;
|
|||
import android.graphics.Color;
|
||||
import android.graphics.Typeface;
|
||||
import android.util.SparseArray;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.faendir.rhino_android.RhinoAndroidHelper;
|
||||
|
||||
|
@ -573,7 +574,7 @@ public class Lightning {
|
|||
context.sendBroadcast(intent);
|
||||
throw pending;
|
||||
} catch(IllegalStateException e) {
|
||||
android.widget.Toast.makeText(context, "cannot wait for Tasker result in this context, set 'synchronous' to false", android.widget.Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(context, "cannot wait for Tasker result in this context, set 'synchronous' to false", Toast.LENGTH_SHORT).show();
|
||||
return false;
|
||||
} finally {
|
||||
org.mozilla.javascript.Context.exit();
|
||||
|
@ -637,13 +638,13 @@ public class Lightning {
|
|||
throw pending;
|
||||
} catch (IllegalStateException e) {
|
||||
// not called with continuation support
|
||||
android.widget.Toast.makeText(context, "cannot display \"" + message + "\" in this context", android.widget.Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(context, "cannot display \"" + message + "\" in this context", Toast.LENGTH_SHORT).show();
|
||||
return false;
|
||||
} finally {
|
||||
org.mozilla.javascript.Context.exit();
|
||||
}
|
||||
} else {
|
||||
android.widget.Toast.makeText(context, message, android.widget.Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -655,7 +656,7 @@ public class Lightning {
|
|||
* @param text message to display
|
||||
*/
|
||||
public void toast(String text){
|
||||
android.widget.Toast.makeText(getScriptScreen().getContext(), text, android.widget.Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(getScriptScreen().getContext(), text, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue