Validate not null in onDestroy event for the media player
This commit is contained in:
parent
05d04b69af
commit
5ad7d32bbf
2 changed files with 8 additions and 4 deletions
|
@ -284,8 +284,10 @@ public class BoardActivity extends CustomActivity {
|
|||
super.onDestroy();
|
||||
|
||||
//Release the media player
|
||||
mediaPlayer.release();
|
||||
mediaPlayer = null;
|
||||
if(mediaPlayer!=null){
|
||||
mediaPlayer.release();
|
||||
mediaPlayer = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void loadUserImage(){
|
||||
|
|
|
@ -161,8 +161,10 @@ public class IntroActivity extends CustomActivity {
|
|||
super.onDestroy();
|
||||
|
||||
//Release the media player
|
||||
mediaPlayer.release();
|
||||
mediaPlayer = null;
|
||||
if(mediaPlayer!=null){
|
||||
mediaPlayer.release();
|
||||
mediaPlayer = null;
|
||||
}
|
||||
}
|
||||
|
||||
@OnClick(R.id.btnImportAccount)
|
||||
|
|
Loading…
Reference in a new issue