Browse Source

Merge pull request #11839 from nextcloud/fix/search-actionbar

Remove unnecessary call to clear title in UnifiedSearchFragment
Andy Scherzinger 1 year ago
parent
commit
012b0b80ef

+ 0 - 6
app/src/main/java/com/owncloud/android/ui/fragment/UnifiedSearchFragment.kt

@@ -136,12 +136,6 @@ class UnifiedSearchFragment : Fragment(), Injectable, UnifiedSearchListInterface
                 DisplayUtils.showSnackMessage(binding.root, error)
             }
         }
-        vm.query.observe(this) { query ->
-            if (activity is FileDisplayActivity) {
-                (activity as FileDisplayActivity)
-                    .updateActionBarTitleAndHomeButtonByString(null)
-            }
-        }
         vm.browserUri.observe(this) { uri ->
             val browserIntent = Intent(Intent.ACTION_VIEW, uri)
             startActivity(browserIntent)