Rename sortType field
This commit is contained in:
parent
da16b4a964
commit
a2cef24af4
2 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
package net.osmand.telegram.ui
|
||||
|
||||
import android.content.Intent
|
||||
import android.graphics.drawable.Drawable
|
||||
import android.os.Bundle
|
||||
import android.support.v4.app.Fragment
|
||||
import android.support.v7.widget.LinearLayoutManager
|
||||
|
@ -384,7 +383,7 @@ class LiveNowTabFragment : Fragment(), TelegramListener, TelegramIncomingMessage
|
|||
}
|
||||
|
||||
private fun updateSortBtn() {
|
||||
sortByBtn.text = getString(sortBy.shortTitle)
|
||||
sortByBtn.text = getString(sortBy.shortTitleId)
|
||||
sortByBtn.setCompoundDrawablesWithIntrinsicBounds(
|
||||
null,
|
||||
null,
|
||||
|
|
|
@ -115,7 +115,7 @@ class SortByBottomSheet : DialogFragment() {
|
|||
}
|
||||
}
|
||||
|
||||
enum class SortType(@DrawableRes val iconId: Int, @StringRes val titleId: Int, @StringRes val shortTitle: Int) {
|
||||
enum class SortType(@DrawableRes val iconId: Int, @StringRes val titleId: Int, @StringRes val shortTitleId: Int) {
|
||||
SORT_BY_GROUP(
|
||||
R.drawable.ic_action_sort_by_group,
|
||||
R.string.shared_string_group,
|
||||
|
|
Loading…
Reference in a new issue