forked from upstream-mirrors/OpenTracks
Code cleanup: update no account message
This commit is contained in:
@@ -1397,7 +1397,7 @@ limitations under the License.
|
||||
<string name="send_google_no_account_message"
|
||||
translation_description="When sending to Google, the dialog message when no Google account is
|
||||
found.">
|
||||
No account found to upload tracks to.
|
||||
Add account at ‘Settings’ -> ‘Add account’
|
||||
</string>
|
||||
<string name="send_google_no_account_title"
|
||||
translation_description="When sending to Google, the dialog title when no Google account is
|
||||
@@ -1553,11 +1553,6 @@ limitations under the License.
|
||||
</string>
|
||||
|
||||
<!-- Settings Google -->
|
||||
<string name="settings_google_drive_sync_no_account"
|
||||
translation_description="In the 'Sync to Google Drive' setting, the message when no account is
|
||||
found to sync to Google Drive.">
|
||||
No account found to sync to Google Drive
|
||||
</string>
|
||||
<string name="settings_google_drive_sync_summary_on"
|
||||
translation_description="In the 'Sync to Google Drive' setting, the summary explaining that all
|
||||
tracks will be synced to a Google Drive account.
|
||||
|
||||
@@ -121,8 +121,7 @@ public class SettingsActivity extends AbstractSettingsActivity implements CheckP
|
||||
final Dialog dialog;
|
||||
switch (id) {
|
||||
case DIALOG_NO_ACCOUNT:
|
||||
dialog = new AlertDialog.Builder(this).setMessage(
|
||||
R.string.settings_google_drive_sync_no_account)
|
||||
dialog = new AlertDialog.Builder(this).setMessage(R.string.send_google_no_account_message)
|
||||
.setTitle(R.string.send_google_no_account_title)
|
||||
.setPositiveButton(R.string.generic_ok, null).create();
|
||||
dialog.setOnShowListener(new DialogInterface.OnShowListener() {
|
||||
@@ -232,7 +231,7 @@ public class SettingsActivity extends AbstractSettingsActivity implements CheckP
|
||||
|
||||
private void onDrivePermissionFailure() {
|
||||
Toast.makeText(
|
||||
SettingsActivity.this, R.string.settings_google_drive_sync_no_account, Toast.LENGTH_LONG)
|
||||
SettingsActivity.this, R.string.send_google_no_account_permission, Toast.LENGTH_LONG)
|
||||
.show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user