summaryrefslogtreecommitdiffstats
path: root/android/source/src/java/org/libreoffice/ui/RecentFilesAdapter.java
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2022-04-14 11:29:27 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2022-04-14 16:49:41 +0200
commit70cb4955f1c099b030567e6bf4702f7dc6ee521a (patch)
treee9f2ec2fc675a9132b7989f9da77d94b5323060d /android/source/src/java/org/libreoffice/ui/RecentFilesAdapter.java
parentPrevent save interception when sharing Calc doc (diff)
downloadcore-70cb4955f1c099b030567e6bf4702f7dc6ee521a.tar.gz
core-70cb4955f1c099b030567e6bf4702f7dc6ee521a.zip
android: Port from Android Support Lib to AndroidX
Replace the no longer maintained Android Support Library with the Android Jetpack libraries. Quoting [1]: > Version 28.0.0 is the last release of the Support Library. There will be > no more android.support library releases. All new feature development > will be in the androidx namespace. Most porting was done automatically by using Android Studio's "Refactor" -> "Migrate to AndroidX..." function. In `android/source/res/layout/toolbar_bottom.xml` and `android/source/res/layout/toolbar_color_picker.xml`, the uses of `app:layout_behavior="android.support.design.widget.BottomSheetBehavior"` had to be replaced manually as described at [2], because the app would crash when using the old "android.support" values. Also drop the Android Support Library related bits from configure.ac In a quick test, this worked fine and no obvious difference was visible when running this in various AVDs. When trying to test this in an x86 AVD still using SDK 16 (Android 4.1), which is currently specified as Android Viewer's `minSdkVersion`, only various unrelated issues showed up, some of which will be handled in follow-up commits. After the migration, many weird errors showed up in Android Studio, which disappeared after invalidating the caches (via "File" -> "Invalidate Caches..."). [1] https://developer.android.com/jetpack/androidx [2] https://stackoverflow.com/questions/45100963/runtimeexception-could-not-inflate-behavior-subclass Change-Id: I2a57f0ebd56e7ecc09b7d65aae17fd15088a633b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133002 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'android/source/src/java/org/libreoffice/ui/RecentFilesAdapter.java')
-rw-r--r--android/source/src/java/org/libreoffice/ui/RecentFilesAdapter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/source/src/java/org/libreoffice/ui/RecentFilesAdapter.java b/android/source/src/java/org/libreoffice/ui/RecentFilesAdapter.java
index 6011035c1610..ef00b9fb6cfd 100644
--- a/android/source/src/java/org/libreoffice/ui/RecentFilesAdapter.java
+++ b/android/source/src/java/org/libreoffice/ui/RecentFilesAdapter.java
@@ -9,8 +9,8 @@
package org.libreoffice.ui;
-import android.support.v4.content.ContextCompat;
-import android.support.v7.widget.RecyclerView;
+import androidx.core.content.ContextCompat;
+import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;