mirror of
https://github.com/samsonjs/media.git
synced 2026-03-28 09:55:48 +00:00
Fix nullness checks (pending stub to fix it properly)
PiperOrigin-RevId: 231396213
This commit is contained in:
parent
e0711c64b8
commit
d49e7ebae2
1 changed files with 3 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ import android.database.DatabaseErrorHandler;
|
|||
import android.database.SQLException;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.database.sqlite.SQLiteOpenHelper;
|
||||
import android.support.annotation.Nullable;
|
||||
import com.google.android.exoplayer2.util.Log;
|
||||
import java.io.File;
|
||||
|
||||
|
|
@ -131,11 +132,12 @@ public final class ExoDatabaseProvider extends SQLiteOpenHelper implements Datab
|
|||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("nullness:argument.type.incompatible")
|
||||
public SQLiteDatabase openOrCreateDatabase(
|
||||
String name,
|
||||
int mode,
|
||||
SQLiteDatabase.CursorFactory factory,
|
||||
DatabaseErrorHandler errorHandler) {
|
||||
@Nullable DatabaseErrorHandler errorHandler) {
|
||||
File databasePath = getDatabasePath(name);
|
||||
int flags = SQLiteDatabase.CREATE_IF_NECESSARY;
|
||||
if ((mode & MODE_ENABLE_WRITE_AHEAD_LOGGING) != 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue