fix(dialogs): dialog.select() shows checkbox
This commit is contained in:
@@ -8,8 +8,8 @@ android {
|
|||||||
applicationId "com.stardust.scriptdroid"
|
applicationId "com.stardust.scriptdroid"
|
||||||
minSdkVersion 17
|
minSdkVersion 17
|
||||||
targetSdkVersion 23
|
targetSdkVersion 23
|
||||||
versionCode 262
|
versionCode 263
|
||||||
versionName "3.1.1 Alpha6"
|
versionName "3.1.1 Alpha7"
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
ndk {
|
ndk {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ if(content != null){
|
|||||||
ui.content.setText(content);
|
ui.content.setText(content);
|
||||||
}
|
}
|
||||||
ui.save.click(()=>{
|
ui.save.click(()=>{
|
||||||
storage.put("content", ui.content.getText());
|
storage.put("content", ui.content.text());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -80,12 +80,6 @@ public class Dialogs {
|
|||||||
return ((BlockedMaterialDialog.Builder) dialogBuilder(callback)
|
return ((BlockedMaterialDialog.Builder) dialogBuilder(callback)
|
||||||
.itemsCallback()
|
.itemsCallback()
|
||||||
.title(title)
|
.title(title)
|
||||||
.checkBoxPrompt("", true, new CompoundButton.OnCheckedChangeListener() {
|
|
||||||
@Override
|
|
||||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.items((CharSequence[]) items))
|
.items((CharSequence[]) items))
|
||||||
.showAndGet();
|
.showAndGet();
|
||||||
}
|
}
|
||||||
@@ -106,13 +100,6 @@ public class Dialogs {
|
|||||||
return items;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Object getCallback(Object[] args) {
|
|
||||||
if (args.length > 1 && !(args[args.length - 1] instanceof CharSequence)) {
|
|
||||||
return args[args.length - 1];
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ScriptInterface
|
@ScriptInterface
|
||||||
public Object singleChoice(String title, int selectedIndex, String[] items, Object callback) {
|
public Object singleChoice(String title, int selectedIndex, String[] items, Object callback) {
|
||||||
return ((BlockedMaterialDialog.Builder) dialogBuilder(callback)
|
return ((BlockedMaterialDialog.Builder) dialogBuilder(callback)
|
||||||
|
|||||||
Reference in New Issue
Block a user