From 4097e258df29d671bb72f89483489388dd5f4aa8 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 3 May 2020 12:03:00 +0300 Subject: [PATCH] fu: async sql machinery --- app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java b/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java index a449e466..6aaa62c6 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java @@ -226,6 +226,12 @@ public final class MLDB { @SuppressWarnings("WeakerAccess") abstract public static class CallbackHelper { public void onStart() {} + public abstract boolean onRow(@NonNull Cursor cursor); + public void onNoRows() {} + public void onException(Exception exception) { + Logger.debug("MLDB", "Exception in asynchronous SQL", exception); + } + public void onDone() {} } } -- 2.39.5