From 3db0107c02817d3d9e4ec1962b6faac8f6b95b56 Mon Sep 17 00:00:00 2001 From: Julius Date: Sat, 11 Mar 2017 14:29:05 +0200 Subject: [PATCH] UI for step disconnecting from softAP --- CHANGELOG | 4 ++ devicesetup/build.gradle | 2 +- .../devicesetup/ui/ConnectingActivity.java | 2 +- .../main/res/layout/activity_connecting.xml | 37 +++++++++++++++++++ devicesetup/src/main/res/values/strings.xml | 1 + 5 files changed, 44 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 9f1f7f6..e4bf441 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +0.4.2 +===== +* UI for step disconnecting from softAP + 0.4.1 ===== * Device naming at the end of setup diff --git a/devicesetup/build.gradle b/devicesetup/build.gradle index ae9c9bd..564aeb6 100644 --- a/devicesetup/build.gradle +++ b/devicesetup/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' apply plugin: 'me.tatarka.retrolambda' // This is the library version used when deploying the artifact -version = '0.4.1' +version = '0.4.2' ext { bintrayRepo = 'android' diff --git a/devicesetup/src/main/java/io/particle/android/sdk/devicesetup/ui/ConnectingActivity.java b/devicesetup/src/main/java/io/particle/android/sdk/devicesetup/ui/ConnectingActivity.java index c07a9ee..62a24ff 100644 --- a/devicesetup/src/main/java/io/particle/android/sdk/devicesetup/ui/ConnectingActivity.java +++ b/devicesetup/src/main/java/io/particle/android/sdk/devicesetup/ui/ConnectingActivity.java @@ -194,7 +194,7 @@ private List buildSteps() { StepConfig.newBuilder() .setMaxAttempts(MAX_RETRIES_DISCONNECT_FROM_DEVICE) .setResultCode(SuccessActivity.RESULT_FAILURE_NO_DISCONNECT) - .setStepId(R.id.connect_to_wifi_network) + .setStepId(R.id.reconnect_to_wifi_network) .build(), deviceSoftApSsid, this); diff --git a/devicesetup/src/main/res/layout/activity_connecting.xml b/devicesetup/src/main/res/layout/activity_connecting.xml index 568de36..d0218f7 100644 --- a/devicesetup/src/main/res/layout/activity_connecting.xml +++ b/devicesetup/src/main/res/layout/activity_connecting.xml @@ -152,6 +152,43 @@ + + + + + + + + + (No Wi-Fi networks found) Checking for internet connectivity Connecting to Wi-Fi network + Disconnecting from softAP Configuring device Wi-Fi credentials Waiting for device cloud connection Verifying product ownership