From 4973a1b3fa4ea3ef2434e8781fe0fac3a4c0adf9 Mon Sep 17 00:00:00 2001 From: Tzachi Dar Date: Fri, 2 Aug 2019 17:00:54 +0300 Subject: [PATCH] Recognize new droplet device. Signed-off-by: Tzachi Dar --- .../main/java/com/eveningoutpost/dexdrip/BluetoothScan.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/eveningoutpost/dexdrip/BluetoothScan.java b/app/src/main/java/com/eveningoutpost/dexdrip/BluetoothScan.java index 93203bf32b..2707ffd35d 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/BluetoothScan.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/BluetoothScan.java @@ -381,7 +381,8 @@ protected void onListItemClick(ListView l, View v, int position, long id) { if (device.getName().toLowerCase().contains("limitter") && (adverts.containsKey(device.getAddress()) && ((new String(adverts.get(device.getAddress()), "UTF-8").contains("eLeR")) - || (new String(adverts.get(device.getAddress()), "UTF-8").contains("data"))))) { + || (new String(adverts.get(device.getAddress()), "UTF-8").contains("data"))))|| + device.getName().toLowerCase().contains("limitterd")) { String msg = "Auto-detected transmiter_pl device!"; Log.e(TAG, msg); JoH.static_toast_long(msg);