Bug fix for DateUtils not working as documented

This commit is contained in:
dhk2 2020-07-03 22:06:38 -07:00
parent 7790ca4592
commit 83898c81cd

View File

@ -132,9 +132,12 @@ public class VideoPlayerService extends Service {
playerNotificationManager.setPlayer(null);
}
//Was seeing an error when exiting the program about about not unregistering the receiver.
try {
if (null!=myNoisyAudioStreamReceiver) {
this.unregisterReceiver(myNoisyAudioStreamReceiver);
myNoisyAudioStreamReceiver=null;
}
} catch (Exception e) {
Log.e("VideoPlayerService", "attempted to unregister a nonregistered service");
}
if (player != null) {
player.release();