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,9 +284,11 @@ public class BoardActivity extends CustomActivity {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
|
||||||
//Release the media player
|
//Release the media player
|
||||||
|
if(mediaPlayer!=null){
|
||||||
mediaPlayer.release();
|
mediaPlayer.release();
|
||||||
mediaPlayer = null;
|
mediaPlayer = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void loadUserImage(){
|
public void loadUserImage(){
|
||||||
//Search for a existing photo
|
//Search for a existing photo
|
||||||
|
|
|
@ -161,9 +161,11 @@ public class IntroActivity extends CustomActivity {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
|
||||||
//Release the media player
|
//Release the media player
|
||||||
|
if(mediaPlayer!=null){
|
||||||
mediaPlayer.release();
|
mediaPlayer.release();
|
||||||
mediaPlayer = null;
|
mediaPlayer = null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@OnClick(R.id.btnImportAccount)
|
@OnClick(R.id.btnImportAccount)
|
||||||
public void importAccount() {
|
public void importAccount() {
|
||||||
|
|
Loading…
Reference in a new issue