Skip to content

Commit

Permalink
V1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
woheller69 committed Feb 14, 2024
1 parent a500d8b commit fdbeefb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "org.woheller69.whobird"
minSdk 30
targetSdk 33
versionCode 16
versionName "1.6"
versionCode 17
versionName "1.7"
}

aaptOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
this.onCreate(db);
}

public void addEntry(String name, float latitude, float longitude, int speciesId, float probability) {
public synchronized void addEntry(String name, float latitude, float longitude, int speciesId, float probability) {
// Insert a new row into the table with all columns and their values from parameters.
SQLiteDatabase db = getWritableDatabase();
ContentValues cv = new ContentValues();
Expand All @@ -61,14 +61,14 @@ public void addEntry(String name, float latitude, float longitude, int speciesId
db.insert(TABLE_NAME, null, cv); // Insert the row into the table with all columns and their values from parameters.
}

public void clearAllEntries() {
public synchronized void clearAllEntries() {
SQLiteDatabase db = getWritableDatabase();
String CLEAR_TABLE = "DELETE FROM "+ TABLE_NAME;

db.execSQL(CLEAR_TABLE); // Delete all rows in the table, effectively clearing it out.
}

public List<String> exportAllEntriesAsCSV() {
public synchronized List<String> exportAllEntriesAsCSV() {
SQLiteDatabase db = getReadableDatabase();
String SELECT_ALL = "SELECT * FROM "+ TABLE_NAME;

Expand Down
2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/17.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Per-app language support
CSV-Export

0 comments on commit fdbeefb

Please sign in to comment.