From d5639abfd607809d075a7f94b3018203337e4b2e Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Fri, 8 Sep 2017 16:53:31 +0300 Subject: [PATCH] Add some code --- OsmAnd/res/layout/map_marker_item_new.xml | 2 +- .../src/net/osmand/plus/mapmarkers/MapMarkersDbHelper.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/OsmAnd/res/layout/map_marker_item_new.xml b/OsmAnd/res/layout/map_marker_item_new.xml index a74186b4e6..e9e1b0548a 100644 --- a/OsmAnd/res/layout/map_marker_item_new.xml +++ b/OsmAnd/res/layout/map_marker_item_new.xml @@ -46,7 +46,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsize="end" - android:maxLines="2" + android:maxLines="1" android:textColor="?android:textColorPrimary" android:textSize="@dimen/default_list_text_size" tools:text="Van Gogh Museum"/> diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersDbHelper.java b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersDbHelper.java index 2e309fc19e..d630600cc3 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersDbHelper.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersDbHelper.java @@ -19,7 +19,7 @@ import java.util.Random; public class MapMarkersDbHelper { - private static final int DB_VERSION = 1; + private static final int DB_VERSION = 2; private static final String DB_NAME = "map_markers_db"; private static final String MARKERS_TABLE_NAME = "map_markers"; @@ -109,7 +109,9 @@ public class MapMarkersDbHelper { } private void onUpgrade(SQLiteConnection db, int oldVersion, int newVersion) { - + db.execSQL("DROP TABLE " + MARKERS_TABLE_NAME); + db.execSQL("DROP TABLE " + GROUPS_TABLE_NAME); + onCreate(db); } private void saveExistingMarkersToDb() {