diff --git a/app/src/main/java/com/topjohnwu/magisk/model/entity/recycler/PolicyRvItem.kt b/app/src/main/java/com/topjohnwu/magisk/model/entity/recycler/PolicyRvItem.kt
index 1929549c4..11403aa7e 100644
--- a/app/src/main/java/com/topjohnwu/magisk/model/entity/recycler/PolicyRvItem.kt
+++ b/app/src/main/java/com/topjohnwu/magisk/model/entity/recycler/PolicyRvItem.kt
@@ -1,6 +1,8 @@
package com.topjohnwu.magisk.model.entity.recycler
import android.graphics.drawable.Drawable
+import androidx.databinding.ViewDataBinding
+import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.topjohnwu.magisk.R
import com.topjohnwu.magisk.core.model.MagiskPolicy
import com.topjohnwu.magisk.databinding.ComparableRvItem
@@ -47,6 +49,12 @@ class PolicyItem(val item: MagiskPolicy, val icon: Drawable) : ComparableRvItem<
viewModel.updatePolicy(PolicyUpdateEvent.Log(updatedPolicy))
}
+ override fun onBindingBound(binding: ViewDataBinding) {
+ super.onBindingBound(binding)
+ val params = binding.root.layoutParams as? StaggeredGridLayoutManager.LayoutParams
+ params?.isFullSpan = true
+ }
+
override fun contentSameAs(other: PolicyItem) = itemSameAs(other)
override fun itemSameAs(other: PolicyItem) = item.uid == other.item.uid
diff --git a/app/src/main/res/drawable/bg_checkbox.xml b/app/src/main/res/drawable/bg_checkbox.xml
new file mode 100644
index 000000000..1aaa83867
--- /dev/null
+++ b/app/src/main/res/drawable/bg_checkbox.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_back.xml b/app/src/main/res/drawable/ic_back.xml
index 928252fff..f454ad4e8 100644
--- a/app/src/main/res/drawable/ic_back.xml
+++ b/app/src/main/res/drawable/ic_back.xml
@@ -5,6 +5,6 @@
android:viewportWidth="24"
android:viewportHeight="24">
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_checkbox.xml b/app/src/main/res/drawable/ic_checkbox.xml
new file mode 100644
index 000000000..ee0e1c24e
--- /dev/null
+++ b/app/src/main/res/drawable/ic_checkbox.xml
@@ -0,0 +1,23 @@
+
+
+ -
+
+
-
+
+
+
+
+
+
+
+ -
+
+
-
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_flash.xml b/app/src/main/res/layout/activity_flash.xml
index af164be1b..5dacdb01a 100644
--- a/app/src/main/res/layout/activity_flash.xml
+++ b/app/src/main/res/layout/activity_flash.xml
@@ -36,12 +36,13 @@
app:navigationIcon="@drawable/ic_back_md2">
diff --git a/app/src/main/res/layout/item_hide_process_md2.xml b/app/src/main/res/layout/item_hide_process_md2.xml
index bd0152371..63a2892b0 100644
--- a/app/src/main/res/layout/item_hide_process_md2.xml
+++ b/app/src/main/res/layout/item_hide_process_md2.xml
@@ -17,18 +17,19 @@
+ android:layout_gravity="center"
+ android:alpha="@{item.isHidden() ? 1f : .7f}"
+ android:background="?selectableItemBackground"
+ android:onClick="@{() -> item.toggle(viewModel)}">
+ android:background="@drawable/bg_checkbox"
+ app:srcCompat="@drawable/ic_checkbox" />
diff --git a/app/src/main/res/layout/item_module_md2.xml b/app/src/main/res/layout/item_module_md2.xml
index 8bf721fed..bbc4a7792 100644
--- a/app/src/main/res/layout/item_module_md2.xml
+++ b/app/src/main/res/layout/item_module_md2.xml
@@ -30,57 +30,70 @@
tools:layout_marginBottom="@dimen/l1"
tools:layout_marginEnd="@dimen/l1">
+
+
-
-
+
+
@@ -130,13 +144,6 @@
-
-
diff --git a/app/src/main/res/layout/item_policy_md2.xml b/app/src/main/res/layout/item_policy_md2.xml
index ee63de9e9..3e9610e3f 100644
--- a/app/src/main/res/layout/item_policy_md2.xml
+++ b/app/src/main/res/layout/item_policy_md2.xml
@@ -24,8 +24,7 @@
android:onClick="@{() -> item.toggle(viewModel)}"
android:onLongClick="@{() -> item.toggle()}"
tools:layout_marginBottom="@dimen/l1"
- tools:layout_marginEnd="@dimen/l1"
- tools:layout_width="200dp">
+ tools:layout_marginEnd="@dimen/l1">
-
-
+
+
+
+
+
+
-
-
diff --git a/app/src/main/res/layout/item_settings_toggle.xml b/app/src/main/res/layout/item_settings_toggle.xml
index 14b6e3749..20720ffc6 100644
--- a/app/src/main/res/layout/item_settings_toggle.xml
+++ b/app/src/main/res/layout/item_settings_toggle.xml
@@ -42,16 +42,14 @@
app:srcCompat="@{item.icon}"
tools:srcCompat="@drawable/ic_fingerprint" />
-
diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml
index f22414436..48936f775 100644
--- a/app/src/main/res/values-night/colors.xml
+++ b/app/src/main/res/values-night/colors.xml
@@ -1,13 +1,4 @@
- #FFC107
- #AD8305
-
- #FFFFFF
- #ADADAD
- #1D1D1D
-
- #FFFFFF
- #2AE4E4E4
-
+ #1AFFFFFF
\ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index c40ea25df..7bc981fbe 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -1,8 +1,5 @@
#e0e0e0
-
-
- #ff424242
- #ffffffff
+ #0D000000
diff --git a/app/src/main/res/values/styles_md2_impl.xml b/app/src/main/res/values/styles_md2_impl.xml
index 627f21382..8c6b58491 100644
--- a/app/src/main/res/values/styles_md2_impl.xml
+++ b/app/src/main/res/values/styles_md2_impl.xml
@@ -199,8 +199,11 @@
-
\ No newline at end of file