forked from github/szkolny
[UI] Fix SettingsAboutCard having duplicate items.
This commit is contained in:
parent
f52cc1b197
commit
c21d89cf60
@ -39,16 +39,13 @@ class SettingsAboutCard(util: SettingsUtil) : SettingsCard(util), CoroutineScope
|
|||||||
MediaPlayer.create(activity, R.raw.ogarnij_sie)
|
MediaPlayer.create(activity, R.raw.ogarnij_sie)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun buildCard(): MaterialAboutCard =
|
override fun buildCard() = util.createCard(
|
||||||
util.createCard(
|
null,
|
||||||
null,
|
items = ::getItems,
|
||||||
items = ::getItems,
|
itemsMore = ::getItemsMore,
|
||||||
itemsMore = ::getItemsMore,
|
backgroundColor = 0xff1976d2.toInt(),
|
||||||
backgroundColor = 0xff1976d2.toInt(),
|
theme = R.style.AppTheme_Dark
|
||||||
theme = R.style.AppTheme_Dark
|
)
|
||||||
).also {
|
|
||||||
it.items.addAll(getItems(it))
|
|
||||||
}
|
|
||||||
|
|
||||||
private val versionDetailsItem by lazy {
|
private val versionDetailsItem by lazy {
|
||||||
util.createActionItem(
|
util.createActionItem(
|
||||||
|
@ -4,9 +4,7 @@
|
|||||||
|
|
||||||
package pl.szczodrzynski.edziennik.ui.settings.cards
|
package pl.szczodrzynski.edziennik.ui.settings.cards
|
||||||
|
|
||||||
import com.danielstone.materialaboutlibrary.items.MaterialAboutItem
|
|
||||||
import com.danielstone.materialaboutlibrary.model.MaterialAboutCard
|
import com.danielstone.materialaboutlibrary.model.MaterialAboutCard
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
|
||||||
import com.mikepenz.iconics.typeface.library.community.material.CommunityMaterial
|
import com.mikepenz.iconics.typeface.library.community.material.CommunityMaterial
|
||||||
import eu.szkolny.font.SzkolnyFont
|
import eu.szkolny.font.SzkolnyFont
|
||||||
import pl.szczodrzynski.edziennik.App
|
import pl.szczodrzynski.edziennik.App
|
||||||
|
Loading…
Reference in New Issue
Block a user