Bug 1376982 - Add "action" parameter to the adjust deep link r=nechen draft
authorGrigory Kruglov <gkruglov@mozilla.com>
Wed, 28 Jun 2017 19:20:10 -0400
changeset 601626 bb74c340ffc2773be3bf5ee17b757c8a94825529
parent 601255 cc903e3f61894e60c3b0efaf05e9a446d1d85888
child 635342 0b8528aef1d683622142992c2a424a7c26d1e4dd
push id66150
push userbmo:gkruglov@mozilla.com
push dateWed, 28 Jun 2017 23:20:34 +0000
reviewersnechen
bugs1376982
milestone56.0a1
Bug 1376982 - Add "action" parameter to the adjust deep link r=nechen We need to open the accounts page directly to the sign-in page, instead of the default sign-up page MozReview-Commit-ID: 9uVURY9hVvt
mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java
--- a/mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java
+++ b/mobile/android/base/java/org/mozilla/gecko/LauncherActivity.java
@@ -232,17 +232,17 @@ public class LauncherActivity extends Ac
     private void dispatchAccountsDeepLink(final SafeIntent safeIntent) {
         final Intent intent = new Intent(Intent.ACTION_VIEW);
 
         final Uri intentUri = safeIntent.getData();
 
         final String accountsToken = intentUri.getQueryParameter(DeepLinkContract.ACCOUNTS_TOKEN_PARAM);
         final String entryPoint = intentUri.getQueryParameter(DeepLinkContract.ACCOUNTS_ENTRYPOINT_PARAM);
 
-        String dispatchUri = AboutPages.ACCOUNTS + "?";
+        String dispatchUri = AboutPages.ACCOUNTS + "?action=signin&";
 
         // If token is missing from the deep-link, we'll still open the accounts page.
         if (accountsToken != null) {
             dispatchUri = dispatchUri.concat(DeepLinkContract.ACCOUNTS_TOKEN_PARAM + "=" + accountsToken + "&");
         }
 
         // Pass through the entrypoint.
         if (entryPoint != null) {