update tutorial url
This commit is contained in:
@@ -138,7 +138,7 @@ public class Pref {
|
|||||||
if (docSource == null || docSource.equals("Local")) {
|
if (docSource == null || docSource.equals("Local")) {
|
||||||
return "file:///android_asset/docs/";
|
return "file:///android_asset/docs/";
|
||||||
} else {
|
} else {
|
||||||
return "https://hyb1996.github.io/AutoJs-Docs/";
|
return "https://www.autojs.org/assets/autojs/docs/";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package com.stardust.scriptdroid.ui.main.drawer;
|
package com.stardust.scriptdroid.ui.main.drawer;
|
||||||
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.graphics.Color;
|
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
@@ -73,7 +72,7 @@ import io.reactivex.schedulers.Schedulers;
|
|||||||
@EFragment(R.layout.fragment_drawer)
|
@EFragment(R.layout.fragment_drawer)
|
||||||
public class DrawerFragment extends android.support.v4.app.Fragment {
|
public class DrawerFragment extends android.support.v4.app.Fragment {
|
||||||
|
|
||||||
private static final String URL_SUBLIME_PLUGIN_HELP = "https://github.com/hyb1996/AutoJs-Sublime-Plugin/blob/master/Readme.md";
|
private static final String URL_DEV_PLUGIN = "https://www.autojs.org/topic/968/";
|
||||||
|
|
||||||
@ViewById(R.id.header)
|
@ViewById(R.id.header)
|
||||||
View mHeaderView;
|
View mHeaderView;
|
||||||
@@ -247,7 +246,7 @@ public class DrawerFragment extends android.support.v4.app.Fragment {
|
|||||||
.neutralText(R.string.text_help)
|
.neutralText(R.string.text_help)
|
||||||
.onNeutral((dialog, which) -> {
|
.onNeutral((dialog, which) -> {
|
||||||
setChecked(mConnectionItem, false);
|
setChecked(mConnectionItem, false);
|
||||||
IntentUtil.browse(getActivity(), URL_SUBLIME_PLUGIN_HELP);
|
IntentUtil.browse(getActivity(), URL_DEV_PLUGIN);
|
||||||
})
|
})
|
||||||
.cancelListener(dialog -> setChecked(mConnectionItem, false))
|
.cancelListener(dialog -> setChecked(mConnectionItem, false))
|
||||||
.show();
|
.show();
|
||||||
|
|||||||
@@ -169,6 +169,10 @@ public class UiSelector extends UiGlobalSelector {
|
|||||||
return uiObjectCollection.get(0);
|
return uiObjectCollection.get(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public UiObject findOnce() {
|
||||||
|
return findOnce(0);
|
||||||
|
}
|
||||||
|
|
||||||
public UiObject findOnce(int index) {
|
public UiObject findOnce(int index) {
|
||||||
UiObjectCollection uiObjectCollection = find();
|
UiObjectCollection uiObjectCollection = find();
|
||||||
while (uiObjectCollection.empty()) {
|
while (uiObjectCollection.empty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user