mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Fix several issues with chatcolors.
This commit is contained in:
committed by
Cody Henthorne
parent
e5b0941d30
commit
18133e2a10
@@ -1411,11 +1411,11 @@ public class RecipientDatabase extends Database {
|
||||
}
|
||||
}
|
||||
|
||||
public int getColorUsageCount(@NotNull ChatColors chatColors) {
|
||||
public int getColorUsageCount(@NotNull ChatColors.Id chatColorsId) {
|
||||
SQLiteDatabase db = databaseHelper.getReadableDatabase();
|
||||
String[] projection = SqlUtil.buildArgs("COUNT(*)");
|
||||
String where = CUSTOM_CHAT_COLORS_ID + " = ?";
|
||||
String[] args = SqlUtil.buildArgs(chatColors.getId().getLongValue());
|
||||
String[] args = SqlUtil.buildArgs(chatColorsId.getLongValue());
|
||||
|
||||
try (Cursor cursor = db.query(TABLE_NAME, projection, where, args, null, null, null)) {
|
||||
if (cursor == null) {
|
||||
|
||||
Reference in New Issue
Block a user