浏览代码

fix to set searchBehaviorSubject regardless of searchHelper being not null

same for swipeRefreshLayoutView?.isRefreshing

If searchHelper would be null (= when UnifiedSearch is not available) then going back to conversations list view would not trigger to check to show for unread mentions bubble. This fix will make it independent from searchHelper.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 11 月之前
父节点
当前提交
4209bfa2b4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt

+ 2 - 2
app/src/main/java/com/nextcloud/talk/conversationlist/ConversationsListActivity.kt

@@ -667,9 +667,9 @@ class ConversationsListActivity :
                     if (searchHelper != null) {
                         // cancel any pending searches
                         searchHelper!!.cancelSearch()
-                        binding.swipeRefreshLayoutView?.isRefreshing = false
-                        searchBehaviorSubject.onNext(false)
                     }
+                    binding.swipeRefreshLayoutView?.isRefreshing = false
+                    searchBehaviorSubject.onNext(false)
                     binding.swipeRefreshLayoutView?.isEnabled = true
                     searchView!!.onActionViewCollapsed()