diff --git a/OsmAnd/src/net/osmand/plus/OsmandApplication.java b/OsmAnd/src/net/osmand/plus/OsmandApplication.java index 25dd830476..7ff4d161e9 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandApplication.java +++ b/OsmAnd/src/net/osmand/plus/OsmandApplication.java @@ -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 warnings = new ArrayList(); try { diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java index 4acee4463c..dfd9c766c8 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmBugsLayer.java @@ -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