forked from Louvorg/ReaderForSelfoss-multiplatform
chore: changing actions in reader fragment.
This commit is contained in:
@ -53,7 +53,6 @@ class AppSettingsService(
|
||||
private var activeAlignment: Int? = null
|
||||
|
||||
private var fontSize: Int? = null
|
||||
private var staticBar: Boolean? = null
|
||||
private var font: String = ""
|
||||
private var theme: Int? = null
|
||||
|
||||
@ -386,17 +385,6 @@ class AppSettingsService(
|
||||
return fontSize ?: DEFAULT_FONT_SIZE
|
||||
}
|
||||
|
||||
private fun refreshStaticBarEnabled() {
|
||||
staticBar = settings.getBoolean(READER_STATIC_BAR, false)
|
||||
}
|
||||
|
||||
fun isStaticBarEnabled(): Boolean {
|
||||
if (staticBar != null) {
|
||||
refreshStaticBarEnabled()
|
||||
}
|
||||
return staticBar == true
|
||||
}
|
||||
|
||||
private fun refreshFont() {
|
||||
font = settings.getString(READER_FONT, "")
|
||||
}
|
||||
@ -449,7 +437,6 @@ class AppSettingsService(
|
||||
refreshActiveAllignment()
|
||||
refreshFontSize()
|
||||
refreshFont()
|
||||
refreshStaticBarEnabled()
|
||||
refreshCurrentTheme()
|
||||
}
|
||||
|
||||
@ -547,8 +534,6 @@ class AppSettingsService(
|
||||
|
||||
const val READER_FONT = "reader_font"
|
||||
|
||||
const val READER_STATIC_BAR = "reader_static_bar"
|
||||
|
||||
const val READER_FONT_SIZE = "reader_font_size"
|
||||
|
||||
const val TEXT_ALIGN = "text_align"
|
||||
|
Reference in New Issue
Block a user