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

Commit b3c62410 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Rewrite MediaStore thumbnail internals."

parents e75f28ce 30b77bce
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -34,10 +34,10 @@ import dalvik.system.CloseGuard;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.Map;


/**
 * Represents a SQLite database connection.
 * Each connection wraps an instance of a native <code>sqlite3</code> object.
@@ -90,6 +90,8 @@ public final class SQLiteConnection implements CancellationSignal.OnCancelListen
    private static final String TAG = "SQLiteConnection";
    private static final boolean DEBUG = false;

    public static volatile boolean sLocalDebug = false;

    private static final String[] EMPTY_STRING_ARRAY = new String[0];
    private static final byte[] EMPTY_BYTE_ARRAY = new byte[0];

@@ -991,6 +993,10 @@ public final class SQLiteConnection implements CancellationSignal.OnCancelListen
    }

    private void bindArguments(PreparedStatement statement, Object[] bindArgs) {
        if (sLocalDebug) {
            Log.v(TAG, statement.mSql + " with args " + Arrays.toString(bindArgs));
        }

        final int count = bindArgs != null ? bindArgs.length : 0;
        if (count != statement.mNumParameters) {
            throw new SQLiteBindOrColumnIndexOutOfRangeException(
+90 −231

File changed.

Preview size limit exceeded, changes collapsed.