From a013297fbf9c21a4c533c0c3dbe1df3adf42a08f Mon Sep 17 00:00:00 2001 From: Artem Samoilenko Date: Tue, 19 Sep 2023 10:20:32 -0400 Subject: [PATCH] [Android] Fix for the status view icon Chromium change: https://github.com/brave/chromium/commit/bc4d3e85c648ff7d6acb631163746efd4143b43c [APS] Add tooltip text and circular highlight for StatusView Demo: https://drive.google.com/file/d/19ZWK0emmShyTWOjdl52mvHrtz-6U1zxT/view?usp=sharing Additional demo to verify long-click: https://drive.google.com/file/d/1AVdyEHtcRnJkVkexk8fjgN7Rmb6dklAF/view?usp=sharing Bug: 1473109 --- .../chrome/browser/omnibox/BraveLocationBarLayout.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarLayout.java b/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarLayout.java index 358b0361a5c..e3c5ab8b4d3 100644 --- a/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarLayout.java +++ b/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarLayout.java @@ -12,6 +12,8 @@ import android.widget.ImageButton; import androidx.core.widget.ImageViewCompat; +import org.chromium.chrome.browser.omnibox.status.StatusView; + public class BraveLocationBarLayout extends LocationBarLayout { private ImageButton mQRButton; @@ -25,6 +27,14 @@ public class BraveLocationBarLayout extends LocationBarLayout { mQRButton = findViewById(R.id.qr_button); } + @Override + protected void onFinishInflate() { + super.onFinishInflate(); + + StatusView statusView = findViewById(R.id.location_bar_status); + statusView.setBackgroundDrawable(null); + } + void setQRButtonTint(ColorStateList colorStateList) { ImageViewCompat.setImageTintList(mQRButton, colorStateList); }