diff --git a/android/java/org/chromium/chrome/browser/ntp/BraveNewTabPageLayout.java b/android/java/org/chromium/chrome/browser/ntp/BraveNewTabPageLayout.java index cd284068bb34..59ea6f340587 100644 --- a/android/java/org/chromium/chrome/browser/ntp/BraveNewTabPageLayout.java +++ b/android/java/org/chromium/chrome/browser/ntp/BraveNewTabPageLayout.java @@ -372,7 +372,8 @@ public void run() { private void setNtpRecyclerView(LinearLayoutManager linearLayoutManager) { mIsTopSitesEnabled = NtpUtil.shouldDisplayTopSites(); - mIsBraveStatsEnabled = NtpUtil.shouldDisplayBraveStats(); + // mIsBraveStatsEnabled = NtpUtil.shouldDisplayBraveStats(); + mIsBraveStatsEnabled = false; if (mNtpAdapter == null) { if (mActivity != null && !mActivity.isDestroyed() && !mActivity.isFinishing()) { @@ -883,7 +884,8 @@ private void initPreferenceObserver() { mNtpAdapter.setTopSitesEnabled(mIsTopSitesEnabled); } else if (TextUtils.equals( key, BackgroundImagesPreferences.PREF_SHOW_BRAVE_STATS)) { - mIsBraveStatsEnabled = NtpUtil.shouldDisplayBraveStats(); + // mIsBraveStatsEnabled = NtpUtil.shouldDisplayBraveStats(); + mIsBraveStatsEnabled = false; mNtpAdapter.setBraveStatsEnabled(mIsBraveStatsEnabled); } }; diff --git a/android/java/org/chromium/chrome/browser/ntp/NtpUtil.java b/android/java/org/chromium/chrome/browser/ntp/NtpUtil.java index b5dc8b77db22..305d4733f0fb 100644 --- a/android/java/org/chromium/chrome/browser/ntp/NtpUtil.java +++ b/android/java/org/chromium/chrome/browser/ntp/NtpUtil.java @@ -23,8 +23,9 @@ public static void setDisplayTopSites(boolean shouldDisplayTopSites) { } public static boolean shouldDisplayBraveStats() { - return ChromeSharedPreferences.getInstance() - .readBoolean(BackgroundImagesPreferences.PREF_SHOW_BRAVE_STATS, true); + // return ChromeSharedPreferences.getInstance() + // .readBoolean(BackgroundImagesPreferences.PREF_SHOW_BRAVE_STATS, true); + return false; } public static void setDisplayBraveStats(boolean shouldDisplayBraveStats) {