mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-16 11:16:12 -04:00
Fix "last seen at".
This commit is contained in:
@@ -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" }
|
||||
|
||||
+1
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user