[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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user