Skip to content

Commit

Permalink
feat: update event util
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuanhong-Lan committed Dec 24, 2024
1 parent 7e15d5c commit e2bbd18
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions event/event_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@
class EventUtil:
@staticmethod
def is_editable(s: str):
return (".EditText" in s) or ("AutoCompleteTextView" in s)
return ("EditText" in s) or ("AutoCompleteTextView" in s)

@staticmethod
def is_seekbar(s: str):
return ".SeekBar" in s
return "SeekBar" in s

@staticmethod
def is_switch(s: str):
return ".Switch" in s
return "Switch" in s

@staticmethod
def is_text_presentation(s: str):
return ("TextView" in s) or ("android.view.View" == s)

@staticmethod
def is_list(s: str):
return ("ListView" in s) or ("RecyclerView" in s)

0 comments on commit e2bbd18

Please sign in to comment.