Skip to content

Commit

Permalink
Do not use restart_app
Browse files Browse the repository at this point in the history
  • Loading branch information
Grennith committed Dec 18, 2023
1 parent d0da21d commit 870a4f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mapadroid/ocr/screenPath.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,11 @@ async def __handle_birthday_screen(self) -> None:
await asyncio.sleep(5)
await self._communicator.passthrough(
"su -c 'am stopservice -n com.mad.pogodroid/.services.HookReceiverService'")
await self._communicator.restart_app("com.nianticlabs.pokemongo")
await self._communicator.stop_app("com.nianticlabs.pokemongo")
await asyncio.sleep(10)
await self._communicator.start_app("com.nianticlabs.pokemongo")
await asyncio.sleep(30)

# After having restarted pogo, we should again be on the birthday screen now and PD is turned off
self._nextscreen = ScreenType.RETURNING
click_x = int((self._width / 2) + (self._width / 4))
Expand Down

0 comments on commit 870a4f3

Please sign in to comment.