@ -267,7 +267,6 @@ class CollectionCreationUIView(
}
is SaveCollectionStep . RenameCollection -> {
view . tab _list . isClickable = false
name _collection _edittext . isClickable = true
it . selectedTabCollection ?. let { tabCollection ->
tabCollection . tabs . map { tab ->
@ -281,7 +280,13 @@ class CollectionCreationUIView(
collectionCreationTabListAdapter . updateData ( tabs , tabs . toSet ( ) , true )
}
}
val constraint = nameCollectionConstraints
constraint . applyTo ( view . collection _constraint _layout )
name _collection _edittext . setText ( it . selectedTabCollection ?. title )
name _collection _edittext . setSelection ( 0 , name _collection _edittext . text . length )
back _button . text =
view . context . getString ( R . string . collection _rename )
back _button . setOnClickListener {
name _collection _edittext . hideKeyboard ( )
val handler = Handler ( )
@ -306,19 +311,14 @@ class CollectionCreationUIView(
view . collection _constraint _layout ,
transition
)
val constraint = nameCollectionConstraints
constraint . applyTo ( view . collection _constraint _layout )
name _collection _edittext . setText ( it . selectedTabCollection ?. title )
name _collection _edittext . setSelection ( 0 , name _collection _edittext . text . length )
back _button . text =
view . context . getString ( R . string . create _collection _name _collection )
}
}
collectionSaveListAdapter . updateData ( it . tabCollections , it . selectedTabs )
}
fun onResumed ( ) {
if ( step == SaveCollectionStep . NameCollection ) {
if ( step == SaveCollectionStep . NameCollection || step == SaveCollectionStep . RenameCollection ) {
view . name _collection _edittext . showKeyboard ( )
}
}