From 8a41baa50863ed0ff458e550659a7b497abd46f4 Mon Sep 17 00:00:00 2001 From: HearSilent Date: Sat, 30 Apr 2016 09:28:22 +0800 Subject: [PATCH] Update version to 2.2.4, Fixed startActivityForResult with wrong request code --- Android/app/build.gradle | 4 ++-- .../src/main/java/tw/edu/kuas/wifiautologin/MainActivity.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Android/app/build.gradle b/Android/app/build.gradle index 90e31d8..dba4839 100644 --- a/Android/app/build.gradle +++ b/Android/app/build.gradle @@ -22,8 +22,8 @@ android { applicationId "tw.edu.kuas.wifiautologin" minSdkVersion 9 targetSdkVersion 23 - versionCode 223 - versionName "2.2.3" + versionCode 224 + versionName "2.2.4" } buildTypes { debug { diff --git a/Android/app/src/main/java/tw/edu/kuas/wifiautologin/MainActivity.java b/Android/app/src/main/java/tw/edu/kuas/wifiautologin/MainActivity.java index c6f99de..477e145 100644 --- a/Android/app/src/main/java/tw/edu/kuas/wifiautologin/MainActivity.java +++ b/Android/app/src/main/java/tw/edu/kuas/wifiautologin/MainActivity.java @@ -131,7 +131,7 @@ public void logout() { if (!Utils.checkSystemWritePermission(this)) { mTracker.send(new HitBuilders.EventBuilder().setCategory("Write System Permission") .setAction("Denied").setLabel(Utils.getPhoneName()).build()); - Utils.showSystemWritePermissionDialog(this, REQUEST_WRITE_SYSTEM_SETTINGS_LOGIN); + Utils.showSystemWritePermissionDialog(this, REQUEST_WRITE_SYSTEM_SETTINGS_LOGOUT); return; } else { mTracker.send(new HitBuilders.EventBuilder().setCategory("Write System Permission") @@ -240,7 +240,7 @@ private void saveAndLogin() { if (!Utils.checkSystemWritePermission(this)) { mTracker.send(new HitBuilders.EventBuilder().setCategory("Write System Permission") .setAction("Denied").setLabel(Utils.getPhoneName()).build()); - Utils.showSystemWritePermissionDialog(this, REQUEST_WRITE_SYSTEM_SETTINGS_LOGOUT); + Utils.showSystemWritePermissionDialog(this, REQUEST_WRITE_SYSTEM_SETTINGS_LOGIN); enableViews(); return; } else {