changed location of setupGUI to prevent nullpointerexeptions when saved fragment had no initiliazed id

This commit is contained in:
pachecosf 2019-01-23 00:01:18 -08:00
parent 494b34d421
commit 6753df01b5

View File

@ -235,6 +235,8 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements
StorageUtils.checkStorageAvailability(this); StorageUtils.checkStorageAvailability(this);
getWindow().setFormat(PixelFormat.TRANSPARENT); getWindow().setFormat(PixelFormat.TRANSPARENT);
setupGUI();
loadMediaInfo();
} }
@Override @Override
@ -278,8 +280,6 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements
controller.release(); controller.release();
} }
controller = newPlaybackController(); controller = newPlaybackController();
setupGUI();
loadMediaInfo();
onPositionObserverUpdate(); onPositionObserverUpdate();
} }