Merge pull request #14389 from brave/resolve_fp_issue_android

Resolve fingerprinting issue android
This commit is contained in:
Brian Johnson
2022-09-05 16:05:32 -07:00
committed by GitHub
10 changed files with 148 additions and 84 deletions
@@ -671,7 +671,10 @@ public class BraveShieldsHandler implements BraveRewardsHelper.LargeIconReadyCal
if (settingOption.equals(BraveShieldsContentSettings.BLOCK_RESOURCE)) {
mBlockShieldsOption1.setChecked(true);
} else if (settingOption.equals(
BraveShieldsContentSettings.BLOCK_THIRDPARTY_RESOURCE)) {
layout.equals(BraveShieldsContentSettings
.RESOURCE_IDENTIFIER_FINGERPRINTING)
? BraveShieldsContentSettings.DEFAULT
: BraveShieldsContentSettings.BLOCK_THIRDPARTY_RESOURCE)) {
mBlockShieldsOption2.setChecked(true);
} else if (settingOption.equals(BraveShieldsContentSettings.ALLOW_RESOURCE)) {
mBlockShieldsOption3.setChecked(true);
@@ -694,7 +697,12 @@ public class BraveShieldsHandler implements BraveRewardsHelper.LargeIconReadyCal
} else if (checkedId == R.id.option2) {
BraveShieldsContentSettings.setShieldsValue(mProfile, mHost,
layout,
BraveShieldsContentSettings.BLOCK_THIRDPARTY_RESOURCE,
layout.equals(
BraveShieldsContentSettings
.RESOURCE_IDENTIFIER_FINGERPRINTING)
? BraveShieldsContentSettings.DEFAULT
: BraveShieldsContentSettings
.BLOCK_THIRDPARTY_RESOURCE,
false);
} else if (checkedId == R.id.option3) {
BraveShieldsContentSettings.setShieldsValue(mProfile, mHost,
@@ -86,8 +86,7 @@
android:layout_height="wrap_content"
android:textSize="16sp"
android:padding="8dp"
android:textColor="@color/shield_text_color"
android:checked="true"/>
android:textColor="@color/shield_text_color"/>
<RadioButton
android:id="@+id/option3"