Allow access of poll history only in debug variant

This commit is contained in:
Maxime NATUREL 2022-12-30 12:08:55 +01:00
parent 8de86e7480
commit bf67d2529f
1 changed files with 10 additions and 6 deletions

View File

@ -18,6 +18,7 @@
package im.vector.app.features.roomprofile package im.vector.app.features.roomprofile
import com.airbnb.epoxy.TypedEpoxyController import com.airbnb.epoxy.TypedEpoxyController
import im.vector.app.BuildConfig
import im.vector.app.R import im.vector.app.R
import im.vector.app.core.epoxy.expandableTextItem import im.vector.app.core.epoxy.expandableTextItem
import im.vector.app.core.epoxy.profiles.buildProfileAction import im.vector.app.core.epoxy.profiles.buildProfileAction
@ -264,12 +265,15 @@ class RoomProfileController @Inject constructor(
action = { callback?.onBannedMemberListClicked() } action = { callback?.onBannedMemberListClicked() }
) )
} }
if (BuildConfig.DEBUG) {
// WIP, will be in release when related screens will be finished
buildProfileAction( buildProfileAction(
id = "poll_history", id = "poll_history",
title = stringProvider.getString(R.string.room_profile_section_more_polls), title = stringProvider.getString(R.string.room_profile_section_more_polls),
icon = R.drawable.ic_attachment_poll, icon = R.drawable.ic_attachment_poll,
action = { callback?.onPollHistoryClicked() } action = { callback?.onPollHistoryClicked() }
) )
}
buildProfileAction( buildProfileAction(
id = "uploads", id = "uploads",
title = stringProvider.getString(R.string.room_profile_section_more_uploads), title = stringProvider.getString(R.string.room_profile_section_more_uploads),