Skip to content

Commit a4ae8ec

Browse files
committed
Pull latest mage sdk
Latest sdk has fix for incorrect password length key. Also show general error alert on signup failure.
1 parent 247d255 commit a4ae8ec

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

mage/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ dependencies {
8989
}
9090

9191
//compile project(':sdk') // uncomment me to build locally
92-
compile "mil.nga.giat.mage:sdk:5.0.3" // comment me to build locally
92+
compile "mil.nga.giat.mage:sdk:5.0.4" // comment me to build locally
9393
compile "mil.nga.geopackage:geopackage-android:1.1.1"
9494
compile 'com.android.support:multidex:1.0.1'
9595
compile 'com.android.support:support-v4:23.1.1'

mage/src/main/java/mil/nga/giat/mage/login/SignupActivity.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,12 @@ public void finishAccount(AccountStatus accountStatus) {
312312
} else if (errorIndex == 3) {
313313
getPasswordEditText().setError(message);
314314
getPasswordEditText().requestFocus();
315+
} else if (errorIndex == 5) {
316+
new AlertDialog.Builder(this)
317+
.setTitle("Signup Failed")
318+
.setMessage(message)
319+
.setPositiveButton(android.R.string.ok, null)
320+
.show();
315321
}
316322
}
317323
}

0 commit comments

Comments
 (0)