diff options
author | Uipko Berghuis <uipko.berghuis@fox-it.com> | 2019-11-09 15:01:38 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2019-11-17 10:16:01 +0100 |
commit | 0ff43d3ffbc3fc7e1ef26967b602e46f0bf936e9 (patch) | |
tree | 48dcae097ddebf8133a9bd7f5e584d29a273631f /main | |
parent | 35f704b20ac3149275ca2074f6326dc45d2c459a (diff) |
Upgrade to gradle 5.6.4 and android gradle plugin 3.5.2
Diffstat (limited to 'main')
-rw-r--r-- | main/build.gradle.kts | 2 | ||||
-rw-r--r-- | main/src/ui/java/android/support/v4n/view/ViewPager.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/main/build.gradle.kts b/main/build.gradle.kts index 7337dc0d..d66a99e4 100644 --- a/main/build.gradle.kts +++ b/main/build.gradle.kts @@ -2,7 +2,6 @@ * Copyright (c) 2012-2016 Arne Schwabe * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt */ -import java.util.Properties plugins { id("com.android.application") @@ -156,6 +155,7 @@ preBuildTask.dependsOn(swigTask) /* Normally you would put these on top but then it errors out on unknown configurations */ dependencies { implementation("androidx.annotation:annotation:1.1.0") + implementation("androidx.core:core:1.1.0") // Is there a nicer way to do this? dependencies.add("uiImplementation", "androidx.constraintlayout:constraintlayout:1.1.3") diff --git a/main/src/ui/java/android/support/v4n/view/ViewPager.java b/main/src/ui/java/android/support/v4n/view/ViewPager.java index 1b724118..aa360aa2 100644 --- a/main/src/ui/java/android/support/v4n/view/ViewPager.java +++ b/main/src/ui/java/android/support/v4n/view/ViewPager.java @@ -1788,8 +1788,8 @@ public class ViewPager extends ViewGroup { final int childCount = getChildCount(); for (int i = 0; i < childCount; i++) { final int layerType = enable ? - ViewCompat.LAYER_TYPE_HARDWARE : ViewCompat.LAYER_TYPE_NONE; - ViewCompat.setLayerType(getChildAt(i), layerType, null); + View.LAYER_TYPE_HARDWARE : View.LAYER_TYPE_NONE; + getChildAt(i).setLayerType(layerType, null); } } |