mirror of
https://github.com/mueller-ma/PrepaidBalance.git
synced 2024-09-20 00:12:15 +02:00
Show as refreshing after permission granted
This commit is contained in:
parent
c470b3eb11
commit
65637f3819
@ -39,6 +39,7 @@ class MainActivity : AppCompatActivity(), CoroutineScope, SwipeRefreshLayout.OnR
|
||||
ActivityResultContracts.RequestPermission()
|
||||
) { isGranted: Boolean ->
|
||||
if (isGranted) {
|
||||
binding.swiperefresh.isRefreshing = true
|
||||
onRefresh()
|
||||
} else {
|
||||
showSnackbar(R.string.permissions_required)
|
||||
|
Loading…
Reference in New Issue
Block a user