1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-01-22 23:57:33 +01:00

Mi Band: Make sure live activity gets stopped when using the back button

This commit is contained in:
Andreas Shimokawa 2016-05-15 22:24:37 +02:00
parent 3a1f91b5a8
commit d66f842e9b

View File

@ -351,6 +351,7 @@ public class LiveActivityFragment extends AbstractChartFragment {
@Override
public void onDestroyView() {
onMadeInvisibleInActivity();
LocalBroadcastManager.getInstance(getActivity()).unregisterReceiver(mReceiver);
super.onDestroyView();
}