1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Android: Fixes #4071: Make sure newly created note is saved after sharing content with the app (#4082)

This commit is contained in:
Roman Musin 2020-11-14 16:02:14 +00:00 committed by GitHub
parent cee42a1296
commit fb5f20b308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,11 +14,11 @@ export default class BackButtonDialogBox extends DialogBox {
};
}
componentDidMount() {
BackButtonService.addHandler(this.backHandler_);
}
componentWillUnmount() {
BackButtonService.removeHandler(this.backHandler_);
async componentDidUpdate() {
if (this.state.isVisible) {
BackButtonService.addHandler(this.backHandler_);
} else {
BackButtonService.removeHandler(this.backHandler_);
}
}
}