SettingsTransitionActivity is an abstract activity being in charge of the transition feature. Activities extending it will get settings transition applied. We make CollapsingToolbarBaseActivity extend this activity. Clients extending CollapsingToolbarBaseActivity will have both app bar behaviour and the transition applied. Also add android:transitionName into the collapsing layout, so the transition would start from the back arrow on the action bar. And bump the min_sdk to 29 to relevant dependencies. Bug: 177480673 Test: rebuild and apply it on NotificationHistoryActivity Change-Id: I8e070a0f07080d027fec7b944bdcdbb758ae44b7
93 lines
2.8 KiB
Plaintext
93 lines
2.8 KiB
Plaintext
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "frameworks_base_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["frameworks_base_license"],
|
|
}
|
|
|
|
android_library {
|
|
|
|
name: "SettingsLib",
|
|
|
|
defaults: [
|
|
"SettingsLibDependenciesWithoutWifiTracker",
|
|
],
|
|
|
|
// TODO(b/149540986): revert this change.
|
|
static_libs: [
|
|
// All other dependent components should be put in
|
|
// "SettingsLibDependenciesWithoutWifiTracker".
|
|
"WifiTrackerLib",
|
|
],
|
|
|
|
// ANDROIDMK TRANSLATION ERROR: unsupported assignment to LOCAL_SHARED_JAVA_LIBRARIES
|
|
// LOCAL_SHARED_JAVA_LIBRARIES := androidx.lifecycle_lifecycle-common
|
|
|
|
resource_dirs: ["res"],
|
|
|
|
srcs: [
|
|
"src/**/*.java",
|
|
"src/**/*.kt",
|
|
],
|
|
|
|
min_sdk_version: "29",
|
|
|
|
}
|
|
|
|
java_defaults {
|
|
name: "SettingsLibDependenciesWithoutWifiTracker",
|
|
static_libs: [
|
|
"androidx.annotation_annotation",
|
|
"androidx.legacy_legacy-support-v4",
|
|
"androidx.recyclerview_recyclerview",
|
|
"androidx.preference_preference",
|
|
"androidx.appcompat_appcompat",
|
|
"androidx.lifecycle_lifecycle-runtime",
|
|
"androidx.mediarouter_mediarouter-nodeps",
|
|
"iconloader",
|
|
|
|
"SettingsLibHelpUtils",
|
|
"SettingsLibRestrictedLockUtils",
|
|
"SettingsLibActionBarShadow",
|
|
"SettingsLibAppPreference",
|
|
"SettingsLibSearchWidget",
|
|
"SettingsLibSettingsSpinner",
|
|
"SettingsLibLayoutPreference",
|
|
"SettingsLibMainSwitchPreference",
|
|
"SettingsLibActionButtonsPreference",
|
|
"SettingsLibEntityHeaderWidgets",
|
|
"SettingsLibBarChartPreference",
|
|
"SettingsLibProgressBar",
|
|
"SettingsLibAdaptiveIcon",
|
|
"SettingsLibRadioButtonPreference",
|
|
"SettingsLibDisplayDensityUtils",
|
|
"SettingsLibUtils",
|
|
"SettingsLibEmergencyNumber",
|
|
"SettingsLibTopIntroPreference",
|
|
"SettingsLibBannerMessagePreference",
|
|
"SettingsLibFooterPreference",
|
|
"SettingsLibUsageProgressBarPreference",
|
|
"SettingsLibCollapsingToolbarBaseActivity",
|
|
"SettingsLibTwoTargetPreference",
|
|
"SettingsLibSettingsTransition",
|
|
],
|
|
}
|
|
|
|
// NOTE: Keep this module in sync with ./common.mk
|
|
java_defaults {
|
|
name: "SettingsLibDefaults",
|
|
static_libs: [
|
|
"androidx.annotation_annotation",
|
|
"androidx.lifecycle_lifecycle-common",
|
|
"androidx.legacy_legacy-support-v4",
|
|
"androidx.lifecycle_lifecycle-runtime",
|
|
"androidx.recyclerview_recyclerview",
|
|
"androidx.preference_preference",
|
|
"androidx.appcompat_appcompat",
|
|
"androidx.legacy_legacy-preference-v14",
|
|
"SettingsLib",
|
|
],
|
|
}
|