Skip to content

Commit

Permalink
Fix crash due to double press on search in action bar #113
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Mishchenko committed Sep 24, 2020
1 parent c898806 commit ff0c092
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ def _navigate_to_search(device):
action_bar = device.find(resourceId='com.instagram.android:id/action_bar', className='android.widget.LinearLayout')
search_in_action_bar = action_bar.child(descriptionMatches=SEARCH_CONTENT_DESC_REGEX)
if search_in_action_bar.exists():
# Two clicks to reset tab content
search_in_action_bar.click()
search_in_action_bar.click()
return

Expand Down

0 comments on commit ff0c092

Please sign in to comment.