mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-28 17:52:29 +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);
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user