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
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}