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