Updated AndroidX

pull/209/head
M66B 3 years ago
parent 3b8cc7e8e6
commit 482f132dc4

@ -334,13 +334,13 @@ dependencies {
//implementation fileTree(dir: 'libs', include: ['*.jar']) //implementation fileTree(dir: 'libs', include: ['*.jar'])
def startup_version = "1.1.0" def startup_version = "1.1.0"
def annotation_version_experimental = "1.2.0" def annotation_version_experimental = "1.3.0-alpha01"
def core_version = "1.8.0" // 1.9.0-alpha05 def core_version = "1.8.0" // 1.9.0-alpha05
def appcompat_version = "1.6.0-alpha05" def appcompat_version = "1.6.0-alpha05"
def emoji_version = "1.2.0-beta01" def emoji_version = "1.2.0-rc01"
def activity_version = "1.5.0" // 1.6.0-alpha03 def activity_version = "1.5.1" // 1.6.0-alpha03
def fragment_version = "1.5.0" def fragment_version = "1.5.1" // 1.6.0-alpha01
def windows_version = "1.0.0" // 1.1.0-alpha01 def windows_version = "1.0.0" // 1.1.0-alpha03
def webkit_version = "1.5.0-beta01" def webkit_version = "1.5.0-beta01"
def recyclerview_version = "1.2.1" // 1.3.0-alpha02 def recyclerview_version = "1.2.1" // 1.3.0-alpha02
def coordinatorlayout_version = "1.2.0" def coordinatorlayout_version = "1.2.0"
@ -350,9 +350,9 @@ dependencies {
def lbm_version = "1.1.0" def lbm_version = "1.1.0"
def swiperefresh_version = "1.2.0-alpha01" def swiperefresh_version = "1.2.0-alpha01"
def documentfile_version = "1.1.0-alpha01" def documentfile_version = "1.1.0-alpha01"
def lifecycle_version = "2.5.0" // 2.6.0-alpha01 def lifecycle_version = "2.5.1" // 2.6.0-alpha01
def lifecycle_extensions_version = "2.2.0" def lifecycle_extensions_version = "2.2.0"
def room_version = "2.4.2" // 2.5.0-alpha02 def room_version = "2.4.3" // 2.5.0-alpha02
def sqlite_version = "2.2.0" // 2.3.0-alpha03 def sqlite_version = "2.2.0" // 2.3.0-alpha03
def requery_version = "3.36.0" def requery_version = "3.36.0"
def paging_version = "2.1.2" // 3.2.0-alpha01 def paging_version = "2.1.2" // 3.2.0-alpha01

@ -0,0 +1,17 @@
/*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// This file exists to trick AGP/lint to work around b/234865137

@ -154,7 +154,7 @@ public abstract class LimitOffsetDataSource<T> extends androidx.paging.Positiona
@NonNull LoadInitialCallback<T> callback) { @NonNull LoadInitialCallback<T> callback) {
registerObserverIfNecessary(); registerObserverIfNecessary();
List<T> list = Collections.emptyList(); List<T> list = Collections.emptyList();
int totalCount = 0; int totalCount;
int firstLoadPosition = 0; int firstLoadPosition = 0;
RoomSQLiteQuery sqLiteQuery = null; RoomSQLiteQuery sqLiteQuery = null;
Cursor cursor = null; Cursor cursor = null;
@ -172,8 +172,6 @@ public abstract class LimitOffsetDataSource<T> extends androidx.paging.Positiona
mDb.setTransactionSuccessful(); mDb.setTransactionSuccessful();
list = rows; list = rows;
} }
} catch (Throwable ex) {
eu.faircode.email.Log.w(ex);
} finally { } finally {
if (cursor != null) { if (cursor != null) {
cursor.close(); cursor.close();
Loading…
Cancel
Save