clean and make a bunch of static variables private
This commit is contained in:
parent
d47d67be1a
commit
656b699ce9
|
@ -161,15 +161,15 @@ class ContentAdapter(private val listener: ContentAdapterListener) :
|
||||||
override fun getItemCount(): Int = blocks.size
|
override fun getItemCount(): Int = blocks.size
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val TAG = "ContentRecycler"
|
private const val TAG = "ContentRecycler"
|
||||||
const val TYPE_EMPTY = 0
|
private const val TYPE_EMPTY = 0
|
||||||
const val TYPE_TITLE_1 = 1
|
private const val TYPE_TITLE_1 = 1
|
||||||
const val TYPE_TITLE_2 = 2
|
private const val TYPE_TITLE_2 = 2
|
||||||
const val TYPE_TITLE_3 = 3
|
private const val TYPE_TITLE_3 = 3
|
||||||
const val TYPE_PARAGRAPH = 4
|
private const val TYPE_PARAGRAPH = 4
|
||||||
const val TYPE_LINK = 5
|
private const val TYPE_LINK = 5
|
||||||
const val TYPE_PREFORMATTED = 6
|
private const val TYPE_PREFORMATTED = 6
|
||||||
const val TYPE_BLOCKQUOTE = 7
|
private const val TYPE_BLOCKQUOTE = 7
|
||||||
const val TYPE_LIST_ITEM = 8
|
private const val TYPE_LIST_ITEM = 8
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -19,7 +19,7 @@ class PreTextLine(val text: String) : Line
|
||||||
class BlockquoteLine(val text: String) : Line
|
class BlockquoteLine(val text: String) : Line
|
||||||
class ListItemLine(val text: String) : Line
|
class ListItemLine(val text: String) : Line
|
||||||
|
|
||||||
const val TAG = "Gemtext"
|
private const val TAG = "Gemtext"
|
||||||
|
|
||||||
/** Pipe incoming gemtext data into parsed Lines. */
|
/** Pipe incoming gemtext data into parsed Lines. */
|
||||||
fun parseData(
|
fun parseData(
|
||||||
|
|
|
@ -184,6 +184,6 @@ class PageViewModel : ViewModel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val TAG = "PageViewModel"
|
private const val TAG = "PageViewModel"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,12 +1,10 @@
|
||||||
package dev.lowrespalmtree.comet
|
package dev.lowrespalmtree.comet
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.util.Log
|
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import androidx.preference.EditTextPreference
|
import androidx.preference.EditTextPreference
|
||||||
import androidx.preference.Preference
|
import androidx.preference.Preference
|
||||||
import androidx.preference.PreferenceFragmentCompat
|
import androidx.preference.PreferenceFragmentCompat
|
||||||
import androidx.preference.SeekBarPreference
|
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
|
||||||
|
|
Reference in a new issue