fix: generated selector code is wrong for exists and waitFor

This commit is contained in:
hyb1996
2018-03-15 19:30:29 +08:00
parent 714cbd5759
commit 9679830c75
3 changed files with 10 additions and 6 deletions

View File

@@ -126,7 +126,7 @@ public class CodeGenerateDialog extends ThemeColorMaterialDialogBuilder {
if (selectMode.getOption(R.string.text_wait_for).checked) {
return CodeGenerator.WAIT_FOR;
}
if (selectMode.getOption(R.string.text_wait_for).checked) {
if (selectMode.getOption(R.string.text_selector_exists).checked) {
return CodeGenerator.EXISTS;
}
return CodeGenerator.FIND_ONE;