|
@@ -6,7 +6,6 @@ import android.os.Bundle
|
|
import android.util.AttributeSet
|
|
import android.util.AttributeSet
|
|
import com.afollestad.materialdialogs.MaterialDialog
|
|
import com.afollestad.materialdialogs.MaterialDialog
|
|
import com.afollestad.materialdialogs.customview.customView
|
|
import com.afollestad.materialdialogs.customview.customView
|
|
-import eu.kanade.tachiyomi.BuildConfig
|
|
|
|
import eu.kanade.tachiyomi.R
|
|
import eu.kanade.tachiyomi.R
|
|
import eu.kanade.tachiyomi.ui.base.controller.DialogController
|
|
import eu.kanade.tachiyomi.ui.base.controller.DialogController
|
|
import it.gmariotti.changelibs.library.view.ChangeLogRecyclerView
|
|
import it.gmariotti.changelibs.library.view.ChangeLogRecyclerView
|
|
@@ -17,7 +16,7 @@ class ChangelogDialogController : DialogController() {
|
|
val activity = activity!!
|
|
val activity = activity!!
|
|
val view = WhatsNewRecyclerView(activity)
|
|
val view = WhatsNewRecyclerView(activity)
|
|
return MaterialDialog(activity)
|
|
return MaterialDialog(activity)
|
|
- .title(res = if (BuildConfig.DEBUG) R.string.notices else R.string.changelog)
|
|
|
|
|
|
+ .title(R.string.changelog)
|
|
.customView(view = view)
|
|
.customView(view = view)
|
|
.positiveButton(R.string.action_close)
|
|
.positiveButton(R.string.action_close)
|
|
}
|
|
}
|
|
@@ -26,7 +25,7 @@ class ChangelogDialogController : DialogController() {
|
|
override fun initAttrs(attrs: AttributeSet?, defStyle: Int) {
|
|
override fun initAttrs(attrs: AttributeSet?, defStyle: Int) {
|
|
mRowLayoutId = R.layout.changelog_row_layout
|
|
mRowLayoutId = R.layout.changelog_row_layout
|
|
mRowHeaderLayoutId = R.layout.changelog_header_layout
|
|
mRowHeaderLayoutId = R.layout.changelog_header_layout
|
|
- mChangeLogFileResourceId = if (BuildConfig.DEBUG) R.raw.changelog_debug else R.raw.changelog_release
|
|
|
|
|
|
+ mChangeLogFileResourceId = R.raw.changelog_release
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|