forked from upstream-mirrors/OpenTracks
fix comments 9bc0a5d1c206
This commit is contained in:
+3
-3
@@ -135,16 +135,16 @@ public class AccountChooserActivity extends Activity {
|
||||
.setTitle(R.string.send_google_no_account_title)
|
||||
.create();
|
||||
case DIALOG_CHOOSER_ID:
|
||||
return createDialogChooser();
|
||||
return createChooserDialog();
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a dialog chooser.
|
||||
* Creates a chooser dialog.
|
||||
*/
|
||||
private Dialog createDialogChooser() {
|
||||
private Dialog createChooserDialog() {
|
||||
String[] choices = new String[accounts.length];
|
||||
for (int i = 0; i < accounts.length; i++) {
|
||||
choices[i] = accounts[i].name;
|
||||
|
||||
+1
-1
@@ -159,7 +159,7 @@ public class UploadResultActivity extends Activity {
|
||||
// Add a Share URL button if showing all the options and a shareUrl exists
|
||||
if (sendRequest.isShowAll() && shareUrl != null) {
|
||||
builder.setNegativeButton(
|
||||
getString(R.string.send_google_result_share_url), new DialogInterface.OnClickListener() {
|
||||
R.string.send_google_result_share_url, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
startShareUrlActivity(shareUrl);
|
||||
|
||||
-1
@@ -129,7 +129,6 @@ public class UploadServiceChooserActivity extends Activity {
|
||||
}
|
||||
})
|
||||
.setPositiveButton(R.string.send_google_send_now, new DialogInterface.OnClickListener() {
|
||||
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
saveState();
|
||||
|
||||
Reference in New Issue
Block a user