From 053c0f559827e40fd219f047d83799e3682a21c1 Mon Sep 17 00:00:00 2001 From: cdhiraj40 Date: Tue, 21 Dec 2021 16:07:21 +0530 Subject: [PATCH 1/2] added info for bluetooth disabled in OBD selection --- .../ic_baseline_bluetooth_disabled_24.xml | 10 +++ .../activity_obd_selection_fragment.xml | 11 +--- .../res/layout/bluetooth_disabled_info.xml | 61 +++++++++++++++++++ .../res/values-de/strings_obd_selection.xml | 3 +- .../res/values/strings_obd_selection.xml | 3 +- 5 files changed, 78 insertions(+), 10 deletions(-) create mode 100644 org.envirocar.app/res/drawable/ic_baseline_bluetooth_disabled_24.xml create mode 100644 org.envirocar.app/res/layout/bluetooth_disabled_info.xml diff --git a/org.envirocar.app/res/drawable/ic_baseline_bluetooth_disabled_24.xml b/org.envirocar.app/res/drawable/ic_baseline_bluetooth_disabled_24.xml new file mode 100644 index 000000000..111179bc1 --- /dev/null +++ b/org.envirocar.app/res/drawable/ic_baseline_bluetooth_disabled_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/org.envirocar.app/res/layout/activity_obd_selection_fragment.xml b/org.envirocar.app/res/layout/activity_obd_selection_fragment.xml index 365fc5b32..3616a109a 100644 --- a/org.envirocar.app/res/layout/activity_obd_selection_fragment.xml +++ b/org.envirocar.app/res/layout/activity_obd_selection_fragment.xml @@ -125,13 +125,8 @@ - + diff --git a/org.envirocar.app/res/layout/bluetooth_disabled_info.xml b/org.envirocar.app/res/layout/bluetooth_disabled_info.xml new file mode 100644 index 000000000..f06287399 --- /dev/null +++ b/org.envirocar.app/res/layout/bluetooth_disabled_info.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/org.envirocar.app/res/values-de/strings_obd_selection.xml b/org.envirocar.app/res/values-de/strings_obd_selection.xml index 3e94db048..a6b9dbced 100644 --- a/org.envirocar.app/res/values-de/strings_obd_selection.xml +++ b/org.envirocar.app/res/values-de/strings_obd_selection.xml @@ -25,6 +25,7 @@ Bluetooth An Bluetooth Aus Bluetooth ist deaktiviert. + Bitte aktivieren Sie Bluetooth, bevor Sie nach anderen Geräten suchen können. Bluetooth ist deaktiviert. Bitte aktivieren Sie Bluetooth, bevor Sie nach anderen Geräten suchen können. Suche gestartet! Suche beendet! @@ -34,7 +35,7 @@ Keine Bluetooth-Geräte gefunden. Gekoppelte Geräte - Verfügbare Geräte + Verfügbare Geräte Gerät koppeln Möchten Sie ihr Gerät mit %s koppeln? diff --git a/org.envirocar.app/res/values/strings_obd_selection.xml b/org.envirocar.app/res/values/strings_obd_selection.xml index 495ed824c..ec62f6b39 100644 --- a/org.envirocar.app/res/values/strings_obd_selection.xml +++ b/org.envirocar.app/res/values/strings_obd_selection.xml @@ -25,6 +25,7 @@ Bluetooth On Bluetooth Off Bluetooth is disabled. + Please enable Bluetooth before you can discover other devices. Bluetooth is disabled. Please enable Bluetooth before you can discover other devices. Bluetooth discovery started. Bluetooth discovery finished. @@ -34,7 +35,7 @@ No Bluetooth devices found Paired Devices - Available Devices + Available Devices Pair Device Do you want to pair with %s? From 7d676a7bcc0d5168eda66a3016fc1e3f6be25e67 Mon Sep 17 00:00:00 2001 From: cdhiraj40 Date: Tue, 21 Dec 2021 16:12:50 +0530 Subject: [PATCH 2/2] string typo changed --- .../res/layout/activity_obd_selection_fragment.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.envirocar.app/res/layout/activity_obd_selection_fragment.xml b/org.envirocar.app/res/layout/activity_obd_selection_fragment.xml index 3616a109a..474d53829 100644 --- a/org.envirocar.app/res/layout/activity_obd_selection_fragment.xml +++ b/org.envirocar.app/res/layout/activity_obd_selection_fragment.xml @@ -79,7 +79,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" - android:text="@string/obd_selection_avaiable_devices" + android:text="@string/obd_selection_available_devices" android:textColor="@color/blue_dark_cario" android:textSize="14sp" />