Skip to content

Commit

Permalink
Refactor MainService to prevent unnecessary activity starts
Browse files Browse the repository at this point in the history
There should be no logic change. Just moving the code in separate methods
and directly check the condition instead of checking in the activity.

Most of the time this will safe jumping between activities and service
as permissions are only requested the first time.
This helps when automating the start process of a session.
  • Loading branch information
Niels Becker committed Oct 18, 2024
1 parent fac8e2f commit ff16cf4
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 119 deletions.
Loading

0 comments on commit ff16cf4

Please sign in to comment.