Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
FIXUP: [droid;network] don't refresh interfaces before CApplication
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Dec 5, 2016
1 parent 8040b42 commit 5f871ed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions xbmc/android/activity/XBMCApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1038,9 +1038,12 @@ void CXBMCApp::onReceive(CJNIIntent intent)
}
else if (action == "android.net.conn.CONNECTIVITY_CHANGE")
{
CNetwork& net = g_application.getNetwork();
CNetworkAndroid* netdroid = static_cast<CNetworkAndroid*>(&net);
netdroid->RetrieveInterfaces();
if (g_application.IsInitialized())
{
CNetwork& net = g_application.getNetwork();
CNetworkAndroid* netdroid = static_cast<CNetworkAndroid*>(&net);
netdroid->RetrieveInterfaces();
}
}
}

Expand Down

0 comments on commit 5f871ed

Please sign in to comment.