hyb1996 2018-02-04 14:37:25 +08:00
parent 3b398ec732
commit 9a64b1ef2b
2 changed files with 3 additions and 3 deletions

View File

@ -67,9 +67,9 @@ public class AutoCompletion {
if (mModules == null || mAutoCompleteCallback == null)
return;
findStatementOnCursor(line, cursor);
if (mPropertyPrefill == null && mModuleName == null)
return;
Module module = getModule(mModuleName);
if (mPropertyPrefill == null && module == null)
return;
List<CodeCompletion> completions = findCodeCompletion(module, mPropertyPrefill);
CodeCompletions codeCompletions = new CodeCompletions(cursor, completions);
mAutoCompleteCallback.updateCodeCompletion(codeCompletions);

View File

@ -22,7 +22,7 @@ import java.util.List;
public class DeveloperUtils {
private static final String PACKAGE_NAME = "com.stardust.scriptdroid";
private static final String SIGNATURE = "nPNPcy4Lk/eP6fLvZitP0VPbHdFCbKua77m59vis5fA=";
private static final String SIGNATURE = "nPNPcy4Lk/eP6fLvZitP0VPbHdFCbKua77m59vis5fA=\n";
public static void ensureRunningPackageNotSelf(@Nullable String runningPackage) {
if (PACKAGE_NAME.equals(runningPackage)) {