Bug fix for DateUtils not working as documented
This commit is contained in:
parent
7790ca4592
commit
83898c81cd
@ -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.
|
||||
if (null!=myNoisyAudioStreamReceiver) {
|
||||
this.unregisterReceiver(myNoisyAudioStreamReceiver);
|
||||
myNoisyAudioStreamReceiver=null;
|
||||
try {
|
||||
if (null!=myNoisyAudioStreamReceiver) {
|
||||
this.unregisterReceiver(myNoisyAudioStreamReceiver);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.e("VideoPlayerService", "attempted to unregister a nonregistered service");
|
||||
}
|
||||
if (player != null) {
|
||||
player.release();
|
||||
|
Loading…
Reference in New Issue
Block a user