mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 09:35:12 +00:00
fix: Cancel search on back button tap on android
This commit is contained in:
parent
c42ce8d1db
commit
d2247018e6
1 changed files with 4 additions and 0 deletions
|
@ -89,6 +89,10 @@ class ChatListView extends StatelessWidget {
|
||||||
return WillPopScope(
|
return WillPopScope(
|
||||||
onWillPop: () async {
|
onWillPop: () async {
|
||||||
final selMode = controller.selectMode;
|
final selMode = controller.selectMode;
|
||||||
|
if (controller.isSearchMode) {
|
||||||
|
controller.cancelSearch();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (selMode != SelectMode.normal) {
|
if (selMode != SelectMode.normal) {
|
||||||
controller.cancelAction();
|
controller.cancelAction();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue