From ee7d297ca8eaa7c3b4e31ed53696f39691389484 Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Sat, 26 Oct 2019 21:14:01 +0200 Subject: [PATCH] Partially reverted developer section changes --- .../magisk/model/entity/recycler/HomeItems.kt | 2 +- .../magisk/redesign/home/HomeFragment.kt | 7 ---- app/src/main/res/layout/fragment_home_md2.xml | 36 +++++++++++++------ 3 files changed, 27 insertions(+), 18 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/model/entity/recycler/HomeItems.kt b/app/src/main/java/com/topjohnwu/magisk/model/entity/recycler/HomeItems.kt index fb049d9ba..72512ba33 100644 --- a/app/src/main/java/com/topjohnwu/magisk/model/entity/recycler/HomeItems.kt +++ b/app/src/main/java/com/topjohnwu/magisk/model/entity/recycler/HomeItems.kt @@ -106,7 +106,7 @@ sealed class DeveloperItem : ComparableRvItem() { object App : DeveloperItem() { override val items = listOf(HomeItem.PayPal.App, HomeItem.Twitter.App) - override val icon = R.drawable.ic_mainline_dev + override val icon = R.drawable.ic_app_dev override val name = R.string.home_links_app } diff --git a/app/src/main/java/com/topjohnwu/magisk/redesign/home/HomeFragment.kt b/app/src/main/java/com/topjohnwu/magisk/redesign/home/HomeFragment.kt index 3bb316104..d2b5b1685 100644 --- a/app/src/main/java/com/topjohnwu/magisk/redesign/home/HomeFragment.kt +++ b/app/src/main/java/com/topjohnwu/magisk/redesign/home/HomeFragment.kt @@ -1,9 +1,6 @@ package com.topjohnwu.magisk.redesign.home import android.graphics.Insets -import android.os.Bundle -import android.view.View -import androidx.recyclerview.widget.LinearSnapHelper import com.topjohnwu.magisk.R import com.topjohnwu.magisk.databinding.FragmentHomeMd2Binding import com.topjohnwu.magisk.redesign.compat.CompatFragment @@ -21,8 +18,4 @@ class HomeFragment : CompatFragment() { activity.title = resources.getString(R.string.section_home) } - override fun onViewCreated(view: View, savedInstanceState: Bundle?) { - super.onViewCreated(view, savedInstanceState) - LinearSnapHelper().attachToRecyclerView(binding.homeSupportList) - } } \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_home_md2.xml b/app/src/main/res/layout/fragment_home_md2.xml index 2f45f806c..d53407ca3 100644 --- a/app/src/main/res/layout/fragment_home_md2.xml +++ b/app/src/main/res/layout/fragment_home_md2.xml @@ -698,19 +698,35 @@ - + android:layout_marginEnd="@dimen/l1" /> + + + +