fix comments 9bc0a5d1c206

This commit is contained in:
Jimmy Shih
2012-03-23 16:16:54 -07:00
parent 362d4aff8c
commit 2a74cf6604
3 changed files with 4 additions and 5 deletions
@@ -135,16 +135,16 @@ public class AccountChooserActivity extends Activity {
.setTitle(R.string.send_google_no_account_title) .setTitle(R.string.send_google_no_account_title)
.create(); .create();
case DIALOG_CHOOSER_ID: case DIALOG_CHOOSER_ID:
return createDialogChooser(); return createChooserDialog();
default: default:
return null; return null;
} }
} }
/** /**
* Creates a dialog chooser. * Creates a chooser dialog.
*/ */
private Dialog createDialogChooser() { private Dialog createChooserDialog() {
String[] choices = new String[accounts.length]; String[] choices = new String[accounts.length];
for (int i = 0; i < accounts.length; i++) { for (int i = 0; i < accounts.length; i++) {
choices[i] = accounts[i].name; choices[i] = accounts[i].name;
@@ -159,7 +159,7 @@ public class UploadResultActivity extends Activity {
// Add a Share URL button if showing all the options and a shareUrl exists // Add a Share URL button if showing all the options and a shareUrl exists
if (sendRequest.isShowAll() && shareUrl != null) { if (sendRequest.isShowAll() && shareUrl != null) {
builder.setNegativeButton( builder.setNegativeButton(
getString(R.string.send_google_result_share_url), new DialogInterface.OnClickListener() { R.string.send_google_result_share_url, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
startShareUrlActivity(shareUrl); startShareUrlActivity(shareUrl);
@@ -129,7 +129,6 @@ public class UploadServiceChooserActivity extends Activity {
} }
}) })
.setPositiveButton(R.string.send_google_send_now, new DialogInterface.OnClickListener() { .setPositiveButton(R.string.send_google_send_now, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
saveState(); saveState();