Skip to content

Commit c7f81f5

Browse files
committedJul 31, 2024
Merge branch 'crash-if-privacy-policy-is-not-accepted-and-user-leaves-the-droid-1216'
2 parents 563f107 + 4ca2139 commit c7f81f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/MainActivity.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ class MainActivity : ComponentActivity(), AndroidScopeComponent {
9191

9292
override fun onStop() {
9393
super.onStop()
94-
serviceConnectionManager.unbind()
94+
if (privacyDisclaimerRepository.hasAcceptedPrivacyDisclosure()) {
95+
serviceConnectionManager.unbind()
96+
}
9597
}
9698

9799
override fun onDestroy() {

0 commit comments

Comments
 (0)