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"> - -