MM-20682 Android back button to dismiss status modal first (#3628)
This commit is contained in:
parent
a088edfffd
commit
4c4e1907cb
1 changed files with 5 additions and 1 deletions
|
|
@ -105,7 +105,10 @@ export default class SettingsDrawer extends PureComponent {
|
|||
};
|
||||
|
||||
handleAndroidBack = () => {
|
||||
if (this.drawerRef && this.drawerOpened) {
|
||||
if (this.statusModal) {
|
||||
this.statusModal = false;
|
||||
return false;
|
||||
} else if (this.drawerRef && this.drawerOpened) {
|
||||
this.drawerRef.closeDrawer();
|
||||
return true;
|
||||
}
|
||||
|
|
@ -163,6 +166,7 @@ export default class SettingsDrawer extends PureComponent {
|
|||
},
|
||||
}];
|
||||
|
||||
this.statusModal = true;
|
||||
showModalOverCurrentContext('OptionsModal', {items});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue