changed location of setupGUI to prevent nullpointerexeptions when saved fragment had no initiliazed id
This commit is contained in:
parent
494b34d421
commit
6753df01b5
|
@ -235,6 +235,8 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements
|
|||
StorageUtils.checkStorageAvailability(this);
|
||||
|
||||
getWindow().setFormat(PixelFormat.TRANSPARENT);
|
||||
setupGUI();
|
||||
loadMediaInfo();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -278,8 +280,6 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements
|
|||
controller.release();
|
||||
}
|
||||
controller = newPlaybackController();
|
||||
setupGUI();
|
||||
loadMediaInfo();
|
||||
onPositionObserverUpdate();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue