on app close, close toolbar overlay
This commit is contained in:
parent
dfb45bb20e
commit
6a96811076
1 changed files with 8 additions and 0 deletions
|
|
@ -470,6 +470,14 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
|
||||
@override
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||
// #Pangea
|
||||
// On iOS, if the toolbar is open and the app is closed, then the user goes
|
||||
// back to do more toolbar activities, the toolbar buttons / selection don't
|
||||
// update properly. So, when the user closes the app, close the toolbar overlay.
|
||||
if (state == AppLifecycleState.paused) {
|
||||
clearSelectedEvents();
|
||||
}
|
||||
// Pangea#
|
||||
if (state != AppLifecycleState.resumed) return;
|
||||
setReadMarker();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue