Background media controls #242

Merged
akinwale merged 2 commits from background-media-controls into master 2018-08-20 17:00:17 +02:00
akinwale commented 2018-08-19 21:18:02 +02:00 (Migrated from github.com)
No description provided.
neb-b (Migrated from github.com) reviewed 2018-08-19 21:18:02 +02:00
skhameneh (Migrated from github.com) reviewed 2018-08-20 16:44:41 +02:00
@ -0,0 +27,4 @@
private static final String NOTIFICATION_CHANNEL_ID = "io.lbry.browser.MEDIA_PLAYER_NOTIFICATION_CHANNEL";
public static final String ACTION_PLAY = "io.lbry.browser.ACTION_MEDIA_PLAY";
skhameneh (Migrated from github.com) commented 2018-08-20 16:44:41 +02:00

Some of these line breaks aren't needed here

Some of these line breaks aren't needed here
skhameneh (Migrated from github.com) approved these changes 2018-08-20 16:47:28 +02:00
@ -0,0 +53,4 @@
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
NotificationChannel channel = new NotificationChannel(
NOTIFICATION_CHANNEL_ID, "LBRY Media", NotificationManager.IMPORTANCE_LOW);
channel.setDescription("LBRY media player");
skhameneh (Migrated from github.com) commented 2018-08-20 16:46:43 +02:00

Does this render within the notification?
Maybe we should adjust this text a bit.

Does this render within the notification? Maybe we should adjust this text a bit.
skhameneh (Migrated from github.com) commented 2018-08-20 16:47:24 +02:00

I'll need to play with this a bit on my device

I'll need to play with this a bit on my device
akinwale (Migrated from github.com) reviewed 2018-08-20 16:56:54 +02:00
@ -0,0 +53,4 @@
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
NotificationChannel channel = new NotificationChannel(
NOTIFICATION_CHANNEL_ID, "LBRY Media", NotificationManager.IMPORTANCE_LOW);
channel.setDescription("LBRY media player");
akinwale (Migrated from github.com) commented 2018-08-20 16:56:54 +02:00

No, it doesn't. Notification channels are usually configured in notification settings on Android 8.0 and higher. Basically, you can turn channels on or off which lets you determine the notifications related to channels that you want to see. https://developer.android.com/training/notify-user/channels

No, it doesn't. Notification channels are usually configured in notification settings on Android 8.0 and higher. Basically, you can turn channels on or off which lets you determine the notifications related to channels that you want to see. https://developer.android.com/training/notify-user/channels
akinwale (Migrated from github.com) reviewed 2018-08-20 16:59:55 +02:00
@ -0,0 +27,4 @@
private static final String NOTIFICATION_CHANNEL_ID = "io.lbry.browser.MEDIA_PLAYER_NOTIFICATION_CHANNEL";
public static final String ACTION_PLAY = "io.lbry.browser.ACTION_MEDIA_PLAY";
akinwale (Migrated from github.com) commented 2018-08-20 16:59:55 +02:00

I usually format this way to improve readability. Also helps when adding Javadocs.

I usually format this way to improve readability. Also helps when adding Javadocs.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-android#242
No description provided.