mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-30 19:04:54 +01:00
Fix background color of bottom banner
This commit is contained in:
parent
6622651a90
commit
82cbc351e5
@ -68,7 +68,7 @@ class DefaultLiveLocationShareStatusItem : LiveLocationShareStatusItem {
|
||||
GranularRoundedCorners(0f, 0f, bottomCornerRadius, bottomCornerRadius)
|
||||
}
|
||||
GlideApp.with(bannerImageView)
|
||||
.load(ColorDrawable(ThemeUtils.getColor(bannerImageView.context, R.attr.colorSurface)))
|
||||
.load(ColorDrawable(ThemeUtils.getColor(bannerImageView.context, android.R.attr.colorBackground)))
|
||||
.transform(imageCornerTransformation)
|
||||
.into(bannerImageView)
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ class LocationLiveMessageBannerView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
GlideApp.with(context)
|
||||
.load(ColorDrawable(ThemeUtils.getColor(context, R.attr.colorSurface)))
|
||||
.load(ColorDrawable(ThemeUtils.getColor(context, android.R.attr.colorBackground)))
|
||||
.transform(GranularRoundedCorners(0f, 0f, viewState.bottomEndCornerRadiusInDp, viewState.bottomStartCornerRadiusInDp))
|
||||
.into(background)
|
||||
}
|
||||
@ -108,7 +108,10 @@ class LocationLiveMessageBannerView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
override fun onFinish() {
|
||||
subTitle.text = context.getString(R.string.location_share_live_remaining_time, TextUtils.formatDurationWithUnits(context, Duration.ofMillis(0L)))
|
||||
subTitle.text = context.getString(
|
||||
R.string.location_share_live_remaining_time,
|
||||
TextUtils.formatDurationWithUnits(context, Duration.ofMillis(0L))
|
||||
)
|
||||
}
|
||||
}
|
||||
countDownTimer?.start()
|
||||
|
@ -20,7 +20,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:alpha="0.85"
|
||||
android:src="?colorSurface"
|
||||
android:src="?android:colorBackground"
|
||||
app:layout_constraintBottom_toBottomOf="@id/locationLiveInactiveMap"
|
||||
app:layout_constraintEnd_toEndOf="@id/locationLiveInactiveMap"
|
||||
app:layout_constraintStart_toStartOf="@id/locationLiveInactiveMap"
|
||||
|
@ -20,7 +20,7 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:alpha="0.85"
|
||||
android:src="?colorSurface"
|
||||
android:src="?android:colorBackground"
|
||||
app:layout_constraintBottom_toBottomOf="@id/locationLiveStartMap"
|
||||
app:layout_constraintEnd_toEndOf="@id/locationLiveStartMap"
|
||||
app:layout_constraintStart_toStartOf="@id/locationLiveStartMap"
|
||||
|
@ -14,7 +14,7 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:background="?colorSurface"
|
||||
tools:background="?android:colorBackground"
|
||||
tools:ignore="ContentDescription" />
|
||||
|
||||
<ImageView
|
||||
|
Loading…
x
Reference in New Issue
Block a user