Skip to content

Commit

Permalink
fixup svc: register for Announce early
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Jan 26, 2018
1 parent 17a9962 commit 1c31d19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xbmc/platform/android/activity/XBMCApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ void CXBMCApp::onStart()
if (!g_application.IsInitialized())
abort();

g_application.m_ServiceManager->GetAnnouncementManager().AddAnnouncer(this);
CApplicationMessenger::GetInstance().PostMsg(TMSG_DISPLAY_INIT);

// Some intent filters MUST be registered in code rather than through the manifest
Expand Down Expand Up @@ -384,8 +385,6 @@ void CXBMCApp::Initialize()
glGenTextures(5, texture_ids);
for (int i=0; i<5; ++i)
m_texturePool.push_back(texture_ids[i]);

g_application.m_ServiceManager->GetAnnouncementManager().AddAnnouncer(this);
}

void CXBMCApp::Deinitialize(int status)
Expand Down

0 comments on commit 1c31d19

Please sign in to comment.