From 68368bcc115f8d794cf978053428a66ad4ec0824 Mon Sep 17 00:00:00 2001 From: Carlos Date: Thu, 11 Apr 2019 21:20:41 -0400 Subject: [PATCH] fix bug that was causing crash when setting r18 --- .../eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt b/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt index 0a1136ee49..2bd071fa6f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt @@ -43,7 +43,7 @@ class PreferencesHelper(val context: Context) { fun showPageNumber() = rxPrefs.getBoolean(Keys.showPageNumber, true) - fun r18() = prefs.getInt(Keys.showR18, 0) + fun r18() = prefs.getString(Keys.showR18, "0") fun trueColor() = rxPrefs.getBoolean(Keys.trueColor, false)