mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 09:33:06 +02:00
When selecting a google account the first time, don't show the
confirm message.
This commit is contained in:
@@ -99,7 +99,12 @@ public class GoogleSettingsActivity extends AbstractSettingsActivity {
|
||||
String googleAccount = PreferencesUtils.getString(
|
||||
GoogleSettingsActivity.this, R.string.google_account_key,
|
||||
PreferencesUtils.GOOGLE_ACCOUNT_DEFAULT);
|
||||
if (!newGoogleAccount.equals(googleAccount)) {
|
||||
if (googleAccount == null
|
||||
|| googleAccount.equals(PreferencesUtils.GOOGLE_ACCOUNT_DEFAULT)) {
|
||||
updateUiByAccountName(newGoogleAccount);
|
||||
return true;
|
||||
}
|
||||
if (!googleAccount.equals(newGoogleAccount)) {
|
||||
Bundle newBundle = new Bundle();
|
||||
newBundle.putString(ACCOUNT_NAME_KEY, newGoogleAccount);
|
||||
showDialog(DIALOG_CONFIRM_SWITCH_ACCOUNT, newBundle);
|
||||
|
||||
Reference in New Issue
Block a user