From 9db49888e2f71f7838f58a0bc304cca45565651f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giovanni=20Ortu=C3=B1o?= Date: Tue, 2 Dec 2014 14:10:44 -0800 Subject: [PATCH] Fixed loading screen --- .../src/main/java/org/uribeacon/sample/ConfigActivity.java | 3 +++ 1 file changed, 3 insertions(+) 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 749d8bf..9c3b553 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 @@ -191,6 +191,7 @@ public void onCancel(DialogInterface dialog) { finish(); } }); + mConnectionDialog.show(); } List uuids = scanResult.getScanRecord().getServiceUuids(); // Assuming the first uuid is the config uuid @@ -247,6 +248,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(); @@ -259,6 +261,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);