Skip to content

Commit

Permalink
Minor code changes like before
Browse files Browse the repository at this point in the history
(removing hardcoded values)
and I hope I'm Deeg05 not some weird "Buildtools"
  • Loading branch information
deeg05 authored and BuildTools committed May 27, 2020
1 parent 533762b commit 57bb624
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/main/res/layout/activity_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
android:hint="@string/wheel_size_hint"
android:inputType="number"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/speedUnitsSwitch" />
app:layout_constraintTop_toBottomOf="@+id/speedUnitsSwitch"
android:autofillHints="" />

<Switch
android:id="@+id/speedUnitsSwitch"
Expand All @@ -24,8 +25,8 @@
android:layout_marginTop="16dp"
android:checked="false"
android:text="@string/speed_units"
android:textOff="km/h"
android:textOn="mph"
android:textOff="@string/kph"
android:textOn="@string/mph"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
<string name="default_speed">0.0</string>
<string name="wheel_size_hint">Input wheel size in mm</string>
<string name="speed_units">Speed units</string>
<string name="mph">m/h</string>
<string name="kph">km/h</string>
</resources>

0 comments on commit 57bb624

Please sign in to comment.