Skip to content

Commit

Permalink
Merge pull request #10232 from wordpress-mobile/amanda/login-lib-redi…
Browse files Browse the repository at this point in the history
…rect-support

Update login library with latest changes from WCAndroid
  • Loading branch information
malinajirka authored Jul 24, 2019
2 parents b918be9 + 4ac4fa8 commit eb9a6f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ interface SelfSignedSSLCallback {
// Login Site Address input callbacks
void alreadyLoggedInWpcom(ArrayList<Integer> oldSitesIds);
void gotWpcomSiteInfo(String siteAddress, String siteName, String siteIconUrl);
void gotConnectedSiteInfo(String siteAddress, boolean hasJetpack);
void gotConnectedSiteInfo(@NonNull String siteAddress, @Nullable String redirectUrl, boolean hasJetpack);
void gotXmlRpcEndpoint(String inputSiteAddress, String endpointAddress);
void handleSslCertificateError(MemorizingTrustManager memorizingTrustManager, SelfSignedSSLCallback callback);
void helpSiteAddress(String url);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,10 @@ public void onFetchedConnectSiteInfo(OnConnectSiteInfoChecked event) {
} else if (event.info.hasJetpack && event.info.isJetpackActive && event.info.isJetpackConnected) {
hasJetpack = true;
}
mLoginListener.gotConnectedSiteInfo(event.info.url, hasJetpack);
mLoginListener.gotConnectedSiteInfo(
event.info.url,
event.info.urlAfterRedirects,
hasJetpack);
}
}
}
Expand Down

0 comments on commit eb9a6f8

Please sign in to comment.