From 8c82d78276574fe708e5f66cc8d98ca81cd69b7b Mon Sep 17 00:00:00 2001 From: Brock Davis Date: Fri, 5 Jul 2019 10:12:56 -0400 Subject: [PATCH 1/2] Force new Login Activity, clearing OLD activity. This fixes the HOME being pressed, then reattempt at login causes cancel intent to be fired --- .../net/openid/appauth/AuthorizationManagementActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/java/net/openid/appauth/AuthorizationManagementActivity.java b/library/java/net/openid/appauth/AuthorizationManagementActivity.java index 3eddac43..5f472fbb 100644 --- a/library/java/net/openid/appauth/AuthorizationManagementActivity.java +++ b/library/java/net/openid/appauth/AuthorizationManagementActivity.java @@ -161,6 +161,8 @@ public static Intent createStartIntent( intent.putExtra(KEY_AUTH_REQUEST, request.jsonSerializeString()); intent.putExtra(KEY_COMPLETE_INTENT, completeIntent); intent.putExtra(KEY_CANCEL_INTENT, cancelIntent); + + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); return intent; } From 50c85850e7a996d5297fa36f3104bc5827c0abac Mon Sep 17 00:00:00 2001 From: Brock Davis Date: Fri, 5 Jul 2019 11:31:18 -0400 Subject: [PATCH 2/2] attempt to lock activity / login into portrait orientation --- library/AndroidManifest.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/library/AndroidManifest.xml b/library/AndroidManifest.xml index ef6c6050..4564bd6f 100644 --- a/library/AndroidManifest.xml +++ b/library/AndroidManifest.xml @@ -18,10 +18,12 @@ - +