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

Commit eb0699ba authored by Vasu Nori's avatar Vasu Nori Committed by Android (Google) Code Review
Browse files

Merge "fix broken build"

parents 1a9be66e b642518e
Loading
Loading
Loading
Loading
+19 −15
Original line number Diff line number Diff line
@@ -2116,10 +2116,13 @@ public class SQLiteDatabase extends SQLiteClosable {

            int maxCacheSz = (mConnectionNum == 0) ? mMaxSqlCacheSize :
                    mParentConnObj.mMaxSqlCacheSize;
            if (SQLiteDebug.DEBUG_SQL_CACHE && (mConnectionNum == 0)
            
            if (SQLiteDebug.DEBUG_SQL_CACHE) {
                boolean printWarning = (mConnectionNum == 0)
                        ? (!mCacheFullWarning && mCompiledQueries.size() == maxCacheSz)
                        : (!mParentConnObj.mCacheFullWarning &&
                   mParentConnObj.mCompiledQueries.size() == maxCacheSz)) {
                        mParentConnObj.mCompiledQueries.size() == maxCacheSz);
                if (printWarning) {
                    /*
                     * cache size of {@link #mMaxSqlCacheSize} is not enough for this app.
                     * log a warning.
@@ -2133,6 +2136,7 @@ public class SQLiteDatabase extends SQLiteClosable {
                        Log.d(TAG, "Sql stament in Cache: " + s);
                    }
                }
            }
            /* add the given SQLiteCompiledSql compiledStatement to cache.
             * no need to worry about the cache size - because {@link #mCompiledQueries}
             * self-limits its size to {@link #mMaxSqlCacheSize}.