Skip to content

Commit

Permalink
Fix hardcoded String
Browse files Browse the repository at this point in the history
  • Loading branch information
Ixam97 committed Jan 25, 2023
1 parent 8735e1b commit 2043d9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions automotive/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "com.ixam97.carStatsViewer"
minSdkVersion 28
targetSdkVersion 33
versionCode 34
versionName "0.21.0"
versionCode 35
versionName "0.21.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,9 @@ class MainActivity : Activity() {
DataHolder.speedPlotLine.Visible = !DataHolder.speedPlotLine.Visible
appPreferences.plotSpeed = DataHolder.speedPlotLine.Visible
main_consumption_plot.invalidate()
main_button_speed.text = if (DataHolder.speedPlotLine.Visible) "Geschwindigkeit verbergen" else "Geschwindigkeit einblenden"
main_button_speed.text = if (DataHolder.speedPlotLine.Visible)
getString(R.string.main_button_hide_speed)
else getString(R.string.main_button_show_speed)
}

main_button_summary.setOnClickListener {
Expand Down

0 comments on commit 2043d9f

Please sign in to comment.