mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-07 06:39:45 +00:00
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
8ca769832d
commit
65cb31b1e7
@ -1082,11 +1082,14 @@ class ChatActivity :
|
||||
is ChatViewModel.OutOfOfficeUIState.Success -> {
|
||||
binding.outOfOfficeContainer.visibility = View.VISIBLE
|
||||
|
||||
val backgroundColor = colorUtil.getNullSafeColorWithFallbackRes(
|
||||
conversationUser!!.capabilities!!.themingCapability!!.color,
|
||||
R.color.colorPrimary
|
||||
)
|
||||
|
||||
val backgroundColor = colorUtil.getNullSafeColorWithFallbackRes(conversationUser!!.capabilities
|
||||
!!.themingCapability!!.color, R.color.colorPrimary)
|
||||
|
||||
binding.outOfOfficeContainer.findViewById<View>(R.id.verticalLine).setBackgroundColor(backgroundColor)
|
||||
binding.outOfOfficeContainer.findViewById<View>(
|
||||
R.id.verticalLine
|
||||
).setBackgroundColor(backgroundColor)
|
||||
val setAlpha = ColorUtils.setAlphaComponent(backgroundColor, (0.3f * 255).toInt())
|
||||
binding.outOfOfficeContainer.setCardBackgroundColor(setAlpha)
|
||||
|
||||
|
@ -21,7 +21,10 @@ import com.nextcloud.talk.utils.ApiUtils
|
||||
import io.reactivex.Observable
|
||||
import retrofit2.Response
|
||||
|
||||
class RetrofitChatNetwork(private val ncApi: NcApi, private val ncApiCoroutines: NcApiCoroutines) : ChatNetworkDataSource {
|
||||
class RetrofitChatNetwork(
|
||||
private val ncApi: NcApi,
|
||||
private val ncApiCoroutines: NcApiCoroutines
|
||||
) : ChatNetworkDataSource {
|
||||
override fun getRoom(user: User, roomToken: String): Observable<ConversationModel> {
|
||||
val credentials: String = ApiUtils.getCredentials(user.username, user.token)!!
|
||||
val apiVersion = ApiUtils.getConversationApiVersion(user, intArrayOf(ApiUtils.API_V4, ApiUtils.API_V3, 1))
|
||||
|
Loading…
Reference in New Issue
Block a user