Skip to content

Commit

Permalink
Add content string to bluetooth pairing dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
SebaDro committed Aug 1, 2023
1 parent 1929a8b commit 47c960c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion org.envirocar.app/res/values-de/strings_obd_selection.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@

<string name="obd_selection_dialog_pairing_title">Gerät koppeln</string>
<string name="obd_selection_dialog_pairing_content_template">Möchten Sie ihr Gerät mit %s koppeln?</string>
<string name="pairing">Paarung..</string>
<string name="obd_selection_progress_bar_pairing_title">Pairing</string>
<string name="obd_selection_progress_bar_pairing">Versuche, eine Verbindung mit dem Bluetooth Gerät herzustellen.</string>
<string name="obd_selection_dialog_delete_pairing_title">Gerät entkoppeln?</string>
<string name="obd_selection_dialog_delete_pairing_content_template">Möchten Sie die Kopplung mit \"%s\" löschen?</string>

Expand Down
3 changes: 2 additions & 1 deletion org.envirocar.app/res/values/strings_obd_selection.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@

<string name="obd_selection_dialog_pairing_title">Pair Device</string>
<string name="obd_selection_dialog_pairing_content_template">Do you want to pair with %s?</string>
<string name="pairing">Pairing..</string>
<string name="obd_selection_progress_bar_pairing_title">Pairing</string>
<string name="obd_selection_progress_bar_pairing">Trying to establish Bluetooth connection with device.</string>
<string name="obd_selection_dialog_delete_pairing_title">Unpair device?</string>
<string name="obd_selection_dialog_delete_pairing_content_template">Do you want to remove the pairing with "%s"?</string>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,9 @@ private void updatePairedDevicesList() {

private void pairDevice(BluetoothDevice device, final View view) {
progress = DialogUtils.createProgressBarDialogBuilder(getContext(),
R.string.pairing,
R.string.obd_selection_progress_bar_pairing_title,
R.drawable.baseline_bluetooth_connected_24,
(String) null)
R.string.obd_selection_progress_bar_pairing)
.setCancelable(false)
.create();
final TextView text = view.findViewById(R.id
Expand Down

0 comments on commit 47c960c

Please sign in to comment.