From 10f36f40d616c3a90dc1594fab2fb2a2383598e5 Mon Sep 17 00:00:00 2001 From: inorichi Date: Wed, 23 May 2018 13:16:11 +0200 Subject: [PATCH] Bugfix on save instance state. Also improve initial page loading on Kissmanga --- .../tachiyomi/source/online/english/Kissmanga.kt | 16 ++++------------ .../ui/extension/ExtensionGroupHolder.kt | 2 +- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/source/online/english/Kissmanga.kt b/app/src/main/java/eu/kanade/tachiyomi/source/online/english/Kissmanga.kt index b311a942e..77aa99bcc 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/source/online/english/Kissmanga.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/source/online/english/Kissmanga.kt @@ -154,17 +154,9 @@ class Kissmanga : ParsedHttpSource() { it.evaluate(ca) it.evaluate(lo) - // There are two functions in an inline script needed to decrypt the urls. We find and - // execute them. - var p = Pattern.compile("(.*CryptoJS.*)") - var m = p.matcher(body) - while (m.find()) { - it.evaluate(m.group(1)) - } - - // Finally find all the urls and decrypt them in JS. - p = Pattern.compile("""lstImages.push\((.*)\);""") - m = p.matcher(body) + // Find all the urls and decrypt them in JS. + val p = Pattern.compile("""lstImages.push\((.*)\);""") + val m = p.matcher(body) var i = 0 while (m.find()) { @@ -244,4 +236,4 @@ class Kissmanga : ParsedHttpSource() { Genre("Yaoi"), Genre("Yuri") ) -} \ No newline at end of file +} diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionGroupHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionGroupHolder.kt index 7edc3bd69..8bf0a6197 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionGroupHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/extension/ExtensionGroupHolder.kt @@ -8,7 +8,7 @@ import eu.kanade.tachiyomi.ui.base.holder.BaseFlexibleViewHolder import kotlinx.android.synthetic.main.extension_card_header.* class ExtensionGroupHolder(view: View, adapter: FlexibleAdapter<*>) : - BaseFlexibleViewHolder(view, adapter, true) { + BaseFlexibleViewHolder(view, adapter) { @SuppressLint("SetTextI18n") fun bind(item: ExtensionGroupItem) {