Skip to content

Commit

Permalink
Merge pull request #5612 from brave/android_rewards_button_on_safetyn…
Browse files Browse the repository at this point in the history
…et_failed

Fix for hiding rewards button when safetynet is failed
  • Loading branch information
samartnik authored May 21, 2020
2 parents 5883d83 + 250f5f9 commit 7c58a5c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ void onNativeLibraryReady() {

SharedPreferences sharedPreferences = ContextUtils.getAppSharedPreferences();
if (ChromeFeatureList.isEnabled(BraveFeatureList.BRAVE_REWARDS)
&& !BravePrefServiceBridge.getInstance().getSafetynetCheckFailed()
&& !sharedPreferences.getBoolean(
AppearancePreferences.PREF_HIDE_BRAVE_REWARDS_ICON, false)
&& mRewardsLayout != null) {
Expand Down

0 comments on commit 7c58a5c

Please sign in to comment.