From 266464719a5e3ae4d59acab1089d98e9b831873b Mon Sep 17 00:00:00 2001 From: Jay Sharma Date: Fri, 1 Apr 2016 21:30:26 +0530 Subject: [PATCH] [Easy-Setup] Fixed JIRA issue IOT-1064 Change-Id: I1f2184ed17fb262628e52d4171d6579577158973 Signed-off-by: Jay Sharma Reviewed-on: https://gerrit.iotivity.org/gerrit/7537 Tested-by: jenkins-iotivity Reviewed-by: Madan Lanka --- .../main/java/org/iotivity/service/easysetup/MainActivity.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/service/easy-setup/sampleapp/mediator/android/EasySetup/app/src/main/java/org/iotivity/service/easysetup/MainActivity.java b/service/easy-setup/sampleapp/mediator/android/EasySetup/app/src/main/java/org/iotivity/service/easysetup/MainActivity.java index 20e6780..ad34966 100755 --- a/service/easy-setup/sampleapp/mediator/android/EasySetup/app/src/main/java/org/iotivity/service/easysetup/MainActivity.java +++ b/service/easy-setup/sampleapp/mediator/android/EasySetup/app/src/main/java/org/iotivity/service/easysetup/MainActivity.java @@ -235,7 +235,14 @@ public class MainActivity extends Activity { @Override public void onClick(View v) { filePath = getFilesDir().getPath() + "/"; - isSecurityEnabled = true; + if (isSecurityEnabled) { + isSecurityEnabled = false; + mEnableSecurity.setChecked(false); + } + else { + isSecurityEnabled = true; + mEnableSecurity.setChecked(true); + } //copy json when application runs first time SharedPreferences wmbPreference = PreferenceManager.getDefaultSharedPreferences (getApplicationContext()); -- 2.7.4