Update master
This commit is contained in:
parent
6428d6e9fb
commit
b016791d51
1 changed files with 15 additions and 4 deletions
|
@ -154,15 +154,26 @@ public class LocalIndexesActivity extends OsmandExpandableListActivity {
|
||||||
descr.setText(info[0].getFileName().substring(0, dt));
|
descr.setText(info[0].getFileName().substring(0, dt));
|
||||||
}
|
}
|
||||||
final EditText tags = (EditText) view.findViewById(R.id.TagsText);
|
final EditText tags = (EditText) view.findViewById(R.id.TagsText);
|
||||||
final EditText vis = (EditText) view.findViewById(R.id.VisibilityText);
|
final Spinner visibility = ((Spinner)findViewById(R.id.Visibility));
|
||||||
|
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.my_spinner_text, new String[] {
|
||||||
|
"Public",
|
||||||
|
"Identifiable",
|
||||||
|
"Trackable",
|
||||||
|
"Private"
|
||||||
|
});
|
||||||
|
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
|
||||||
|
visibility.setAdapter(adapter);
|
||||||
|
visibility.setSelection(0);
|
||||||
|
|
||||||
bldr.setView(view);
|
bldr.setView(view);
|
||||||
bldr.setNegativeButton(R.string.default_buttons_yes, null);
|
bldr.setNegativeButton(R.string.default_buttons_no, null);
|
||||||
bldr.setPositiveButton(R.string.default_buttons_yes, new DialogInterface.OnClickListener() {
|
bldr.setPositiveButton(R.string.default_buttons_yes, new DialogInterface.OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
new UploadGPXFilesTask(descr.getText().toString(), tags.getText().toString(), vis.getText().toString()).execute(info);
|
new UploadGPXFilesTask(descr.getText().toString(), tags.getText().toString(),
|
||||||
|
(String) visibility.getItemAtPosition(visibility.getSelection())
|
||||||
|
).execute(info);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
bldr.show();
|
bldr.show();
|
||||||
|
|
Loading…
Reference in a new issue