mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-02-01 11:26:48 +01:00
サイドメニューで通知権限の警告をタップしたら端末のアプリ設定を開く
This commit is contained in:
parent
8daad253b9
commit
8eddce5612
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ class PermissionRequester(
|
||||
}
|
||||
}
|
||||
|
||||
private fun openAppSetting(activity: FragmentActivity) {
|
||||
fun openAppSetting(activity: FragmentActivity) {
|
||||
try {
|
||||
Intent(
|
||||
Settings.ACTION_APPLICATION_DETAILS_SETTINGS,
|
||||
|
Loading…
x
Reference in New Issue
Block a user