Merge pull request #566 from MilosKozak/rs-create-bond

RS create bond
This commit is contained in:
Milos Kozak 2017-12-27 15:01:33 +01:00 committed by GitHub
commit b25e403215
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,6 +162,7 @@ public class BLEScanActivity extends AppCompatActivity {
public void onClick(View v) { public void onClick(View v) {
SP.putString(R.string.key_danars_address, item.device.getAddress()); SP.putString(R.string.key_danars_address, item.device.getAddress());
SP.putString(R.string.key_danars_name, mName.getText().toString()); SP.putString(R.string.key_danars_name, mName.getText().toString());
item.device.createBond();
MainApp.bus().post(new EventDanaRSDeviceChange()); MainApp.bus().post(new EventDanaRSDeviceChange());
finish(); finish();
} }