Add some code

This commit is contained in:
Alexander Sytnyk 2017-09-08 16:53:31 +03:00
parent 76485ca60b
commit d5639abfd6
2 changed files with 5 additions and 3 deletions

View file

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

View file

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