Merge branch 'sasha_pasha_branch' of ssh://github.com/osmandapp/Osmand into sasha_pasha_branch
This commit is contained in:
commit
2483327330
2 changed files with 5 additions and 3 deletions
|
@ -46,7 +46,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="2"
|
android:maxLines="1"
|
||||||
android:textColor="?android:textColorPrimary"
|
android:textColor="?android:textColorPrimary"
|
||||||
android:textSize="@dimen/default_list_text_size"
|
android:textSize="@dimen/default_list_text_size"
|
||||||
tools:text="Van Gogh Museum"/>
|
tools:text="Van Gogh Museum"/>
|
||||||
|
|
|
@ -19,7 +19,7 @@ import java.util.Random;
|
||||||
|
|
||||||
public class MapMarkersDbHelper {
|
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 DB_NAME = "map_markers_db";
|
||||||
|
|
||||||
private static final String MARKERS_TABLE_NAME = "map_markers";
|
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) {
|
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() {
|
private void saveExistingMarkersToDb() {
|
||||||
|
|
Loading…
Reference in a new issue