|
|
|
|
@ -41,6 +41,7 @@ import io.reactivex.android.schedulers.AndroidSchedulers
|
|
|
|
|
import io.reactivex.schedulers.Schedulers |
|
|
|
|
import kotlinx.android.synthetic.main.activity_tab_preference.* |
|
|
|
|
import kotlinx.android.synthetic.main.toolbar_basic.* |
|
|
|
|
import java.net.URLEncoder |
|
|
|
|
import java.util.regex.Pattern |
|
|
|
|
import javax.inject.Inject |
|
|
|
|
|
|
|
|
|
@ -229,7 +230,7 @@ class TabPreferenceActivity : BaseActivity(), Injectable, ItemInteractionListene
|
|
|
|
|
.setTitle(R.string.select_list_title) |
|
|
|
|
.setAdapter(adapter) { _, position -> |
|
|
|
|
val list = adapter.getItem(position) |
|
|
|
|
val newTab = createTabDataFromId(LIST, listOf(list!!.id, list.title)) |
|
|
|
|
val newTab = createTabDataFromId(LIST, listOf(list!!.id, URLEncoder.encode(list.title, "UTF-8"))) |
|
|
|
|
currentTabs.add(newTab) |
|
|
|
|
currentTabsAdapter.notifyItemInserted(currentTabs.size - 1) |
|
|
|
|
updateAvailableTabs() |
|
|
|
|
|