notification channel
This commit is contained in:
parent
5f63674799
commit
e1fb5e02a0
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ public class VideoPlayer extends AppCompatActivity {
|
||||||
setContentView(R.layout.activity_video_player);
|
setContentView(R.layout.activity_video_player);
|
||||||
if(Build.VERSION.SDK_INT >=Build.VERSION_CODES.O){
|
if(Build.VERSION.SDK_INT >=Build.VERSION_CODES.O){
|
||||||
|
|
||||||
NotificationChannel channel= new NotificationChannel("playback","Test Notification",NotificationManager.IMPORTANCE_DEFAULT);
|
NotificationChannel channel= new NotificationChannel("playback","Video Playback", NotificationManager.IMPORTANCE_DEFAULT);
|
||||||
NotificationManager manager =getSystemService(NotificationManager.class);
|
NotificationManager manager =getSystemService(NotificationManager.class);
|
||||||
manager.createNotificationChannel(channel);
|
manager.createNotificationChannel(channel);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue