From 24e2c3a5e9d7cfcbd61e5db281cd1fce7c7772f3 Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Fri, 1 Nov 2019 21:30:29 +0100 Subject: [PATCH] Removed unused icons --- .../magisk/model/entity/recycler/HomeItems.kt | 9 ++------- app/src/main/res/drawable/ic_app_dev.xml | 10 ---------- app/src/main/res/drawable/ic_mainline_dev.xml | 10 ---------- app/src/main/res/drawable/ic_project.xml | 10 ---------- app/src/main/res/layout/item_developer.xml | 13 +------------ 5 files changed, 3 insertions(+), 49 deletions(-) delete mode 100644 app/src/main/res/drawable/ic_app_dev.xml delete mode 100644 app/src/main/res/drawable/ic_mainline_dev.xml delete mode 100644 app/src/main/res/drawable/ic_project.xml 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 72512ba33..885499c33 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 @@ -79,7 +79,6 @@ sealed class HomeItem : ComparableRvItem() { sealed class DeveloperItem : ComparableRvItem() { abstract val items: List - abstract val icon: Int abstract val name: Int override val layoutRes = R.layout.item_developer @@ -89,31 +88,27 @@ sealed class DeveloperItem : ComparableRvItem() { override fun equals(other: Any?): Boolean { if (other !is DeveloperItem) return false - return icon == other.icon && name == other.name && items == other.items + return name == other.name && items == other.items } - override fun hashCode() = - icon.hashCode() + name.hashCode() + items.hashCode() + layoutRes.hashCode() + override fun hashCode() = name.hashCode() + items.hashCode() + layoutRes.hashCode() //region Children object Mainline : DeveloperItem() { override val items = listOf(HomeItem.PayPal.Mainline, HomeItem.Patreon, HomeItem.Twitter.Mainline) - override val icon = R.drawable.ic_mainline_dev override val name = R.string.home_links_mainline } object App : DeveloperItem() { override val items = listOf(HomeItem.PayPal.App, HomeItem.Twitter.App) - override val icon = R.drawable.ic_app_dev override val name = R.string.home_links_app } object Project : DeveloperItem() { override val items = listOf(HomeItem.Github, HomeItem.Xda) - override val icon = R.drawable.ic_project override val name = R.string.home_links_project } //endregion diff --git a/app/src/main/res/drawable/ic_app_dev.xml b/app/src/main/res/drawable/ic_app_dev.xml deleted file mode 100644 index b6491a3a5..000000000 --- a/app/src/main/res/drawable/ic_app_dev.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_mainline_dev.xml b/app/src/main/res/drawable/ic_mainline_dev.xml deleted file mode 100644 index a2155e412..000000000 --- a/app/src/main/res/drawable/ic_mainline_dev.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_project.xml b/app/src/main/res/drawable/ic_project.xml deleted file mode 100644 index 9a78d7390..000000000 --- a/app/src/main/res/drawable/ic_project.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_developer.xml b/app/src/main/res/layout/item_developer.xml index e4a8baa04..3af38b3f4 100644 --- a/app/src/main/res/layout/item_developer.xml +++ b/app/src/main/res/layout/item_developer.xml @@ -20,17 +20,6 @@ android:layout_height="wrap_content" tools:layout_gravity="center|start"> - -