opt: floaty

This commit is contained in:
hyb1996
2018-01-25 13:05:34 +08:00
parent d6c9fe4f09
commit 401b8cbad0
5 changed files with 48 additions and 40 deletions

View File

@@ -144,6 +144,14 @@ public class UiObject extends AccessibilityNodeInfoCompat {
return t == null ? "" : t.toString();
}
@Override
public CharSequence getText() {
if (isPassword()) {
return "";
}
return super.getText();
}
public String desc() {
CharSequence d = getContentDescription();
return d == null ? null : d.toString();