Merge pull request #14389 from brave/resolve_fp_issue_android
Resolve fingerprinting issue android
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user