add delay send mms. add group send to individual recipients - sms and mms. add immediate show messages in convo, not wait for sent. new qktransaction that replaces android/smsmms transaction with mods for quik. lots of code cleanups and removing superfluous code. some bug fixes.

This commit is contained in:
gavine99
2025-04-10 16:59:35 +10:00
parent 6f70c8e932
commit 2810b56cd0
375 changed files with 20297 additions and 3161 deletions
+18 -7
View File
@@ -22,15 +22,16 @@ import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.widget.Toast;
import org.jetbrains.annotations.Nullable;
import timber.log.Timber;
import android.widget.Toast;
/**
* @hide
*/
public final class SqliteWrapper {
private static final String TAG = "SqliteWrapper";
private static final String SQLITE_EXCEPTION_DETAIL_MESSAGE
= "unable to open database file";
@@ -52,24 +53,34 @@ public final class SqliteWrapper {
}
}
@Nullable
public static Cursor query(Context context, ContentResolver resolver, Uri uri,
String[] projection, String selection, String[] selectionArgs, String sortOrder) {
try {
return resolver.query(uri, projection, selection, selectionArgs, sortOrder);
} catch (SQLiteException e) {
Timber.e(e, "Catch a SQLiteException when query: ");
Timber.e("Catch a SQLiteException when query: ", e);
checkSQLiteException(context, e);
return null;
}
}
@SuppressWarnings("deprecation")
public static boolean requery(Context context, Cursor cursor) {
try {
return cursor.requery();
} catch (SQLiteException e) {
Timber.e("Catch a SQLiteException when requery: ", e);
checkSQLiteException(context, e);
return false;
}
}
public static int update(Context context, ContentResolver resolver, Uri uri,
ContentValues values, String where, String[] selectionArgs) {
try {
return resolver.update(uri, values, where, selectionArgs);
} catch (SQLiteException e) {
Timber.e(e, "Catch a SQLiteException when update: ");
Timber.e("Catch a SQLiteException when update: ", e);
checkSQLiteException(context, e);
return -1;
}
@@ -80,7 +91,7 @@ public final class SqliteWrapper {
try {
return resolver.delete(uri, where, selectionArgs);
} catch (SQLiteException e) {
Timber.e(e, "Catch a SQLiteException when delete: ");
Timber.e("Catch a SQLiteException when delete: ", e);
checkSQLiteException(context, e);
return -1;
}
@@ -91,7 +102,7 @@ public final class SqliteWrapper {
try {
return resolver.insert(uri, values);
} catch (SQLiteException e) {
Timber.e(e, "Catch a SQLiteException when insert: ");
Timber.e("Catch a SQLiteException when insert: ", e);
checkSQLiteException(context, e);
return null;
}