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

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

increase sql statement printed in finalier warnings from 100 to 1000

100 for sql statement seems too small for some apps (gmail is one example)

Change-Id: I4d29bffc0da5a854ca650d083b81df8769b35b77
parent f0a896b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -112,7 +112,7 @@ import android.util.Log;
                StrictMode.onSqliteObjectLeaked(
                StrictMode.onSqliteObjectLeaked(
                    "Releasing statement in a finalizer. Please ensure " +
                    "Releasing statement in a finalizer. Please ensure " +
                    "that you explicitly call close() on your cursor: " +
                    "that you explicitly call close() on your cursor: " +
                    mSqlStmt.substring(0, (len > 100) ? 100 : len),
                    mSqlStmt.substring(0, (len > 1000) ? 1000 : len),
                    mStackTrace);
                    mStackTrace);
            }
            }
            releaseSqlStatement();
            releaseSqlStatement();
+1 −1
Original line number Original line Diff line number Diff line
@@ -513,7 +513,7 @@ public class SQLiteCursor extends AbstractWindowedCursor {
                    StrictMode.onSqliteObjectLeaked(
                    StrictMode.onSqliteObjectLeaked(
                        "Finalizing a Cursor that has not been deactivated or closed. " +
                        "Finalizing a Cursor that has not been deactivated or closed. " +
                        "database = " + mQuery.mDatabase.getPath() + ", table = " + mEditTable +
                        "database = " + mQuery.mDatabase.getPath() + ", table = " + mEditTable +
                        ", query = " + mQuery.mSql.substring(0, (len > 100) ? 100 : len),
                        ", query = " + mQuery.mSql.substring(0, (len > 1000) ? 1000 : len),
                        mStackTrace);
                        mStackTrace);
                }
                }
                close();
                close();