Skip to content

Commit

Permalink
Prevent calling unbind when privacy policy is not accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Jul 31, 2024
1 parent 563f107 commit 375c0c4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ class MainActivity : ComponentActivity(), AndroidScopeComponent {

override fun onStop() {
super.onStop()
serviceConnectionManager.unbind()
if(privacyDisclaimerRepository.hasAcceptedPrivacyDisclosure()) {
serviceConnectionManager.unbind()
}
}

override fun onDestroy() {
Expand Down

0 comments on commit 375c0c4

Please sign in to comment.