From 704b4e6d2e5545d5f2d20c9bc6bc276d6257d119 Mon Sep 17 00:00:00 2001 From: kyori19 Date: Sun, 1 Dec 2019 00:28:39 +0900 Subject: [PATCH] Fix comment --- .../main/java/com/keylesspalace/tusky/TabPreferenceActivity.kt | 1 + app/src/main/java/com/keylesspalace/tusky/db/Converters.kt | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/TabPreferenceActivity.kt b/app/src/main/java/com/keylesspalace/tusky/TabPreferenceActivity.kt index feee8a8ee..9edde958f 100644 --- a/app/src/main/java/com/keylesspalace/tusky/TabPreferenceActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/TabPreferenceActivity.kt @@ -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) diff --git a/app/src/main/java/com/keylesspalace/tusky/db/Converters.kt b/app/src/main/java/com/keylesspalace/tusky/db/Converters.kt index 801dd0c93..4dad5a08d 100644 --- a/app/src/main/java/com/keylesspalace/tusky/db/Converters.kt +++ b/app/src/main/java/com/keylesspalace/tusky/db/Converters.kt @@ -67,7 +67,6 @@ class Converters { @TypeConverter fun tabDataToString(tabData: List?): String? { - // List name may include ":" return tabData?.joinToString(";") { it.id + ":" + it.arguments.joinToString(":") } }