forked from topjohnwu/Magisk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added division of the modules section to updatable, installed and not…
… installed
- Loading branch information
Showing
4 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/topjohnwu/magisk/model/entity/recycler/SectionRvItem.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.topjohnwu.magisk.model.entity.recycler | ||
|
||
import com.skoumal.teanity.databinding.ComparableRvItem | ||
import com.topjohnwu.magisk.R | ||
|
||
class SectionRvItem(val text: String) : ComparableRvItem<SectionRvItem>() { | ||
override val layoutRes: Int = R.layout.item_section | ||
|
||
override fun contentSameAs(other: SectionRvItem) = itemSameAs(other) | ||
override fun itemSameAs(other: SectionRvItem) = text == other.text | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<data> | ||
|
||
<variable | ||
name="item" | ||
type="com.topjohnwu.magisk.model.entity.recycler.SectionRvItem" /> | ||
|
||
<variable | ||
name="viewModel" | ||
type="Object" /> | ||
|
||
</data> | ||
|
||
<androidx.appcompat.widget.AppCompatTextView | ||
style="@style/Widget.Text.SectionTitle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@{item.text}" | ||
tools:text="@string/update_available" /> | ||
|
||
</layout> |