Skip to content

Commit

Permalink
swapped lines
Browse files Browse the repository at this point in the history
as described in Baseflow#900
  • Loading branch information
mtln committed Oct 25, 2024
1 parent de3cc72 commit ef70339
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions MediaManager/Platforms/Android/MediaSession/MediaBrowserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,7 @@ protected virtual void PrepareNotificationManager()
// nm.CreateNotificationChannel(channel);
//}

PlayerNotificationManager = new Com.Google.Android.Exoplayer2.UI.PlayerNotificationManager.Builder(
this,
ForegroundNotificationId,
ChannelId)
.SetChannelNameResourceId(Resource.String.XamarinMediaManagerName)
.SetChannelDescriptionResourceId(Resource.String.XamarinMediaManagerDescription)
.SetMediaDescriptionAdapter(MediaDescriptionAdapter)
.SetNotificationListener(NotificationListener)
.Build();


//Needed for enabling the notification as a mediabrowser.
NotificationListener = new NotificationListener
Expand Down Expand Up @@ -154,6 +146,16 @@ protected virtual void PrepareNotificationManager()
}
};

PlayerNotificationManager = new Com.Google.Android.Exoplayer2.UI.PlayerNotificationManager.Builder(
this,
ForegroundNotificationId,
ChannelId)
.SetChannelNameResourceId(Resource.String.XamarinMediaManagerName)
.SetChannelDescriptionResourceId(Resource.String.XamarinMediaManagerDescription)
.SetMediaDescriptionAdapter(MediaDescriptionAdapter)
.SetNotificationListener(NotificationListener)
.Build();

//PlayerNotificationManager.SetFastForwardIncrementMs((long)MediaManager.StepSizeForward.TotalMilliseconds);
//PlayerNotificationManager.SetRewindIncrementMs((long)MediaManager.StepSizeBackward.TotalMilliseconds);

Expand Down

0 comments on commit ef70339

Please sign in to comment.