Skip to content

Commit

Permalink
Hide rewards menu for unsupported countries (uplift to 1.50.x) (#17533)
Browse files Browse the repository at this point in the history
Uplift of #17482 (squashed) to beta
  • Loading branch information
brave-builds authored Mar 16, 2023
1 parent 214d158 commit 96f91bc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ public void prepareMenu(Menu menu, AppMenuHandler handler) {
}

BraveRewardsNativeWorker braveRewardsNativeWorker = BraveRewardsNativeWorker.getInstance();
if (braveRewardsNativeWorker != null
&& braveRewardsNativeWorker.IsSupportedSkipRegionCheck()
if (braveRewardsNativeWorker != null && braveRewardsNativeWorker.IsSupported()
&& !BravePrefServiceBridge.getInstance().getSafetynetCheckFailed()) {
MenuItem rewards =
menu.add(Menu.NONE, R.id.brave_rewards_id, 0, R.string.menu_brave_rewards);
Expand Down

0 comments on commit 96f91bc

Please sign in to comment.