Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a2c2c64 authored by stefan-niedermann's avatar stefan-niedermann
Browse files

Also create indexes for usernamem, account_name, display_name and token

parent 839793fa
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -198,7 +198,11 @@ public class NoteSQLiteOpenHelper extends SQLiteOpenHelper {
    }

    private void createAccountIndexes(SQLiteDatabase db) {
        createIndex(db, table_accounts, key_url);
        createIndex(db, table_accounts, key_username);
        createIndex(db, table_accounts, key_account_name);
        createIndex(db, table_accounts, key_display_name);
        createIndex(db, table_accounts, key_token);
    }

    private void createIndex(SQLiteDatabase db, String table, String column) {