This commit is contained in:
tom79 2019-11-24 17:38:37 +01:00
parent bbcdb65bd8
commit b0f1c68ec3
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ public class CustomEmojiDAO {
public List<Emojis> getEmojiStartingBy(String shortCode) {
try {
String instance = Helper.getLiveInstance(context);
Cursor c = db.query(Sqlite.TABLE_CUSTOM_EMOJI, null, Sqlite.COL_SHORTCODE + " LIKE \"%" + shortCode + "%\" AND " + Sqlite.COL_INSTANCE + " = \"" + instance + "\"", null, Sqlite.COL_SHORTCODE, null, null, null);
Cursor c = db.query(Sqlite.TABLE_CUSTOM_EMOJI, null, Sqlite.COL_SHORTCODE + " LIKE \"%" + shortCode + "%\" AND " + Sqlite.COL_INSTANCE + " = \"" + instance + "\"", null, Sqlite.COL_SHORTCODE, null, null, "20");
return cursorToListEmojis(c);
} catch (Exception e) {
return null;