Skip to content

Commit

Permalink
chore: add pixincreate as a developer for ease of access
Browse files Browse the repository at this point in the history
i often times find it difficult to reach to my repo
  • Loading branch information
pixincreate committed Oct 30, 2024
1 parent 53042bf commit 2a156ed
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ private interface CanyieImpl : Dev {
override val name get() = "canyie"
}

private interface PiXImpl : Dev {
override val name get() = "pixincreate"
}

sealed class DeveloperItem : Dev {

abstract val items: List<IconLink>
Expand Down Expand Up @@ -74,6 +78,14 @@ sealed class DeveloperItem : Dev {
object : IconLink.Github.User(), CanyieImpl {}
)
}

object PiX : DeveloperItem(), PiXImpl {
override val items =
listOf<IconLink>(
object : IconLink.Twitter(), PiXImpl {},
object : IconLink.Github.User(), PiXImpl {}
)
}
}

sealed class IconLink : RvItem() {
Expand Down
8 changes: 8 additions & 0 deletions app/apk/src/main/res/layout/fragment_home_md2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,14 @@
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/l_50" />

<include
item="@{DeveloperItem.PiX.INSTANCE}"
layout="@layout/item_developer"
viewModel="@{viewModel}"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/l_50" />

</LinearLayout>

</com.google.android.material.card.MaterialCardView>
Expand Down

0 comments on commit 2a156ed

Please sign in to comment.