You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Remove online section in modules fragment
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
<variable
|
||||
name="item"
|
||||
type="com.topjohnwu.magisk.ui.module.ModuleItem" />
|
||||
type="com.topjohnwu.magisk.ui.module.LocalModuleRvItem" />
|
||||
|
||||
<variable
|
||||
name="viewModel"
|
||||
@@ -120,7 +120,7 @@
|
||||
<ImageView
|
||||
android:id="@+id/module_info"
|
||||
style="@style/WidgetFoundation.Icon"
|
||||
gone="@{item.repo == null}"
|
||||
gone="@{item.online == null}"
|
||||
android:layout_width="wrap_content"
|
||||
android:alpha=".5"
|
||||
android:clickable="true"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<variable
|
||||
name="item"
|
||||
type="com.topjohnwu.magisk.ui.module.RepoItem" />
|
||||
type="com.topjohnwu.magisk.ui.module.OnlineModuleRvItem" />
|
||||
|
||||
<variable
|
||||
name="viewModel"
|
||||
@@ -25,7 +25,6 @@
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:nextFocusRight="@id/module_info"
|
||||
android:onClick="@{() -> viewModel.downloadPressed(item)}"
|
||||
tools:layout_gravity="center"
|
||||
tools:layout_marginBottom="@dimen/l1"
|
||||
tools:layout_marginEnd="@dimen/l1">
|
||||
@@ -102,7 +101,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:alpha=".5"
|
||||
android:nextFocusLeft="@id/module_card"
|
||||
android:onClick="@{() -> viewModel.infoPressed(item)}"
|
||||
android:onClick="@{() -> viewModel.infoPressed(item.item)}"
|
||||
android:paddingEnd="@dimen/l_50"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/module_download"
|
||||
app:layout_constraintEnd_toStartOf="@+id/module_download"
|
||||
@@ -113,11 +112,11 @@
|
||||
android:id="@+id/module_download"
|
||||
style="@style/WidgetFoundation.Icon.Primary"
|
||||
isEnabled="@{!(item.progress == -100 || (item.progress > 0 && item.progress < 100))}"
|
||||
srcCompat="@{item.isUpdate ? R.drawable.ic_update_md2 : R.drawable.ic_download_md2}"
|
||||
srcCompat="@{item.hasUpdate ? R.drawable.ic_update_md2 : R.drawable.ic_download_md2}"
|
||||
android:layout_width="wrap_content"
|
||||
android:contentDescription="@string/download"
|
||||
android:nextFocusLeft="@id/module_info"
|
||||
android:onClick="@{() -> viewModel.downloadPressed(item)}"
|
||||
android:onClick="@{() -> viewModel.downloadPressed(item.item)}"
|
||||
android:paddingStart="@dimen/l_50"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
@@ -154,4 +153,3 @@
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
|
||||
</layout>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user