add: option 'docs source'

This commit is contained in:
hyb1996
2017-11-27 14:40:37 +08:00
parent f99e844747
commit d882877573
5 changed files with 61 additions and 23 deletions

View File

@@ -146,7 +146,12 @@ public class Pref {
}
public static String getDocumentationUrl() {
return "file:///android_asset/docs/";
String docSource = def().getString(getString(R.string.key_documentation_source), null);
if (docSource == null || docSource.equals("Local")) {
return "file:///android_asset/docs/";
} else {
return "https://hyb1996.github.io/AutoJs-Docs/";
}
}
public static boolean isFloatingMenuShown() {