Skip to content

Commit e3144c2

Browse files
author
AmandaRiu
committed
Squashed 'libs/login/' changes from 43ac7e9468..3b1db07c38
3b1db07c38 Merge commit '615ebab45e1bc3d0cdd3a9da060026fef704d3a8' into amanda/test_git_subtree d4d717cf16 Send redirectUrl to listener and strip protocol before saving git-subtree-dir: libs/login git-subtree-split: 3b1db07c3872c0935c721f1b5a8e5c4a9eaf9f97
1 parent 62e91ab commit e3144c2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

WordPressLoginFlow/src/main/java/org/wordpress/android/login/LoginListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ interface SelfSignedSSLCallback {
4848
// Login Site Address input callbacks
4949
void alreadyLoggedInWpcom(ArrayList<Integer> oldSitesIds);
5050
void gotWpcomSiteInfo(String siteAddress, String siteName, String siteIconUrl);
51-
void gotConnectedSiteInfo(String siteAddress, boolean hasJetpack);
51+
void gotConnectedSiteInfo(@NonNull String siteAddress, @Nullable String redirectUrl, boolean hasJetpack);
5252
void gotXmlRpcEndpoint(String inputSiteAddress, String endpointAddress);
5353
void handleSslCertificateError(MemorizingTrustManager memorizingTrustManager, SelfSignedSSLCallback callback);
5454
void helpSiteAddress(String url);

WordPressLoginFlow/src/main/java/org/wordpress/android/login/LoginSiteAddressFragment.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,10 @@ public void onFetchedConnectSiteInfo(OnConnectSiteInfoChecked event) {
425425
} else if (event.info.hasJetpack && event.info.isJetpackActive && event.info.isJetpackConnected) {
426426
hasJetpack = true;
427427
}
428-
mLoginListener.gotConnectedSiteInfo(event.info.url, hasJetpack);
428+
mLoginListener.gotConnectedSiteInfo(
429+
event.info.url,
430+
event.info.urlAfterRedirects,
431+
hasJetpack);
429432
}
430433
}
431434
}

0 commit comments

Comments
 (0)