Add cancel button to permission dialogs
This commit is contained in:
@@ -350,6 +350,7 @@ class MainActivity : AbstractActivity(), ServiceConnection.Callback {
|
||||
.setPositiveButton(R.string.ok) { _, _ ->
|
||||
requestFineLocationPermission0()
|
||||
}
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.setCancelable(false)
|
||||
.show()
|
||||
}
|
||||
@@ -375,6 +376,7 @@ class MainActivity : AbstractActivity(), ServiceConnection.Callback {
|
||||
.setPositiveButton(R.string.ok) { _, _ ->
|
||||
backgroundLocationPermissionLauncher.launch(Manifest.permission.ACCESS_BACKGROUND_LOCATION)
|
||||
}
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.setCancelable(false)
|
||||
.show()
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
<string name="stop">Stop</string>
|
||||
<string name="ok">OK</string>
|
||||
<string name="cancel">Cancel</string>
|
||||
<string name="no_thanks">No, thanks</string>
|
||||
|
||||
<string name="title_dashboard">Dashboard</string>
|
||||
|
||||
Reference in New Issue
Block a user