Merge pull request #108 from AdrianLxM/patch-9

Dismiss editing when fragment is paused
This commit is contained in:
Milos Kozak 2017-01-01 23:59:10 +01:00 committed by GitHub
commit b41d1cc710

View file

@ -344,6 +344,12 @@ public class CircadianPercentageProfileFragment extends Fragment implements Frag
@Override @Override
public void onPause() { public void onPause() {
super.onPause(); super.onPause();
if (basalEditDialog != null && basalEditDialog.isVisible()) {
basalEditDialog.dismiss();
}
basalEditDialog = null;
MainApp.bus().unregister(this); MainApp.bus().unregister(this);
} }