Skip to content

Commit

Permalink
Merge pull request #17213 from brave/update_shields_onboarding
Browse files Browse the repository at this point in the history
Update shields onboarding timing
  • Loading branch information
deeppandya authored Feb 19, 2023
2 parents 4a187a8 + ec17882 commit b7fa359
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,6 @@ private void showSearchBoxTooltip() {
if (viewGroup != null && highlightView != null) {
viewGroup.removeView(highlightView);
}
maybeShowNotificationPermissionRetionale();
})
.modal(true)
.contentView(R.layout.brave_onboarding_searchbox)
Expand All @@ -1156,7 +1155,7 @@ private void showSearchBoxTooltip() {
}, 500);
}

private void maybeShowNotificationPermissionRetionale() {
public void maybeShowNotificationPermissionRetionale() {
NotificationPermissionController mNotificationPermissionController =
new NotificationPermissionController(getWindowAndroid(),
new NotificationPermissionRationaleDialogController(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,10 @@ private void showTooltip(String tooltipPref, int tabId) {
highlightView.stopAnimation();
viewGroup.removeView(highlightView);
}
if (BraveActivity.getBraveActivity() != null) {
BraveActivity.getBraveActivity()
.maybeShowNotificationPermissionRetionale();
}
})
.contentView(R.layout.brave_shields_tooltip_layout)
.build();
Expand Down

0 comments on commit b7fa359

Please sign in to comment.