Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25dd2c78 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

issue_5413_2: SearchFragment - check if searchText is not blank before showing timeout dialog

parent a82ec1b8
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -217,18 +217,18 @@ class SearchFragment :
                    }
                }
            })
            if (searchText.isNotBlank() && !it.isSuccess()) {
                /*
                 * If blank check is not performed then timeout dialog keeps
                 * popping up whenever search tab is opened.
                 */
            if (!it.isSuccess()) {
                onTimeout()
            }
        }
    }

    override fun onTimeout() {
        if (!isTimeoutDialogDisplayed()) {
        if (searchText.isNotBlank() && !isTimeoutDialogDisplayed()) {
            /*
             * If blank check is not performed then timeout dialog keeps
             * popping up whenever search tab is opened.
             */
            binding.loadingProgressBar.isVisible = false
            stopLoadingUI()
            displayTimeoutAlertDialog(