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

Commit 9639ce78 authored by Philip Cuadra's avatar Philip Cuadra
Browse files

Replace heavy isLoggable call

Log.isLoggable is expensive for frequent operations.  Replace with a
pre-determined check.

Bug 188428246
Test: Built

Change-Id: I77f1980c289b44c8dafd4113771fd814ff382a83
parent dd934371
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ public class SQLiteCursor extends AbstractWindowedCursor {
            if (mCount == NO_COUNT) {
                mCount = mQuery.fillWindow(mWindow, requiredPos, requiredPos, true);
                mCursorWindowCapacity = mWindow.getNumRows();
                if (Log.isLoggable(TAG, Log.DEBUG)) {
                if (SQLiteDebug.NoPreloadHolder.DEBUG_SQL_LOG) {
                    Log.d(TAG, "received count(*) from native_fill_window: " + mCount);
                }
            } else {