From cf8198297a3dbbc1417365619eb5a7ea0fad3079 Mon Sep 17 00:00:00 2001 From: Daniel Shokouhi Date: Mon, 17 Jul 2023 19:27:29 -0700 Subject: [PATCH] Small clean up --- .../settings/vehicle/views/AndroidAutoFavoritesView.kt | 2 -- .../companion/android/vehicle/MainVehicleScreen.kt | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/homeassistant/companion/android/settings/vehicle/views/AndroidAutoFavoritesView.kt b/app/src/main/java/io/homeassistant/companion/android/settings/vehicle/views/AndroidAutoFavoritesView.kt index 0cef827bb7c..e3ee4352d10 100755 --- a/app/src/main/java/io/homeassistant/companion/android/settings/vehicle/views/AndroidAutoFavoritesView.kt +++ b/app/src/main/java/io/homeassistant/companion/android/settings/vehicle/views/AndroidAutoFavoritesView.kt @@ -1,7 +1,6 @@ package io.homeassistant.companion.android.settings.vehicle.views import android.os.Build -import android.util.Log import androidx.annotation.RequiresApi import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxWidth @@ -90,7 +89,6 @@ fun AndroidAutoFavoritesSettings( items(favoriteEntities.size, { favoriteEntities[it] }) { index -> val favoriteEntityID = favoriteEntities[index].replace("[", "").replace("]", "").split("-")[1] - Log.d("AAVM", "$favoriteEntityID is found") androidAutoViewModel.sortedEntities.filter { it.entityId == favoriteEntityID }.let { ReorderableItem( reorderableState = reorderState, diff --git a/app/src/main/java/io/homeassistant/companion/android/vehicle/MainVehicleScreen.kt b/app/src/main/java/io/homeassistant/companion/android/vehicle/MainVehicleScreen.kt index b9b7482f830..6f991a1f8dc 100644 --- a/app/src/main/java/io/homeassistant/companion/android/vehicle/MainVehicleScreen.kt +++ b/app/src/main/java/io/homeassistant/companion/android/vehicle/MainVehicleScreen.kt @@ -150,14 +150,14 @@ class MainVehicleScreen( .setTint(CarColor.DEFAULT) .build() ) - setTitle("Favorites") + setTitle(carContext.getString(commonR.string.favorites)) setOnClickListener { Log.i(TAG, "Favorites clicked: $favoritesList, current server: ${serverId.value}") screenManager.push( EntityGridVehicleScreen( carContext, serverManager.integrationRepository(serverId.value), - "Favorites", + carContext.getString(commonR.string.favorites), allEntities.map { it.values.filter { entity -> favoritesList.contains("${serverId.value}-${entity.entityId}") } } ) )