Merge pull request #19712 from brave/remove_negative_action_cookie_consent
Remove stop blocking action for cookie consent dialog
This commit is contained in:
@@ -990,21 +990,6 @@ public abstract class BraveToolbarLayoutImpl extends ToolbarLayout
|
||||
}
|
||||
}));
|
||||
|
||||
TextView txtNoThanks = mCookieConsentTooltip.findViewById(R.id.txt_no_thanks);
|
||||
txtNoThanks.setOnClickListener((new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (mFilterListAndroidHandler != null) {
|
||||
mFilterListAndroidHandler.enableFilter(
|
||||
FilterListConstants.COOKIE_LIST_UUID, false);
|
||||
}
|
||||
if (mCookieListOptInPageAndroidHandler != null) {
|
||||
mCookieListOptInPageAndroidHandler.onTooltipNoClicked();
|
||||
}
|
||||
mCookieConsentTooltip.dismiss();
|
||||
}
|
||||
}));
|
||||
|
||||
if (mBraveShieldsButton != null && mBraveShieldsButton.isShown()) {
|
||||
mCookieConsentTooltip.show();
|
||||
SharedPreferencesManager.getInstance().writeBoolean(
|
||||
|
||||
@@ -61,20 +61,9 @@
|
||||
android:paddingBottom="8dp"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:textColor="@android:color/white"
|
||||
style="?android:attr/borderlessButtonStyle"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_no_thanks"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="30dp"
|
||||
android:text="@string/stop_blocking"
|
||||
android:textAlignment="center"
|
||||
android:textColor="@color/cookie_consent_action_color"
|
||||
android:textSize="14sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
@@ -147,7 +147,6 @@
|
||||
<!-- Brave Wallet DApp -->
|
||||
<color name="brave_wallet_dapp_text_color">@android:color/white</color>
|
||||
|
||||
<color name="cookie_consent_action_color">@android:color/white</color>
|
||||
<color name="cookie_consent_text_color">#F0F2FF</color>
|
||||
<color name="cookie_consent_tooltip_color">#1E2029</color>
|
||||
|
||||
|
||||
@@ -257,7 +257,6 @@
|
||||
<color name="rewards_tipping_text_color">#212529</color>
|
||||
<color name="vbat_warning_color">#FFD43B</color>
|
||||
|
||||
<color name="cookie_consent_action_color">@color/brave_action_color</color>
|
||||
<color name="cookie_consent_text_color">#212529</color>
|
||||
<color name="cookie_consent_tooltip_color">@android:color/white</color>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user