Skip to content

Commit

Permalink
Fix WebXR quick permission regression
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Mar 30, 2020
1 parent 96e0fa0 commit 89bd2cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ public void onPopUpButtonClicked() {
public void onWebXRButtonClicked() {
toggleQuickPermission(mBinding.navigationBarNavigation.urlBar.getWebxRButton(),
SitePermission.SITE_PERMISSION_WEBXR,
!mViewModel.getIsWebXRBlocked().getValue().get());
mViewModel.getIsWebXRBlocked().getValue().get());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public void updateUI() {
switch (mCategory) {
case SitePermission.SITE_PERMISSION_WEBXR: {
mBinding.message.setText(getResources().getString(R.string.webxr_block_dialog_message, mDomain));
mBinding.allowButton.setText(R.string.permission_allow);
mBinding.blockButton.setText(R.string.pop_up_site_switch_block);
break;
}
case SitePermission.SITE_PERMISSION_TRACKING: {
Expand Down

0 comments on commit 89bd2cf

Please sign in to comment.