Room Profile / Just show e2e status remove learn more

This commit is contained in:
Valere 2020-02-01 11:03:00 +01:00
parent fc4f5faffd
commit 64df9e23c2

View file

@ -23,6 +23,7 @@ import im.vector.riotx.core.epoxy.profiles.buildProfileAction
import im.vector.riotx.core.epoxy.profiles.buildProfileSection import im.vector.riotx.core.epoxy.profiles.buildProfileSection
import im.vector.riotx.core.resources.ColorProvider import im.vector.riotx.core.resources.ColorProvider
import im.vector.riotx.core.resources.StringProvider import im.vector.riotx.core.resources.StringProvider
import im.vector.riotx.core.ui.list.genericFooterItem
import javax.inject.Inject import javax.inject.Inject
class RoomProfileController @Inject constructor( class RoomProfileController @Inject constructor(
@ -55,14 +56,12 @@ class RoomProfileController @Inject constructor(
} else { } else {
R.string.room_profile_not_encrypted_subtitle R.string.room_profile_not_encrypted_subtitle
} }
buildProfileAction( genericFooterItem {
id = "learn_more", id("e2e info")
title = stringProvider.getString(R.string.room_profile_section_security_learn_more), centered(false)
dividerColor = dividerColor, text(stringProvider.getString(learnMoreSubtitle))
subtitle = stringProvider.getString(learnMoreSubtitle), }
action = { callback?.onLearnMoreClicked() }
)
// More // More
buildProfileSection(stringProvider.getString(R.string.room_profile_section_more)) buildProfileSection(stringProvider.getString(R.string.room_profile_section_more))
buildProfileAction( buildProfileAction(