Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions play-services-core/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@
android:configChanges="keyboardHidden|keyboard|orientation|screenSize"
android:exported="true"
android:process=":ui"
android:launchMode="singleTask"
android:theme="@style/Theme.LoginBlue">
<intent-filter>
<action android:name="com.google.android.gms.auth.login.LOGIN" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,12 @@ protected void onBackButtonClicked() {
}

public void loginCanceled() {
Log.d(TAG, "loginCanceled: ");
setResult(RESULT_CANCELED);
if (response != null) {
response.onError(AccountManager.ERROR_CODE_CANCELED, "Canceled");
}
finish();
if (SDK_INT >= LOLLIPOP) { finishAndRemoveTask(); } else finish();
}

@Override
Expand Down Expand Up @@ -383,7 +384,7 @@ public void onResponse(AuthResponse response) {
}
checkin(true);
returnSuccessResponse(account);
finish();
if (SDK_INT >= LOLLIPOP) { finishAndRemoveTask(); } else finish();
}

@Override
Expand Down Expand Up @@ -669,7 +670,7 @@ public final void showView() {
@JavascriptInterface
public final void skipLogin() {
Log.d(TAG, "JSBridge: skipLogin");
finish();
loginCanceled();
}

@JavascriptInterface
Expand Down