From 33094f8c8806cbcd2d57d67c89158224e2dfa040 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Thu, 25 Jun 2020 23:33:04 +0100 Subject: [PATCH] fix empty bindArgs crash error for sql query to clear subscriptions --- app/src/main/java/io/lbry/browser/data/DatabaseHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/lbry/browser/data/DatabaseHelper.java b/app/src/main/java/io/lbry/browser/data/DatabaseHelper.java index e755b10b..67dabb82 100644 --- a/app/src/main/java/io/lbry/browser/data/DatabaseHelper.java +++ b/app/src/main/java/io/lbry/browser/data/DatabaseHelper.java @@ -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 getSubscriptions(SQLiteDatabase db) { List subscriptions = new ArrayList<>();