Skip to content

Commit

Permalink
fix bug that was causing crash when setting r18
Browse files Browse the repository at this point in the history
  • Loading branch information
nonproto committed Apr 12, 2019
1 parent 68368bc commit 9240ec7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ open class Mangadex(override val lang: String, private val internalLang: String,

private val preferences: PreferencesHelper by injectLazy()

private fun clientBuilder(): OkHttpClient = clientBuilder(preferences.r18())
private fun clientBuilder(): OkHttpClient = clientBuilder(preferences.r18().toInt())

private fun clientBuilder(r18Toggle: Int): OkHttpClient = network.cloudflareClient.newBuilder()
.connectTimeout(10, TimeUnit.SECONDS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class SettingsSiteController : SettingsController(), SourceLoginDialog.Listener
}

val sourcePreference = LoginCheckBoxPreference(context, sources[0] ).apply {
val id = source.id.toString()
title = "MangaDex Login"
key = getSourceKey(source.id)
setOnLoginClickListener {
Expand Down

0 comments on commit 9240ec7

Please sign in to comment.