From 6e7b90a18412ee37b62715d0286fcf17744f357d Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 1 Feb 2019 00:36:13 -0500 Subject: [PATCH] Make advanced settings expandable --- .../magisk/adapters/PolicyAdapter.java | 31 +------- .../magisk/fragments/MagiskFragment.java | 28 +++---- .../uicomponents/ArrowExpandedViewHolder.java | 43 +++++++++++ app/src/full/res/layout/fragment_magisk.xml | 76 +++++++++++++------ 4 files changed, 111 insertions(+), 67 deletions(-) create mode 100644 app/src/full/java/com/topjohnwu/magisk/uicomponents/ArrowExpandedViewHolder.java diff --git a/app/src/full/java/com/topjohnwu/magisk/adapters/PolicyAdapter.java b/app/src/full/java/com/topjohnwu/magisk/adapters/PolicyAdapter.java index ec68de2d8..da42baace 100644 --- a/app/src/full/java/com/topjohnwu/magisk/adapters/PolicyAdapter.java +++ b/app/src/full/java/com/topjohnwu/magisk/adapters/PolicyAdapter.java @@ -5,8 +5,6 @@ import android.content.pm.PackageManager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import android.view.animation.Animation; -import android.view.animation.RotateAnimation; import android.widget.ImageView; import android.widget.TextView; @@ -16,6 +14,7 @@ import com.topjohnwu.magisk.container.Policy; import com.topjohnwu.magisk.database.MagiskDB; import com.topjohnwu.magisk.dialogs.CustomAlertDialog; import com.topjohnwu.magisk.dialogs.FingerprintAuthDialog; +import com.topjohnwu.magisk.uicomponents.ArrowExpandedViewHolder; import com.topjohnwu.magisk.uicomponents.ExpandableViewHolder; import com.topjohnwu.magisk.uicomponents.SnackbarMaker; import com.topjohnwu.magisk.utils.FingerprintHelper; @@ -156,33 +155,7 @@ public class PolicyAdapter extends RecyclerView.Adapter - + android:orientation="vertical" + android:paddingTop="10dp" + android:paddingBottom="10dp"> - + + + + + + + + + android:orientation="vertical"> - + - + + +