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

Unregister callbacks on disconnect

parent 2a0259cc
No related branches found
No related tags found
No related merge requests found
......@@ -179,10 +179,14 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
}
}
@Override
public void onDisconnected() {
mService.removeCallback(this);
super.onDisconnected();
}
@Override
protected void onStop() {
if (mService != null)
mService.removeCallback(this);
super.onStop();
if (AndroidDevices.isAndroidTv()) {
Intent recommendationIntent = new Intent(this,
......
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