diff --git a/CHANGES.md b/CHANGES.md index 0eeabac4..7c907e3e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,11 +1,19 @@ # Changelog [DE]: +## 0.26.2 +- Verbesserung der Diagramm-Steuerelemente in der Tripzusammenfassung +- Defektes Layout nach Polestar OTA P3.0.3 behoben +- Einige Layoutprobleme im Volvo Infotainment wurden behoben + +## 0.26.1 +- Fix für Android 12 + ## 0.26.0 - Experimentelles Farbschema hinzugefügt. - Vereinfachte Auswahl der Sekundärachse. - Der Datenbankupload wurde in Abschnitte unterteilt, um falsche Fehlermedungen zu vermeiden und den Fortschritt anzeigen zu können. -## 0.25.2 () +## 0.25.2 - Erweiterung der Webhook-API. - Option für eine Handy-Erinnerung beim verlassen des Fahrzeugs hinzugefügt. - Optimierungen bei der Lade- und Rendergeschwindigkeit der Statistikdiagramme. diff --git a/automotive/build.gradle b/automotive/build.gradle index 00f4a0f5..993c410c 100644 --- a/automotive/build.gradle +++ b/automotive/build.gradle @@ -10,8 +10,8 @@ android { defaultConfig { minSdkVersion 29 targetSdkVersion 33 - versionCode 216 - versionName "0.26.2.0001" + versionCode 217 + versionName "0.26.2.0002" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/automotive/src/main/java/com/ixam97/carStatsViewer/CarStatsViewer.kt b/automotive/src/main/java/com/ixam97/carStatsViewer/CarStatsViewer.kt index 45e6c349..ebccdb39 100644 --- a/automotive/src/main/java/com/ixam97/carStatsViewer/CarStatsViewer.kt +++ b/automotive/src/main/java/com/ixam97/carStatsViewer/CarStatsViewer.kt @@ -5,7 +5,6 @@ import android.content.Context import android.content.Intent import android.graphics.Bitmap import android.graphics.Typeface -import android.graphics.fonts.SystemFonts import android.os.Bundle import android.util.TypedValue import android.view.LayoutInflater @@ -21,7 +20,6 @@ import com.ixam97.carStatsViewer.database.tripData.* import com.ixam97.carStatsViewer.liveDataApi.LiveDataApi import com.ixam97.carStatsViewer.liveDataApi.abrpLiveData.AbrpLiveData import com.ixam97.carStatsViewer.liveDataApi.http.HttpLiveData -import com.ixam97.carStatsViewer.ui.plot.graphics.PlotPaint import com.ixam97.carStatsViewer.ui.views.MultiButtonWidget import com.ixam97.carStatsViewer.utils.InAppLogger import com.ixam97.carStatsViewer.utils.ScreenshotButton @@ -115,70 +113,62 @@ class CarStatsViewer : Application() { setPositiveButton(context.getString(R.string.dialog_close)) { dialog, _ -> dialog.cancel() } - // setTitle(context.getString(R.string.main_changelog_dialog_title, BuildConfig.VERSION_NAME.dropLast(5))) - val layout = LayoutInflater.from(context).inflate(R.layout.dialog_changelog, null) - val changelog5Title = layout.findViewById(R.id.changes_0_26_1_title) - val changelog5TextView = layout.findViewById(R.id.changes_0_26_1) - val changelog4Title = layout.findViewById(R.id.changes_0_26_0_title) - val changelog4TextView = layout.findViewById(R.id.changes_0_26_0) - val changelog3Title = layout.findViewById(R.id.changes_0_25_2_title) - val changelog3TextView = layout.findViewById(R.id.changes_0_25_2) - val changelog2Title = layout.findViewById(R.id.changes_0_25_1_title) - val changelog2TextView = layout.findViewById(R.id.changes_0_25_1) - val changelog1Title = layout.findViewById(R.id.changes_0_25_0_title) - val changelog1TextView = layout.findViewById(R.id.changes_0_25_0) - - changelog5Title.text = context.getString(R.string.main_changelog_dialog_title, "0.26.1") - changelog4Title.text = context.getString(R.string.main_changelog_dialog_title, "0.26.0") - changelog3Title.text = context.getString(R.string.main_changelog_dialog_title, "0.25.2") - changelog2Title.text = context.getString(R.string.main_changelog_dialog_title, "0.25.1") - changelog1Title.text = context.getString(R.string.main_changelog_dialog_title, "0.25.0") - - val changesArray5 = context.resources.getStringArray(R.array.changes_0_26_1) - var changelog5 = "" - changesArray5.forEachIndexed { index, change -> - changelog5 += "• $change" - if (index < changesArray5.size - 1) changelog5 += "\n\n" - } - - val changesArray4 = context.resources.getStringArray(R.array.changes_0_26_0) - var changelog4 = "" - changesArray4.forEachIndexed { index, change -> - changelog4 += "• $change" - if (index < changesArray4.size - 1) changelog4 += "\n\n" - } - - val changesArray3 = context.resources.getStringArray(R.array.changes_0_25_2) - var changelog3 = "" - changesArray3.forEachIndexed { index, change -> - changelog3 += "• $change" - if (index < changesArray3.size - 1) changelog3 += "\n\n" - } - - val changesArray2 = context.resources.getStringArray(R.array.changes_0_25_1) - var changelog2 = "" - changesArray2.forEachIndexed { index, change -> - changelog2 += "• $change" - if (index < changesArray2.size - 1) changelog2 += "\n\n" - } - - val changesArray1 = context.resources.getStringArray(R.array.changes_0_25_0) - var changelog1 = "" - changesArray1.forEachIndexed { index, change -> - changelog1 += "• $change" - if (index < changesArray1.size - 1) changelog1 += "\n\n" + fun applyChangelogVersion( + versionString: String, + changesArrayResId: Int, + titleViewResId: Int, + textViewResId: Int, + ) { + val changesArray = context.resources.getStringArray(changesArrayResId) + var changelog = "" + changesArray.forEachIndexed { index, change -> + changelog += "• $change" + if (index < changesArray.size - 1) changelog += "\n\n" + } + layout.findViewById(titleViewResId).text = context.getString(R.string.main_changelog_dialog_title, versionString) + layout.findViewById(textViewResId).text = changelog } - changelog5TextView.text = changelog5 - changelog4TextView.text = changelog4 - changelog3TextView.text = changelog3 - changelog2TextView.text = changelog2 - changelog1TextView.text = changelog1 + applyChangelogVersion( + versionString = "0.26.2", + titleViewResId = R.id.changes_0_26_2_title, + textViewResId = R.id.changes_0_26_2, + changesArrayResId = R.array.changes_0_26_2 + ) + applyChangelogVersion( + versionString = "0.26.1", + titleViewResId = R.id.changes_0_26_1_title, + textViewResId = R.id.changes_0_26_1, + changesArrayResId = R.array.changes_0_26_1 + ) + applyChangelogVersion( + versionString = "0.26.0", + titleViewResId = R.id.changes_0_26_0_title, + textViewResId = R.id.changes_0_26_0, + changesArrayResId = R.array.changes_0_26_0 + ) + applyChangelogVersion( + versionString = "0.25.2", + titleViewResId = R.id.changes_0_25_2_title, + textViewResId = R.id.changes_0_25_2, + changesArrayResId = R.array.changes_0_25_2 + ) + applyChangelogVersion( + versionString = "0.25.1", + titleViewResId = R.id.changes_0_25_1_title, + textViewResId = R.id.changes_0_25_1, + changesArrayResId = R.array.changes_0_25_1 + ) + applyChangelogVersion( + versionString = "0.25.0", + titleViewResId = R.id.changes_0_25_0_title, + textViewResId = R.id.changes_0_25_0, + changesArrayResId = R.array.changes_0_25_0 + ) applyTypeface(layout) - setView(layout) setCancelable(true) diff --git a/automotive/src/main/res/layout/dialog_changelog.xml b/automotive/src/main/res/layout/dialog_changelog.xml index 2cc6c32c..aee2c78a 100644 --- a/automotive/src/main/res/layout/dialog_changelog.xml +++ b/automotive/src/main/res/layout/dialog_changelog.xml @@ -8,9 +8,24 @@ android:layout_marginHorizontal="25dp" android:paddingBottom="50dp" android:orientation="vertical"> + + + + + + Verbesserung der Diagramm-Steuerelemente in der Tripzusammenfassung + Defektes Layout nach Polestar OTA P3.0.3 behoben + Einige Layoutprobleme im Volvo Infotainment wurden behoben + + + + Fix für Android 12 (P3.0) + Experimentelles Farbschema hinzugefügt. diff --git a/automotive/src/main/res/values/strings.xml b/automotive/src/main/res/values/strings.xml index d2a1becd..199270e8 100644 --- a/automotive/src/main/res/values/strings.xml +++ b/automotive/src/main/res/values/strings.xml @@ -60,6 +60,12 @@ Ricardo Blauth Marcelo Fornereto + + + Tweaked summary plot controls + Fixed broken layout after Polestar OTA P3.0.3 + Fixed some layout issues on Volvo Infotainment + Fix for Android 12 (P3.0) diff --git a/automotive/src/main/res/values/styles.xml b/automotive/src/main/res/values/styles.xml index 5b50afaf..01555157 100644 --- a/automotive/src/main/res/values/styles.xml +++ b/automotive/src/main/res/values/styles.xml @@ -123,9 +123,10 @@ @dimen/std_font_size