From 6bc5d324b5f4fa7452cde3263b427397061ef03c Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Mon, 14 Feb 2022 17:50:13 +0100 Subject: [PATCH] fix to show searchbar after bottom dialog operations Signed-off-by: Marcel Hibbe --- .../talk/controllers/ConversationsListController.java | 1 + .../controllers/bottomsheet/OperationsMenuController.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/app/src/main/java/com/nextcloud/talk/controllers/ConversationsListController.java b/app/src/main/java/com/nextcloud/talk/controllers/ConversationsListController.java index 3717b5f8e..ec9ff0da3 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/ConversationsListController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/ConversationsListController.java @@ -452,6 +452,7 @@ public class ConversationsListController extends BaseController implements Searc return false; } + @Override protected void showSearchOrToolbar() { if (TextUtils.isEmpty(searchQuery)) { super.showSearchOrToolbar(); diff --git a/app/src/main/java/com/nextcloud/talk/controllers/bottomsheet/OperationsMenuController.java b/app/src/main/java/com/nextcloud/talk/controllers/bottomsheet/OperationsMenuController.java index 2b5638e4a..faf8f78f6 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/bottomsheet/OperationsMenuController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/bottomsheet/OperationsMenuController.java @@ -807,4 +807,9 @@ public class OperationsMenuController extends BaseController { dispose(); } } + + @Override + public AppBarLayoutType getAppBarLayoutType() { + return AppBarLayoutType.SEARCH_BAR; + } }