Fix comment

This commit is contained in:
kyori19 2019-12-01 00:28:39 +09:00
parent 32e77346ff
commit 704b4e6d2e
2 changed files with 1 additions and 1 deletions

View File

@ -230,6 +230,7 @@ class TabPreferenceActivity : BaseActivity(), Injectable, ItemInteractionListene
.setTitle(R.string.select_list_title)
.setAdapter(adapter) { _, position ->
val list = adapter.getItem(position)
// List name may include ":"
val newTab = createTabDataFromId(LIST, listOf(list!!.id, URLEncoder.encode(list.title, "UTF-8")))
currentTabs.add(newTab)
currentTabsAdapter.notifyItemInserted(currentTabs.size - 1)

View File

@ -67,7 +67,6 @@ class Converters {
@TypeConverter
fun tabDataToString(tabData: List<TabData>?): String? {
// List name may include ":"
return tabData?.joinToString(";") { it.id + ":" + it.arguments.joinToString(":") }
}