diff --git a/android-uribeacon/uribeacon-sample/src/main/java/org/uribeacon/sample/ConfigActivity.java b/android-uribeacon/uribeacon-sample/src/main/java/org/uribeacon/sample/ConfigActivity.java index 2b2732d..9e9facb 100644 --- a/android-uribeacon/uribeacon-sample/src/main/java/org/uribeacon/sample/ConfigActivity.java +++ b/android-uribeacon/uribeacon-sample/src/main/java/org/uribeacon/sample/ConfigActivity.java @@ -198,6 +198,7 @@ public void onCancel(DialogInterface dialog) { finish(); } }); + mConnectionDialog.show(); } List uuids = scanResult.getScanRecord().getServiceUuids(); // Assuming the first uuid is the config uuid @@ -254,6 +255,7 @@ private void updateInputFields(ConfigUriBeacon configUriBeacon) { else if (mUriBeaconConfig.getVersion().equals(ProtocolV1.CONFIG_SERVICE_UUID)) { hideV2Fields(); } + mConnectionDialog.dismiss(); } else { Toast.makeText(this, "Beacon Contains Invalid Data", Toast.LENGTH_SHORT).show(); @@ -266,6 +268,7 @@ private String byteToHexString(byte theByte) { private byte hexStringToByte(String hexString) { return Integer.decode("0x" + hexString).byteValue(); } + private void hideV2Fields(){ findViewById(R.id.secondRow).setVisibility(View.GONE); findViewById(R.id.txCalRow).setVisibility(View.GONE);