Currently, we set canPop = false in android, this means user can't swipe or use preditive back gesture to close the search screen, instead we based on the function inside didPop to close the the chat screen. Inside function it call a method to widget.onCloseSearchPage?.call(); to close the chat screen (why we need this ? because before that SearchPage is one child of PageView). Now, we have seperated the Search into a different screen. We can simply call to context.pop to close the Search screen
Problem:
canPop = false
in android, this means user can't swipe or use preditive back gesture to close the search screen, instead we based on the function insidedidPop
to close the the chat screen. Inside function it call a method towidget.onCloseSearchPage?.call();
to close the chat screen (why we need this ? because before that SearchPage is one child ofPageView
). Now, we have seperated the Search into a different screen. We can simply call tocontext.pop
to close the Search screenDemo:
https://github.com/linagora/twake-on-matrix/assets/43041967/b5868c85-a1d6-41a5-8090-41f5632aef8b