沈斌
2018-05-15 04926b864b4026d81f95d78f9ecb3f7806960569
app/src/main/java/com/moral/yunfushao/activity/BLESearchActivity.java
@@ -103,8 +103,8 @@
                    /**
                     * 如果连接状态,断开重新连接
                     */
                    if (MainApp.theApp.bleManager != null && MainApp.theApp.bleManager.isConnected()) {
                        mBluetoothService.closeConnect();
                    if (MainApp.theApp.bleManager != null) {
                        MainApp.theApp.bleManager.closeBluetoothGatt();
                    }
                    mBluetoothService.connectDevice(scanResultList.get(position));
                }
@@ -214,7 +214,7 @@
            if (ActivityManager.getActivityManager().isActivityExist(BLESearchActivity.this.getClass().getName())) {
                progressDialog.dismiss();
            }
            Log.d("chonglian","连接失败");
//            Log.d("chonglian","连接失败");
            mToatUtils.showSingletonToast("连接失败");
            EventMessage msg = new EventMessage();
            msg.setType(AppConfig.GET_BLE_DISCONNECT);