Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
Signed-off-by: PranavPurwar <[email protected]>
  • Loading branch information
PranavPurwar committed Aug 14, 2023
1 parent b178dc6 commit f65f74b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/kotlin/org/cosmicide/rewrite/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ class MainActivity : AppCompatActivity() {
Shizuku.addRequestPermissionResultListener(listener)

if (isShizukuInstalled()) {
lifecycleScope.launch {
awaitBinderReceived()
CommonUtils.showSnackBar(binding.root, "Shizuku is ready")
}
if (Shizuku.shouldShowRequestPermissionRationale()) {
requestPermission()
} else {
Expand Down

0 comments on commit f65f74b

Please sign in to comment.