diff options
| author | 2021-05-17 10:30:13 -0700 | |
|---|---|---|
| committer | 2021-06-02 21:39:17 +0000 | |
| commit | 9639ce78ec528bfb8dedf0e2bc3aa032fd0d5bf4 (patch) | |
| tree | b73cff13aa762cd7822658d955bf8430b57bf794 | |
| parent | dd934371ae20dd6a84becbfaccd85aef10dfb6f6 (diff) | |
Replace heavy isLoggable call
Log.isLoggable is expensive for frequent operations. Replace with a
pre-determined check.
Bug 188428246
Test: Built
Change-Id: I77f1980c289b44c8dafd4113771fd814ff382a83
| -rw-r--r-- | core/java/android/database/sqlite/SQLiteCursor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/database/sqlite/SQLiteCursor.java b/core/java/android/database/sqlite/SQLiteCursor.java index 7ba63e6462f1..fa186c02b368 100644 --- a/core/java/android/database/sqlite/SQLiteCursor.java +++ b/core/java/android/database/sqlite/SQLiteCursor.java @@ -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 { |