fix empty bindArgs crash error for sql query to clear subscriptions

This commit is contained in:
Akinwale Ariwodola 2020-06-25 23:33:04 +01:00
parent 6c44e503db
commit 33094f8c88

View file

@ -232,7 +232,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
db.execSQL(SQL_DELETE_SUBSCRIPTION, new Object[] { subscription.getUrl() });
}
public static void clearSubscriptions(SQLiteDatabase db) {
db.execSQL(SQL_CLEAR_SUBSCRIPTIONS, null);
db.execSQL(SQL_CLEAR_SUBSCRIPTIONS);
}
public static List<Subscription> getSubscriptions(SQLiteDatabase db) {
List<Subscription> subscriptions = new ArrayList<>();