dekans
03/12/2019, 3:20 PMSergey Chelombitko
03/12/2019, 3:27 PMdekans
03/12/2019, 3:29 PMonDestroy
, then ask again in new instanceSergey Chelombitko
03/12/2019, 3:32 PMdekans
03/12/2019, 3:36 PMdekans
03/12/2019, 3:36 PMdekans
03/12/2019, 3:37 PMsuspend function
is a bit tricky about activity recreation.uhe
03/12/2019, 4:55 PMhmole
03/13/2019, 3:29 PMuhe
03/13/2019, 3:31 PMhmole
03/13/2019, 3:43 PMuhe
03/13/2019, 3:43 PMuhe
03/13/2019, 3:49 PMclass SomePresenter {
fun onUserClickedRemove() = launch {
if (view.userConfirmsDeletion()) // suspends until user has made their choice
delete()
}
}
dekans
03/13/2019, 4:06 PMActivity
instance.
In my onboarding activity, the click on 'next' button also checks if perm is already granted.
If you grant perm after activity rotation, the old activity doesn't receive it (scope.cancel()
has been fired)
But permission is granted by Android, so the new check returns truedekans
03/13/2019, 4:07 PMlouiscad
03/16/2019, 3:08 PMuhe
03/18/2019, 9:13 AMuhe
03/18/2019, 9:14 AM