Fixed crash

This commit is contained in:
ByteHamster 2019-05-19 19:01:26 +02:00
parent 73744e3d4c
commit ccbcdb6861

View File

@ -154,6 +154,13 @@ public class ExternalPlayerFragment extends Fragment {
}
}
@Subscribe(threadMode = ThreadMode.MAIN)
public void onEventMainThread(ServiceEvent event) {
if (event.action == ServiceEvent.Action.SERVICE_STARTED && controller != null) {
controller.init();
}
}
@Override
public void onDestroy() {
super.onDestroy();