To curb the issue i set a delay like this and seemed like a better solution than what was left by DuckDuckGo on their browser:
override fun onResume() { super.onResume() loadingBar.visibility = View.VISIBLE loadingLogo.visibility = View.VISIBLE loadingContainer.visibility = View.VISIBLE webView.visibility = View.INVISIBLE // You can also start a fade-in or animation if desired // Optional delay (1 second) before hiding logo and showing WebView Handler(Looper.getMainLooper()).postDelayed({ loadingContainer.visibility = View.GONE loadingBar.visibility = View.INVISIBLE loadingLogo.visibility = View.INVISIBLE webView.visibility = View.VISIBLE }, 1000) webView.onResume() Log.d("MainActivity", "onResume: Showing loading logo") }
it shows forcedly the image of the logo itself and waits 1000ms to make webview visible, instead of flickering it's an option, BUT couldn't find the solution they did: chrome and brave. Chrome and Brave basicly doesn't make the app pause or die as minimized, and i don't know if it's a work on chromium engine itself or what