diff --git a/collect_app/src/main/java/org/odk/collect/android/utilities/gdrive/GoogleAccountsManager.java b/collect_app/src/main/java/org/odk/collect/android/utilities/gdrive/GoogleAccountsManager.java index 814c074bcbb..90e760e0f56 100644 --- a/collect_app/src/main/java/org/odk/collect/android/utilities/gdrive/GoogleAccountsManager.java +++ b/collect_app/src/main/java/org/odk/collect/android/utilities/gdrive/GoogleAccountsManager.java @@ -258,6 +258,14 @@ public void setListener(@Nullable GoogleAccountSelectionListener listener) { this.listener = listener; } + public Intent getAccountChooserIntent() { + Account selectedAccount = getAccountPickerCurrentAccount(); + intentChooseAccount.putExtra("selectedAccount", selectedAccount); + intentChooseAccount.putExtra("overrideTheme", themeUtils.getAccountPickerTheme()); + intentChooseAccount.putExtra("overrideCustomTheme", 0); + return intentChooseAccount; + } + public interface GoogleAccountSelectionListener { void onGoogleAccountSelected(String accountName); }