mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-28 01:32:15 +01:00
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
Block a user