Skip to content

Commit

Permalink
fix: account selecting
Browse files Browse the repository at this point in the history
  • Loading branch information
mastrolube committed Mar 9, 2024
1 parent 6fad04c commit c2f7d14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions GramAddict/core/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def __init__(self, APP_ID):
self.UNIFIED_FOLLOW_LIST_TAB_LAYOUT = (
f"{APP_ID}:id/unified_follow_list_tab_layout"
)
self.USERNAME_TEXTVIEW = f"{APP_ID}:id/username_textview"
self.VIDEO_CONTAINER = f"{APP_ID}:id/video_container"
self.VIEW_PLAY_BUTTON = f"{APP_ID}:id/view_play_button"
self.ZOOMABLE_VIEW_CONTAINER = f"{APP_ID}:id/zoomable_view_container"
Expand Down
2 changes: 1 addition & 1 deletion GramAddict/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ def changeToUsername(self, username: str):
def _find_username(self, username, has_scrolled=False):
list_view = self.device.find(resourceId=ResourceID.LIST)
username_obj = self.device.find(
resourceId=ResourceID.ROW_USER_TEXTVIEW,
resourceIdMatches=f"{ResourceID.ROW_USER_TEXTVIEW}|{ResourceID.USERNAME_TEXTVIEW}",
textMatches=case_insensitive_re(username),
)
if username_obj.exists(Timeout.SHORT):
Expand Down

0 comments on commit c2f7d14

Please sign in to comment.