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)
|
.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;
|
||||||
|
|||||||
+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
|
// 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);
|
||||||
|
|||||||
-1
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user