mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 11:26:01 +03:00
Rename to avoid collision with Matrix Spaces
This commit is contained in:
parent
e925d29037
commit
f559ae1b35
3 changed files with 8 additions and 8 deletions
|
@ -26,8 +26,8 @@ import im.vector.app.core.epoxy.VectorEpoxyModel
|
|||
/**
|
||||
* A generic item with empty space.
|
||||
*/
|
||||
@EpoxyModelClass(layout = R.layout.item_generic_space)
|
||||
abstract class GenericSpaceItem : VectorEpoxyModel<GenericSpaceItem.Holder>() {
|
||||
@EpoxyModelClass(layout = R.layout.item_vertical_margin)
|
||||
abstract class VerticalMarginItem : VectorEpoxyModel<VerticalMarginItem.Holder>() {
|
||||
|
||||
@EpoxyAttribute
|
||||
var heightInPx: Int = 0
|
||||
|
@ -40,6 +40,6 @@ abstract class GenericSpaceItem : VectorEpoxyModel<GenericSpaceItem.Holder>() {
|
|||
}
|
||||
|
||||
class Holder : VectorEpoxyHolder() {
|
||||
val space by bind<View>(R.id.item_generic_space)
|
||||
val space by bind<View>(R.id.item_vertical_margin_space)
|
||||
}
|
||||
}
|
|
@ -36,7 +36,7 @@ import im.vector.app.core.extensions.join
|
|||
import im.vector.app.core.resources.ColorProvider
|
||||
import im.vector.app.core.resources.StringProvider
|
||||
import im.vector.app.core.ui.list.genericButtonItem
|
||||
import im.vector.app.core.ui.list.genericSpaceItem
|
||||
import im.vector.app.core.ui.list.verticalMarginItem
|
||||
import im.vector.app.core.utils.DimensionConverter
|
||||
import im.vector.app.features.discovery.settingsContinueCancelItem
|
||||
import im.vector.app.features.discovery.settingsInformationItem
|
||||
|
@ -69,7 +69,7 @@ class RoomDirectoryPickerController @Inject constructor(
|
|||
between = { idx, _ -> buildDivider(idx) }
|
||||
)
|
||||
buildForm(data)
|
||||
genericSpaceItem {
|
||||
verticalMarginItem {
|
||||
id("space_bottom")
|
||||
heightInPx(host.dimensionConverter.dpToPx(16))
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ class RoomDirectoryPickerController @Inject constructor(
|
|||
buildDivider(1000)
|
||||
val host = this
|
||||
if (data.inEditMode) {
|
||||
genericSpaceItem {
|
||||
verticalMarginItem {
|
||||
id("form_space")
|
||||
heightInPx(host.dimensionConverter.dpToPx(16))
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ class RoomDirectoryPickerController @Inject constructor(
|
|||
message(host.stringProvider.getString(R.string.directory_add_a_new_server_prompt))
|
||||
colorProvider(host.colorProvider)
|
||||
}
|
||||
genericSpaceItem {
|
||||
verticalMarginItem {
|
||||
id("form_space_2")
|
||||
heightInPx(host.dimensionConverter.dpToPx(8))
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Space xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/item_generic_space"
|
||||
android:id="@+id/item_vertical_margin_space"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/layout_vertical_margin" />
|
Loading…
Reference in a new issue