Disable disclaimer

This commit is contained in:
SpiritCroc 2020-07-24 17:45:31 +02:00
parent 6170800f9c
commit e89d2df45e
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ private const val CURRENT_DISCLAIMER_VALUE = 2
private const val SHARED_PREF_KEY = "LAST_DISCLAIMER_VERSION_VALUE"
fun showDisclaimerDialog(activity: Activity) {
// This is a RiotX/Element disclaimer
if (true) return
val sharedPrefs = PreferenceManager.getDefaultSharedPreferences(activity)
if (sharedPrefs.getInt(SHARED_PREF_KEY, 0) < CURRENT_DISCLAIMER_VALUE) {