Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import com.anytypeio.anytype.core_ui.features.relations.RelationAddAdapter
import com.anytypeio.anytype.core_ui.features.relations.RelationAddHeaderAdapter
import com.anytypeio.anytype.core_ui.reactive.focusChanges
import com.anytypeio.anytype.core_ui.reactive.textChanges
import com.anytypeio.anytype.core_ui.tools.LastItemBottomOffsetDecorator
import com.anytypeio.anytype.core_utils.ext.arg
import com.anytypeio.anytype.core_utils.ext.dimen
import com.anytypeio.anytype.core_utils.ext.drawable
import com.anytypeio.anytype.core_utils.ext.invisible
import com.anytypeio.anytype.core_utils.ext.statusBarHeight
Expand Down Expand Up @@ -90,6 +92,11 @@ abstract class RelationAddBaseFragment :
setDrawable(drawable(R.drawable.divider_relations_with_padding))
}
)
addItemDecoration(
LastItemBottomOffsetDecorator(
dimen(R.dimen.dp_48)
)
)
}
with(lifecycleScope) {
subscribe(searchRelationInput.focusChanges()) { hasFocus -> if (hasFocus) expand(view) }
Expand Down
Loading