Add small formatting fixes in TelegramSettings
This commit is contained in:
parent
561814cf90
commit
546679298e
1 changed files with 9 additions and 3 deletions
|
@ -253,7 +253,9 @@ class TelegramSettings(private val app: TelegramApplication) {
|
||||||
|
|
||||||
appToConnectPackage = prefs.getString(APP_TO_CONNECT_PACKAGE_KEY, "")
|
appToConnectPackage = prefs.getString(APP_TO_CONNECT_PACKAGE_KEY, "")
|
||||||
|
|
||||||
liveNowSortType = LiveNowSortType.valueOf(prefs.getString(LIVE_NOW_SORT_TYPE_KEY, LiveNowSortType.SORT_BY_GROUP.name))
|
liveNowSortType = LiveNowSortType.valueOf(
|
||||||
|
prefs.getString(LIVE_NOW_SORT_TYPE_KEY, LiveNowSortType.SORT_BY_GROUP.name)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun updatePrefs() {
|
private fun updatePrefs() {
|
||||||
|
@ -378,7 +380,11 @@ class TelegramSettings(private val app: TelegramApplication) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class LiveNowSortType(@DrawableRes val iconId: Int, @StringRes val titleId: Int, @StringRes val shortTitleId: Int) {
|
enum class LiveNowSortType(
|
||||||
|
@DrawableRes val iconId: Int,
|
||||||
|
@StringRes val titleId: Int,
|
||||||
|
@StringRes val shortTitleId: Int
|
||||||
|
) {
|
||||||
SORT_BY_GROUP(
|
SORT_BY_GROUP(
|
||||||
R.drawable.ic_action_sort_by_group,
|
R.drawable.ic_action_sort_by_group,
|
||||||
R.string.shared_string_group,
|
R.string.shared_string_group,
|
||||||
|
|
Loading…
Reference in a new issue