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