Add some code
This commit is contained in:
parent
76485ca60b
commit
d5639abfd6
2 changed files with 5 additions and 3 deletions
|
@ -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"/>
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue