Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
ee7d297c
Commit
ee7d297c
authored
Oct 26, 2019
by
Viktor De Pasquale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partially reverted developer section changes
parent
a70c0174
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
18 deletions
+27
-18
HomeItems.kt
...a/com/topjohnwu/magisk/model/entity/recycler/HomeItems.kt
+1
-1
HomeFragment.kt
...n/java/com/topjohnwu/magisk/redesign/home/HomeFragment.kt
+0
-7
fragment_home_md2.xml
app/src/main/res/layout/fragment_home_md2.xml
+26
-10
No files found.
app/src/main/java/com/topjohnwu/magisk/model/entity/recycler/HomeItems.kt
View file @
ee7d297c
...
@@ -106,7 +106,7 @@ sealed class DeveloperItem : ComparableRvItem<DeveloperItem>() {
...
@@ -106,7 +106,7 @@ sealed class DeveloperItem : ComparableRvItem<DeveloperItem>() {
object
App
:
DeveloperItem
()
{
object
App
:
DeveloperItem
()
{
override
val
items
=
override
val
items
=
listOf
(
HomeItem
.
PayPal
.
App
,
HomeItem
.
Twitter
.
App
)
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
override
val
name
=
R
.
string
.
home_links_app
}
}
...
...
app/src/main/java/com/topjohnwu/magisk/redesign/home/HomeFragment.kt
View file @
ee7d297c
package
com.topjohnwu.magisk.redesign.home
package
com.topjohnwu.magisk.redesign.home
import
android.graphics.Insets
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.R
import
com.topjohnwu.magisk.databinding.FragmentHomeMd2Binding
import
com.topjohnwu.magisk.databinding.FragmentHomeMd2Binding
import
com.topjohnwu.magisk.redesign.compat.CompatFragment
import
com.topjohnwu.magisk.redesign.compat.CompatFragment
...
@@ -21,8 +18,4 @@ class HomeFragment : CompatFragment<HomeViewModel, FragmentHomeMd2Binding>() {
...
@@ -21,8 +18,4 @@ class HomeFragment : CompatFragment<HomeViewModel, FragmentHomeMd2Binding>() {
activity
.
title
=
resources
.
getString
(
R
.
string
.
section_home
)
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
app/src/main/res/layout/fragment_home_md2.xml
View file @
ee7d297c
...
@@ -698,19 +698,35 @@
...
@@ -698,19 +698,35 @@
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.recyclerview.widget.RecyclerView
<include
android:id=
"@+id/home_support_list"
item=
"@{viewModel.items[0]}"
dividerHorizontal=
"@{R.drawable.divider_l1}"
layout=
"@layout/item_developer"
itemBinding=
"@{viewModel.itemDeveloperBinding}"
viewModel=
"@{viewModel}"
items=
"@{viewModel.items}"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"@dimen/l1"
android:layout_marginTop=
"@dimen/l1"
android:layout_marginTop=
"@dimen/l1"
android:clipToPadding=
"false"
android:layout_marginEnd=
"@dimen/l1"
/>
android:orientation=
"horizontal"
android:paddingStart=
"@dimen/l1"
<include
app:layoutManager=
"androidx.recyclerview.widget.LinearLayoutManager"
item=
"@{viewModel.items[1]}"
tools:listitem=
"@layout/item_developer"
/>
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>
</LinearLayout>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment