Skip to content
Snippets Groups Projects
Commit 9aa7a2d6 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

TV: (un)register receiver in onStart/onStop

Fixes MediaparsingService events not received
parent 376cd516
No related branches found
No related tags found
Loading
......@@ -67,8 +67,8 @@ public abstract class BaseTvActivity extends PlaybackServiceActivity {
}
@Override
protected void onResume() {
super.onResume();
protected void onStart() {
super.onStart();
mIsVisible = true;
//Handle network connection state
IntentFilter networkFilter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);
......@@ -87,9 +87,9 @@ public abstract class BaseTvActivity extends PlaybackServiceActivity {
}
@Override
protected void onPause() {
protected void onStop() {
mIsVisible = false;
super.onPause();
super.onStop();
unregisterReceiver(mExternalDevicesReceiver);
LocalBroadcastManager.getInstance(this).unregisterReceiver(mParsingServiceReceiver);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment