Skip to content

Commit

Permalink
refactor: set RimeWrapper.canStart if permissions granted
Browse files Browse the repository at this point in the history
  • Loading branch information
goofyz committed Dec 30, 2023
1 parent 50ca063 commit 65182fa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ class PrefMainActivity : AppCompatActivity() {
) {
if (all) {
ToastUtils.showShort(R.string.external_storage_permission_granted)
RimeWrapper.canStart = true
SoundThemeManager.init()
}
}
Expand All @@ -189,6 +190,7 @@ class PrefMainActivity : AppCompatActivity() {
permissions: List<String>,
never: Boolean,
) {
RimeWrapper.canStart = false
if (never) {
ToastUtils.showShort(R.string.external_storage_permission_denied)
XXPermissions.startPermissionActivity(
Expand Down

0 comments on commit 65182fa

Please sign in to comment.