Merge branch 'sasha_pasha_branch' of ssh://github.com/osmandapp/Osmand into sasha_pasha_branch

This commit is contained in:
PavelRatushny 2017-09-08 16:56:55 +03:00
commit 2483327330
2 changed files with 5 additions and 3 deletions

View file

@ -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"/>

View file

@ -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() {