|
19 | 19 | import android.content.Intent; |
20 | 20 | import android.content.SharedPreferences; |
21 | 21 | import android.net.Uri; |
22 | | -import android.os.Build; |
23 | 22 | import android.security.KeyChain; |
24 | 23 | import android.security.KeyChainException; |
25 | 24 | import android.util.SparseArray; |
@@ -514,13 +513,11 @@ private void startActivityNotification(@NonNull Intent intent, int decisionId, @ |
514 | 513 | flags |= PendingIntent.FLAG_IMMUTABLE; |
515 | 514 | final PendingIntent call = PendingIntent.getActivity(context, 0, intent, flags); |
516 | 515 | NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context); |
517 | | - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { |
518 | | - NotificationChannel channel = new NotificationChannel( |
519 | | - NOTIFICATION_CHANNEL_ID, |
520 | | - context.getString(R.string.notification_channel_name), |
521 | | - NotificationManager.IMPORTANCE_DEFAULT); |
522 | | - notificationManager.createNotificationChannel(channel); |
523 | | - } |
| 516 | + NotificationChannel channel = new NotificationChannel( |
| 517 | + NOTIFICATION_CHANNEL_ID, |
| 518 | + context.getString(R.string.notification_channel_name), |
| 519 | + NotificationManager.IMPORTANCE_DEFAULT); |
| 520 | + notificationManager.createNotificationChannel(channel); |
524 | 521 | final Notification notification = new NotificationCompat |
525 | 522 | .Builder(context, NOTIFICATION_CHANNEL_ID) |
526 | 523 | .setContentTitle(context.getString(R.string.notification_title_select_client_cert)) |
|
0 commit comments