Fix "last seen at".

This commit is contained in:
darken
2022-09-14 18:00:18 +02:00
committed by Matthias Urhahn
parent 7dfea78c87
commit 87ca90f6cc
20 changed files with 21 additions and 5 deletions
@@ -98,7 +98,7 @@ class OverviewFragmentVM @Inject constructor(
}
val podToShow = mainPod ?: podDeviceCache.loadMainDevice()?.let {
log(TAG, VERBOSE) { "Using podDeviceCache" }
log(TAG, VERBOSE) { "Using podDeviceCache: $it" }
podFactory.createPod(it)?.device
}
log(TAG, VERBOSE) { "Showing $podToShow" }
@@ -38,8 +38,7 @@ class DualPodsCardVH(parent: ViewGroup) :
}
deviceIcon.setImageResource(device.iconRes)
lastSeen.text = context.getString(R.string.last_seen_x, device.lastSeenFormatted(item.now))
// reception.text = item.getReceptionText()
lastSeen.text = context.getString(R.string.last_seen_x, "\n" + device.lastSeenFormatted(item.now))
// Pods battery state
device.apply {
@@ -272,7 +272,6 @@
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:gravity="center"
app:drawableStartCompat="@drawable/ic_baseline_watch_later_12"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"