Add keyboard for OSM notes

This commit is contained in:
vshcherb 2013-10-20 14:41:04 +02:00
parent e8ad7769d6
commit 50e3712a5f
2 changed files with 3 additions and 16 deletions

View file

@ -55,7 +55,6 @@ import android.graphics.drawable.BitmapDrawable;
import android.os.Build;
import android.os.Handler;
import android.os.Message;
import android.os.StrictMode;
import android.text.format.DateFormat;
import android.widget.Toast;
@ -483,20 +482,6 @@ public class OsmandApplication extends Application implements ClientContext {
}
public String exportFavorites(File f) {
GPXFile gpx = new GPXFile();
for (FavouritePoint p : getFavorites().getFavouritePoints()) {
if (p.isStored()) {
WptPt pt = new WptPt();
pt.lat = p.getLatitude();
pt.lon = p.getLongitude();
pt.name = p.getName() + "_" + p.getCategory();
gpx.points.add(pt);
}
}
return GPXUtilities.writeGpxFile(f, gpx, this);
}
private void startApplicationBackground() {
List<String> warnings = new ArrayList<String>();
try {

View file

@ -10,6 +10,7 @@ import java.net.URLConnection;
import java.util.ArrayList;
import java.util.List;
import net.osmand.AndroidUtils;
import net.osmand.PlatformUtil;
import net.osmand.access.AccessibleToast;
import net.osmand.data.LatLon;
@ -49,7 +50,6 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
private static final Log log = PlatformUtil.getLog(OsmBugsLayer.class);
private final static int startZoom = 8;
private static final int SEARCH_LIMIT = 100;
private OsmandMapTileView view;
@ -329,6 +329,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
builder.setNegativeButton(R.string.default_buttons_cancel, null);
((EditText)openBug.findViewById(R.id.Password)).setText(((OsmandApplication) activity.getApplication()).getSettings().USER_PASSWORD.get());
((EditText)openBug.findViewById(R.id.AuthorName)).setText(((OsmandApplication) activity.getApplication()).getSettings().USER_NAME.get());
AndroidUtils.softKeyboardDelayed((EditText)openBug.findViewById(R.id.BugMessage));
builder.setPositiveButton(R.string.default_buttons_add, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
@ -400,6 +401,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
builder.setView(view);
((EditText)view.findViewById(R.id.AuthorName)).setText(((OsmandApplication) activity.getApplication()).getSettings().USER_NAME.get());
((EditText)view.findViewById(R.id.Password)).setText(((OsmandApplication) activity.getApplication()).getSettings().USER_PASSWORD.get());
AndroidUtils.softKeyboardDelayed((EditText)view.findViewById(R.id.BugMessage));
builder.setNegativeButton(R.string.default_buttons_cancel, null);
builder.setPositiveButton(R.string.osb_comment_dialog_add_button, new DialogInterface.OnClickListener() {
@Override