Code cleanup: update no account message

This commit is contained in:
Jimmy Shih
2014-01-07 17:28:19 -08:00
parent 29cffa96e6
commit 5efd745562
2 changed files with 3 additions and 9 deletions
+1 -6
View File
@@ -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 &#8216;Settings&#8217; &#45;&#62; &#8216;Add account&#8217;
</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();
}