mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
code format kotlin code
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
4784a22e18
commit
0e92e5ea2d
@ -298,8 +298,7 @@ class ChatController(args: Bundle) :
|
||||
}
|
||||
|
||||
private fun getRoomInfo() {
|
||||
val shouldRepeat = CapabilitiesUtil.hasSpreedFeatureCapability(conversationUser, "webinary-lobby") ?:
|
||||
false
|
||||
val shouldRepeat = CapabilitiesUtil.hasSpreedFeatureCapability(conversationUser, "webinary-lobby")
|
||||
if (shouldRepeat) {
|
||||
checkingLobbyStatus = true
|
||||
}
|
||||
|
@ -88,7 +88,11 @@ import java.util.Locale
|
||||
import javax.inject.Inject
|
||||
|
||||
@AutoInjector(NextcloudTalkApplication::class)
|
||||
class ConversationInfoController(args: Bundle) : NewBaseController(R.layout.controller_conversation_info, args),
|
||||
class ConversationInfoController(args: Bundle) :
|
||||
NewBaseController(
|
||||
R.layout.controller_conversation_info,
|
||||
args
|
||||
),
|
||||
FlexibleAdapter
|
||||
.OnItemClickListener {
|
||||
private val binding: ControllerConversationInfoBinding by viewBinding(ControllerConversationInfoBinding::bind)
|
||||
@ -387,17 +391,7 @@ class ConversationInfoController(args: Bundle) : NewBaseController(R.layout.cont
|
||||
adapter!!.updateDataSet(recyclerViewItems)
|
||||
}
|
||||
|
||||
/**
|
||||
override fun getTitle(): String? {
|
||||
return if (hasAvatarSpacing) {
|
||||
" " + resources!!.getString(R.string.nc_conversation_menu_conversation_info)
|
||||
} else {
|
||||
resources!!.getString(R.string.nc_conversation_menu_conversation_info)
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
override val title: String?
|
||||
override val title: String
|
||||
get() =
|
||||
if (hasAvatarSpacing) {
|
||||
" " + resources!!.getString(R.string.nc_conversation_menu_conversation_info)
|
||||
|
@ -138,7 +138,8 @@ abstract class NewBaseController(@LayoutRes var layoutRes: Int, args: Bundle? =
|
||||
activity.binding.searchToolbar.visibility = View.VISIBLE
|
||||
activity.binding.searchText.hint = searchHint
|
||||
activity.binding.toolbar.visibility = View.GONE
|
||||
//layoutParams.setScrollFlags(AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL | AppBarLayout.LayoutParams.SCROLL_FLAG_SNAP | AppBarLayout.LayoutParams.SCROLL_FLAG_ENTER_ALWAYS);
|
||||
// layoutParams.setScrollFlags(AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL | AppBarLayout
|
||||
// .LayoutParams.SCROLL_FLAG_SNAP | AppBarLayout.LayoutParams.SCROLL_FLAG_ENTER_ALWAYS);
|
||||
layoutParams.scrollFlags = 0
|
||||
activity.binding.appBar.stateListAnimator = AnimatorInflater.loadStateListAnimator(
|
||||
activity.binding.appBar.context,
|
||||
@ -157,14 +158,16 @@ abstract class NewBaseController(@LayoutRes var layoutRes: Int, args: Bundle? =
|
||||
if (resources != null) {
|
||||
if (showSearchBar) {
|
||||
DisplayUtils.applyColorToStatusBar(
|
||||
activity, ResourcesCompat.getColor(
|
||||
activity,
|
||||
ResourcesCompat.getColor(
|
||||
resources!!,
|
||||
R.color.bg_default, null
|
||||
)
|
||||
)
|
||||
} else {
|
||||
DisplayUtils.applyColorToStatusBar(
|
||||
activity, ResourcesCompat.getColor(
|
||||
activity,
|
||||
ResourcesCompat.getColor(
|
||||
resources!!,
|
||||
R.color.appbar, null
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user