Skip to content

Commit

Permalink
Follow up: automatically clean up hidden cards when enable the YiR ca…
Browse files Browse the repository at this point in the history
…rd (#5237)
  • Loading branch information
cooltey authored Jan 17, 2025
1 parent 5f31853 commit 1225d5a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ internal class DeveloperSettingsPreferenceLoader(fragment: PreferenceFragmentCom
UserContributionEvent.logOpen()
true
}
findPreference(R.string.preference_key_feed_yir_onboarding_card_enabled).onPreferenceChangeListener = Preference.OnPreferenceChangeListener { _: Preference, isEnabled: Any? ->
if (isEnabled is Boolean && isEnabled) {
Prefs.hiddenCards = emptySet()
Toast.makeText(activity, "Please relaunch the app.", Toast.LENGTH_SHORT).show()
}
true
}
}

private fun setUpMediaWikiSettings() {
Expand Down

0 comments on commit 1225d5a

Please sign in to comment.