From 4924a384a25dfbd57d9784f40c8639f3b7d1d70b Mon Sep 17 00:00:00 2001 From: peet Date: Mon, 30 Nov 2020 15:18:53 +0100 Subject: [PATCH] Deleted DataBaseHelper and added it as inner class in DataHandler --- .idea/gradle.xml | 1 + .idea/misc.xml | 2 +- .../wdg/vokabel_trainer/DataBaseHelper.java | 24 ------------------- 3 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 app/src/main/java/org/ddnss/sfs/git/wdg/vokabel_trainer/DataBaseHelper.java diff --git a/.idea/gradle.xml b/.idea/gradle.xml index ac6b0ae..23a89bb 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -15,6 +15,7 @@ diff --git a/.idea/misc.xml b/.idea/misc.xml index 37a7509..d5d35ec 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + diff --git a/app/src/main/java/org/ddnss/sfs/git/wdg/vokabel_trainer/DataBaseHelper.java b/app/src/main/java/org/ddnss/sfs/git/wdg/vokabel_trainer/DataBaseHelper.java deleted file mode 100644 index 5009d51..0000000 --- a/app/src/main/java/org/ddnss/sfs/git/wdg/vokabel_trainer/DataBaseHelper.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.ddnss.sfs.git.wdg.vokabel_trainer; - -import android.content.Context; -import android.database.sqlite.SQLiteDatabase; -import android.database.sqlite.SQLiteOpenHelper; - -import androidx.annotation.Nullable; - -public class DataBaseHelper extends SQLiteOpenHelper { - - public DataBaseHelper(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) { - super(context, name, factory, version); - } - - @Override - public void onCreate(SQLiteDatabase db) { - db.execSQL("create table if not exists vocTable(deutsch text not null , englisch text not null);"); - } - - @Override - public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { - - } -}