From ec9b94c545fc733e49177d6a5755b6a1ee2d7fe5 Mon Sep 17 00:00:00 2001 From: Marc-Olivier Arsenault Date: Sat, 14 Mar 2015 18:39:36 -0400 Subject: [PATCH] publishing new verison, small bug fixes --- AndroidManifest.xml | 4 ++-- .../marco45/polarheartmonitor/H7ConnectThread.java | 11 +++++++++++ src/org/marco45/polarheartmonitor/MainActivity.java | 4 ++-- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index c71bba1..7662254 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="6" + android:versionName="1.5" > arg0, View arg1, int arg2, if(arg2!=0){ //Actual work DataHandler.getInstance().setID(arg2); - if(!h7 && ((BluetoothDevice) pairedDevices.toArray()[DataHandler.getInstance().getID()-1]).getName().contains("H7")) + if(!h7 && ((BluetoothDevice) pairedDevices.toArray()[DataHandler.getInstance().getID()-1]).getName().contains("H7") && DataHandler.getInstance().getReader()==null) { Log.i("Main Activity", "Starting h7"); DataHandler.getInstance().setH7(new H7ConnectThread((BluetoothDevice) pairedDevices.toArray()[DataHandler.getInstance().getID()-1], this)); h7=true; } - else{ + else if (!normal && DataHandler.getInstance().getH7()==null){ Log.i("Main Activity", "Starting normal"); DataHandler.getInstance().setReader(new ConnectThread((BluetoothDevice) pairedDevices.toArray()[arg2-1], this));