0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 03:52:15 +02:00

Upgrade to requery 3.24.0 w/extra dependency req'd for compile (#4920)

This commit is contained in:
Mike Hardy 2018-08-29 06:48:03 -05:00 committed by Tim Rae
parent 127f599c68
commit addaac9466
2 changed files with 4 additions and 3 deletions

View File

@ -63,7 +63,8 @@ dependencies {
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:customtabs:26.1.0'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'io.requery:sqlite-android:3.16.0'
implementation 'io.requery:sqlite-android:3.24.0'
implementation 'android.arch.persistence:db:1.1.1'
implementation('com.afollestad.material-dialogs:core:0.8.6.2@aar') {
//exclude group: 'com.android.support' // uncomment to force our local support lib version
transitive = true

View File

@ -57,8 +57,8 @@ public class DB {
*/
public DB(String ankiFilename) {
mDatabase = SQLiteDatabase.openDatabase(ankiFilename, null,
(SQLiteDatabase.OPEN_READWRITE + SQLiteDatabase.CREATE_IF_NECESSARY)
| SQLiteDatabase.NO_LOCALIZED_COLLATORS, new MyDbErrorHandler());
(SQLiteDatabase.OPEN_READWRITE | SQLiteDatabase.CREATE_IF_NECESSARY),
new MyDbErrorHandler());
// TODO: remove this once everyone has stopped using old AnkiDroid clients with WAL (API >= 16)
CompatHelper.getCompat().disableDatabaseWriteAheadLogging(mDatabase);