docs: private void updateUI(BluetoothGattCharacteristic characteristic) {
          connectButton.setText(characteristic != null ? R.string.disconnect : R.string.connect);
          readButton.setEnabled(hasProperty(characteristic, BluetoothGattCharacteristic.PROPERTY_READ));
          writeButton.setEnabled(hasProperty(characteristic, BluetoothGattCharacteristic.PROPERTY_WRITE));
          notifyButton.setEnabled(hasProperty(characteristic, BluetoothGattCharacteristic.PROPERTY_NOTIFY));
      }