mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2248 Objects | Fix | Fix object three-dots-menu layout (#908)
This commit is contained in:
parent
fe1dc02190
commit
ce58396342
3 changed files with 14 additions and 4 deletions
|
@ -132,7 +132,8 @@
|
|||
android:id="@+id/historyDivider"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_marginTop="21dp"
|
||||
android:layout_marginStart="72dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@color/shape_primary"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
@ -155,7 +156,8 @@
|
|||
android:id="@+id/objectDiagnosticsDivider"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_marginTop="21dp"
|
||||
android:layout_marginStart="72dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@color/shape_primary"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
@ -180,7 +182,8 @@
|
|||
android:id="@+id/debugGoroutinesDivider"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0.5dp"
|
||||
android:layout_marginTop="21dp"
|
||||
android:layout_marginStart="72dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:visibility="gone"
|
||||
android:background="@color/shape_primary"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
@ -21,6 +21,13 @@ interface ObjectMenuOptionsProvider {
|
|||
hasRelations = true,
|
||||
hasDiagnosticsVisibility = true
|
||||
)
|
||||
val NONE = Options(
|
||||
hasIcon = false,
|
||||
hasCover = false,
|
||||
hasLayout = false,
|
||||
hasRelations = false,
|
||||
hasDiagnosticsVisibility = false
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ class ObjectMenuOptionsProviderImpl(
|
|||
hasRelations = true,
|
||||
hasDiagnosticsVisibility = true,
|
||||
)
|
||||
else -> TODO("Support new layouts")
|
||||
else -> Options.NONE
|
||||
}
|
||||
} else {
|
||||
// unknown layout show all options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue