diff --git a/android/app/lint-baseline.xml b/android/app/lint-baseline.xml index 8d45af32728b..6253a5a3362b 100644 --- a/android/app/lint-baseline.xml +++ b/android/app/lint-baseline.xml @@ -100,17 +100,6 @@ column="74"/> - - - - Unit) { + if ( + (Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU) && + checkSelfPermission(Manifest.permission.POST_NOTIFICATIONS) == + PackageManager.PERMISSION_GRANTED + ) { + requestPermission(Manifest.permission.POST_NOTIFICATIONS) + } + } + fun Tile.setSubtitleIfSupported(subtitleText: CharSequence) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { this.subtitle = subtitleText