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

Commit 3f82874b authored by Nicholas Ambur's avatar Nicholas Ambur
Browse files

reduce excessive soundtrigger logging

Bug: 151095585
Test: build and boot smoke test
Change-Id: I3216cfd837a4c688b19f3bb87021983153601350
parent d6956d77
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -257,6 +257,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {
            int userHandle) {
        SQLiteDatabase db = getReadableDatabase();
        Cursor c = db.rawQuery(selectQuery, null);
        if (DBG) {
            Slog.w(TAG, "querying database: " + selectQuery);
        }

        try {
            if (c.moveToFirst()) {
@@ -334,7 +337,10 @@ public class DatabaseHelper extends SQLiteOpenHelper {
                    return model;
                } while (c.moveToNext());
            }

            if (DBG) {
                Slog.w(TAG, "No SoundModel available for the given keyphrase");
            }
        } finally {
            c.close();
            db.close();