mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 10:27:39 +00:00
Partially reverted developer section changes
This commit is contained in:
parent
a70c0174e1
commit
ee7d297ca8
@ -106,7 +106,7 @@ sealed class DeveloperItem : ComparableRvItem<DeveloperItem>() {
|
||||
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
|
||||
}
|
||||
|
||||
|
@ -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<HomeViewModel, FragmentHomeMd2Binding>() {
|
||||
activity.title = resources.getString(R.string.section_home)
|
||||
}
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
LinearSnapHelper().attachToRecyclerView(binding.homeSupportList)
|
||||
}
|
||||
}
|
@ -698,19 +698,35 @@
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/home_support_list"
|
||||
dividerHorizontal="@{R.drawable.divider_l1}"
|
||||
itemBinding="@{viewModel.itemDeveloperBinding}"
|
||||
items="@{viewModel.items}"
|
||||
<include
|
||||
item="@{viewModel.items[0]}"
|
||||
layout="@layout/item_developer"
|
||||
viewModel="@{viewModel}"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/l1"
|
||||
android:layout_marginTop="@dimen/l1"
|
||||
android:clipToPadding="false"
|
||||
android:orientation="horizontal"
|
||||
android:paddingStart="@dimen/l1"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||
tools:listitem="@layout/item_developer" />
|
||||
android:layout_marginEnd="@dimen/l1" />
|
||||
|
||||
<include
|
||||
item="@{viewModel.items[1]}"
|
||||
layout="@layout/item_developer"
|
||||
viewModel="@{viewModel}"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/l1"
|
||||
android:layout_marginTop="@dimen/l1"
|
||||
android:layout_marginEnd="@dimen/l1" />
|
||||
|
||||
<include
|
||||
item="@{viewModel.items[2]}"
|
||||
layout="@layout/item_developer"
|
||||
viewModel="@{viewModel}"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/l1"
|
||||
android:layout_marginTop="@dimen/l1"
|
||||
android:layout_marginEnd="@dimen/l1" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user