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 {