Skip to content

Commit

Permalink
fix #22 className/checkable selector bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaocong committed Dec 25, 2013
1 parent 0b69aa4 commit 6126f72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-18
target=android-19
6 changes: 3 additions & 3 deletions src/com/github/uiautomatorstub/Selector.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ public class Selector {
public UiSelector toUiSelector() {
UiSelector s = new UiSelector();
if ((getMask() & Selector.MASK_CHECKABLE) > 0 && android.os.Build.VERSION.SDK_INT >= 18)
s = s.clickable(this.isClickable());
s = s.checkable(this.isCheckable());
if ((getMask() & Selector.MASK_CHECKED) > 0)
s = s.checked(isChecked());
if ((getMask() & Selector.MASK_CLASSNAME) > 0 && android.os.Build.VERSION.SDK_INT >= 17)
s = s.className(getClassName());
if ((getMask() & Selector.MASK_CLASSNAME) > 0)
s = s.className(getClassName()); // API level 16 should support it.... wrong in Android Java Doc
if ((getMask() & Selector.MASK_CLASSNAMEMATCHES) > 0 && android.os.Build.VERSION.SDK_INT >= 17)
s = s.classNameMatches(getClassNameMatches());
if ((getMask() & Selector.MASK_CLICKABLE) > 0)
Expand Down

0 comments on commit 6126f72

Please sign in to comment.