replace hardcoded strings in the circles to untranslatable strings in res

This commit is contained in:
smayzy 2025-04-19 21:52:30 +02:00
parent 1f7458c806
commit cd0d94215d
2 changed files with 4 additions and 2 deletions

View File

@ -28,7 +28,7 @@
android:layout_marginEnd="0dp" android:layout_marginEnd="0dp"
android:background="@drawable/temp_circle" android:background="@drawable/temp_circle"
android:gravity="center" android:gravity="center"
android:text="--°C" android:text="@string/default_temp_text"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:textSize="18sp" android:textSize="18sp"
android:textStyle="bold" android:textStyle="bold"
@ -48,7 +48,7 @@
android:layout_marginEnd="0dp" android:layout_marginEnd="0dp"
android:background="@drawable/hum_circle" android:background="@drawable/hum_circle"
android:gravity="center" android:gravity="center"
android:text="--%" android:text="@string/default_hum_text"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:textSize="18sp" android:textSize="18sp"
android:textStyle="bold" android:textStyle="bold"

View File

@ -6,4 +6,6 @@
<string name="temp_format" translatable="false">%.1f°C</string> <string name="temp_format" translatable="false">%.1f°C</string>
<string name="hum_format" translatable="false">%.1f%%</string> <string name="hum_format" translatable="false">%.1f%%</string>
<string name="default_temp_text" translatable="false">--°C</string>
<string name="default_hum_text" translatable="false">--%</string>
</resources> </resources>