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

Commit b642518e authored by Vasu Nori's avatar Vasu Nori
Browse files

fix broken build

Change-Id: If1e5639f48d5155e141bce4bf5deef9de5668c27
parent 7301a23f
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}.