public void editPermission( Permission toEditPermission, int oldSlaveId, String adminKey, String doorId) { mBluetoothClient = BluetoothClient.getInstance(mContext, this); if (!mBluetoothClient.isSupported()) { mBluetoothListener.bluetoothNotSupported(); return; } else if (!mBluetoothClient.isEnabled()) { mBluetoothListener.enableBluetooth(); return; } mBluetoothClient.executeEditPermission(toEditPermission, oldSlaveId, adminKey, doorId); }