Skip to content

Commit 8dea576

Browse files
committed
chore: add pixincreate as a developer for ease of access
i often times find it difficult to reach to my repo
1 parent 92ed6d1 commit 8dea576

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

app/apk/src/main/java/com/topjohnwu/magisk/ui/home/DeveloperItem.kt

+12
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ private interface CanyieImpl : Dev {
2929
override val name get() = "canyie"
3030
}
3131

32+
private interface PiXImpl : Dev {
33+
override val name get() = "pixincreate"
34+
}
35+
3236
sealed class DeveloperItem : Dev {
3337

3438
abstract val items: List<IconLink>
@@ -74,6 +78,14 @@ sealed class DeveloperItem : Dev {
7478
object : IconLink.Github.User(), CanyieImpl {}
7579
)
7680
}
81+
82+
object PiX : DeveloperItem(), PiXImpl {
83+
override val items =
84+
listOf<IconLink>(
85+
object : IconLink.Twitter(), PiXImpl {},
86+
object : IconLink.Github.User(), PiXImpl {}
87+
)
88+
}
7789
}
7890

7991
sealed class IconLink : RvItem() {

app/apk/src/main/res/layout/fragment_home_md2.xml

+8
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,14 @@
250250
android:layout_height="wrap_content"
251251
android:layout_marginTop="@dimen/l_50" />
252252

253+
<include
254+
item="@{DeveloperItem.PiX.INSTANCE}"
255+
layout="@layout/item_developer"
256+
viewModel="@{viewModel}"
257+
android:layout_width="wrap_content"
258+
android:layout_height="wrap_content"
259+
android:layout_marginTop="@dimen/l_50" />
260+
253261
</LinearLayout>
254262

255263
</com.google.android.material.card.MaterialCardView>

0 commit comments

Comments
 (0)