Merge pull request #108 from AdrianLxM/patch-9
Dismiss editing when fragment is paused
This commit is contained in:
commit
b41d1cc710
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue