From bdeab0cc73d013d5f81b8c4c8cf8813b5ca5156f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Thu, 22 Jun 2023 22:40:55 +0100 Subject: [PATCH] Extract some hardcoded strings to resources --- app/src/main/res/layout/activity_alarm_details.xml | 4 ++-- app/src/main/res/layout/activity_appinstaller.xml | 4 ++-- app/src/main/res/layout/activity_binary_sensor_data.xml | 4 ++-- .../res/menu/activity_controlcenterv2_main_drawer.xml | 2 +- app/src/main/res/values/strings.xml | 8 ++++++++ app/src/main/res/xml/devicesettings_banglejs.xml | 6 +++--- 6 files changed, 18 insertions(+), 10 deletions(-) diff --git a/app/src/main/res/layout/activity_alarm_details.xml b/app/src/main/res/layout/activity_alarm_details.xml index a82069e06..5cdd2dfc9 100644 --- a/app/src/main/res/layout/activity_alarm_details.xml +++ b/app/src/main/res/layout/activity_alarm_details.xml @@ -48,7 +48,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:ems="10" - android:hint="Title" + android:hint="@string/title" android:inputType="text" android:maxLength="32" /> @@ -58,7 +58,7 @@ android:layout_height="wrap_content" android:ems="10" android:gravity="start|top" - android:hint="Description" + android:hint="@string/description" android:inputType="textMultiLine" android:maxLength="256" android:singleLine="false" /> diff --git a/app/src/main/res/layout/activity_appinstaller.xml b/app/src/main/res/layout/activity_appinstaller.xml index a23b73869..c115c4477 100644 --- a/app/src/main/res/layout/activity_appinstaller.xml +++ b/app/src/main/res/layout/activity_appinstaller.xml @@ -20,7 +20,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="8dp" - android:contentDescription="preview image" + android:contentDescription="@string/preview_image" android:visibility="gone" /> + android:contentDescription="@string/status_icon" /> diff --git a/app/src/main/res/menu/activity_controlcenterv2_main_drawer.xml b/app/src/main/res/menu/activity_controlcenterv2_main_drawer.xml index 46b28dbf4..f723eb899 100644 --- a/app/src/main/res/menu/activity_controlcenterv2_main_drawer.xml +++ b/app/src/main/res/menu/activity_controlcenterv2_main_drawer.xml @@ -35,7 +35,7 @@ android:icon="@drawable/ic_donate" /> Debug Quit Donate + Changelog Synchronize Find lost device Search for %1$s? @@ -264,8 +265,11 @@ If a word cannot be rendered with the watch\'s font, render it to a bitmap in Gadgetbridge and display the bitmap on the watch Text Bitmaps Size If \'Text as Bitmaps\' enabled, what size should text be rendered? + Use phone gps data Use the gps data of the phone to overwrite the gps data of the bangle device + Only use network to determine location This option is only active, if the gps data of the phone is being used. This option can be used to use only the network provider to determine the location. This reduces the power consumption for the cost of accuracy. A reconnection of the device is needed. + GPS data update interval in ms This option is only active, if the gps data of the phone is being used. This option sets the interval in ms how often the gps position is being updated App loader URL If you want a custom app loader put your https://…/android.html URL here. Otherwise leave blank for https://banglejs.com/apps @@ -2137,4 +2141,8 @@ Enable logs from watch apps Start logging from watch apps Stop logging from watch apps + Title + Description + Preview image + Status icon diff --git a/app/src/main/res/xml/devicesettings_banglejs.xml b/app/src/main/res/xml/devicesettings_banglejs.xml index 90a7bdd1e..e4fac2ab2 100644 --- a/app/src/main/res/xml/devicesettings_banglejs.xml +++ b/app/src/main/res/xml/devicesettings_banglejs.xml @@ -5,20 +5,20 @@ android:icon="@drawable/ic_gps_location" android:key="banglejs_gps_update" android:summary="@string/pref_summary_banglejs_phone_gps_enbale" - android:title="Use phone gps data" /> + android:title="@string/pref_title_banglejs_phone_gps_enbale" /> + android:title="@string/pref_title_banglejs_phone_gps_update_interval" /> + android:title="@string/pref_title_banglejs_phone_gps_network_only" />