サイドメニューで通知権限の警告をタップしたら端末のアプリ設定を開く

This commit is contained in:
tateisu 2023-02-06 03:12:47 +09:00
parent 8daad253b9
commit 8eddce5612
2 changed files with 4 additions and 2 deletions

View File

@ -534,7 +534,9 @@ class SideMenuAdapter(
)
setOnClickListener {
drawer.closeDrawer(GravityCompat.START)
if (actMain.prNotification.checkOrLaunch()) {
if (actMain.prNotification.spec.listNotGranded(actMain).isNotEmpty()) {
actMain.prNotification.openAppSetting(actMain)
} else {
filterListItems()
}
}

View File

@ -136,7 +136,7 @@ class PermissionRequester(
}
}
private fun openAppSetting(activity: FragmentActivity) {
fun openAppSetting(activity: FragmentActivity) {
try {
Intent(
Settings.ACTION_APPLICATION_DETAILS_SETTINGS,