Fixed NullPointerException in AudioPlayer
This commit is contained in:
parent
f72769f8b4
commit
aca79dc5b9
|
@ -658,7 +658,7 @@ public class AudioplayerActivity extends MediaplayerActivity implements ItemDesc
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
if (drawerToggle.onOptionsItemSelected(item)) {
|
if (drawerToggle != null && drawerToggle.onOptionsItemSelected(item)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return super.onOptionsItemSelected(item);
|
return super.onOptionsItemSelected(item);
|
||||||
|
|
Loading…
Reference in New Issue