mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-24 18:37:39 +00:00
Updated device info view to be expanded by default
This commit is contained in:
parent
7e9b3f1a60
commit
67b5f39df2
@ -64,7 +64,6 @@ class HomeViewModel(
|
||||
|
||||
val stateMagiskExpanded = KObservableField(false)
|
||||
val stateManagerExpanded = KObservableField(false)
|
||||
val stateDeviceExpanded = KObservableField(false)
|
||||
|
||||
val stateHideManagerName = R.string.manager.res().let {
|
||||
if (!statePackageOriginal) {
|
||||
|
@ -98,7 +98,6 @@
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="@dimen/l1"
|
||||
android:layout_marginEnd="@dimen/l1"
|
||||
android:onClick="@{() -> viewModel.toggle(viewModel.stateDeviceExpanded)}"
|
||||
app:layout_constrainedWidth="true"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@ -192,15 +191,12 @@
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/home_device_details"
|
||||
goneUnless="@{viewModel.stateDeviceExpanded}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/l1"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/home_device_overview"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:visibility="visible">
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
android:id="@+id/home_device_extra_security_title"
|
||||
|
Loading…
x
Reference in New Issue
Block a user