diff --git a/Android.bp b/Android.bp index bb9db22e8da..dce25d7ddae 100644 --- a/Android.bp +++ b/Android.bp @@ -73,6 +73,7 @@ android_library { "android.hardware.dumpstate-V1.0-java", "android.hardware.dumpstate-V1.1-java", "lottie", + "windowExtLib", ], libs: [ @@ -101,6 +102,10 @@ android_app { ], static_libs: ["Settings-core"], uses_libs: ["org.apache.http.legacy"], + optional_uses_libs: [ + "androidx.window.extensions", + "androidx.window.sidecar", + ], resource_dirs: [], optimize: { proguard_flags_files: ["proguard.flags"], @@ -112,6 +117,11 @@ android_library_import { aars: ["libs/contextualcards.aar"], } +android_library_import { + name: "windowExtLib", + aars: ["libs/window_ext_lib.aar"], +} + filegroup { name: "Settings_proguard_flags", srcs: ["proguard.flags"], diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 4546a54cbbc..64bef730cb8 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -120,7 +120,10 @@ android:directBootAware="true" android:appComponentFactory="androidx.core.app.CoreComponentFactory"> - + + + + (android.content.Context, android.net.Uri); } + +# Keep WM Jetpack classes and callbacks +-keep class androidx.window.** { *; } +-dontwarn androidx.window.extensions.** diff --git a/res/layout/settings_summary_preference.xml b/res/layout/settings_summary_preference.xml index c4b6c1ca45a..61f27ca9b53 100644 --- a/res/layout/settings_summary_preference.xml +++ b/res/layout/settings_summary_preference.xml @@ -30,7 +30,7 @@ android:layout_marginBottom="5dp" android:fontFamily="@*android:string/config_headlineFontFamily" android:paddingTop="0dp" - android:textColor="?android:attr/colorAccent" + android:textColor="?android:attr/textColorPrimary" android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Display1" /> @@ -45,9 +45,9 @@ + android:layout_height="wrap_content"/>