summaryrefslogtreecommitdiff
path: root/packages/SettingsLib
AgeCommit message (Collapse)Author
2025-04-21Fix crash in SettingsSpinnerAdapter David Liu
getItem(position) will return T but not String. It'll always crash if T is not String. Bug: 406736217 Test: manual Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:075cf4e48461614bb97c10edab3c7fd1a397000d) Merged-In: Ic85341cd66770792ad986fa34a461d9eed95dc18 Change-Id: Ic85341cd66770792ad986fa34a461d9eed95dc18
2025-04-12Import translations. DO NOT MERGE ANYWHERE Bill Yi
Auto-generated-cl: translation import Bug: 408276020 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d3db75c6b20c4cb14ef448c95e865eb93d48add8) Merged-In: Ieec70ce5d45db2facff6c9683aa352537591a332 Change-Id: Ieec70ce5d45db2facff6c9683aa352537591a332
2025-04-12Import translations. DO NOT MERGE ANYWHERE Bill Yi
Auto-generated-cl: translation import Bug: 408276020 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6130080c7555cfc09c67420f16a98fdfcf1f32ab) Merged-In: I75a068bca2933fffc6fa592e47d3369696612b89 Change-Id: I75a068bca2933fffc6fa592e47d3369696612b89
2025-04-12Import translations. DO NOT MERGE ANYWHERE Bill Yi
Auto-generated-cl: translation import Bug: 408276020 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6c4bf07985511334d0ac4c9438242747ffa207c0) Merged-In: Iafe5b1453f8598a1a732219c5f4b30ad9b21c89e Change-Id: Iafe5b1453f8598a1a732219c5f4b30ad9b21c89e
2025-04-03[EXPD] Fix theme bridge material theme parent Richard MacGregor
Base.ThemeOverlay.MaterialComponents.PlatformBridge and ThemeOverlay.MaterialComponents.PlatformBridge use incorrect parent theme, fix so they use MaterialComponent base theme parent Bug: 406257542 Flag: EXEMPT bugfix Relnote: N/A Test: atest CtsPermissionUiTestCases (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:76eeaba39648924a06dc450190d121fe0aa11202) Merged-In: I485ee003e791ac1962bf62af23a17cb4a162bd01 Change-Id: I485ee003e791ac1962bf62af23a17cb4a162bd01
2025-04-02Import translations. DO NOT MERGE ANYWHERE Bill Yi
Auto-generated-cl: translation import Bug: 406841318 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1eb47f53ddc3bb52a2e5e127d7aaf392fa11e8aa) Merged-In: Ibd9ded622ec75c62c88a5c284f4efca7e6889312 Change-Id: Ibd9ded622ec75c62c88a5c284f4efca7e6889312
2025-03-26[Expressive Design] Add null check for icon view in dropdown list. mxyyiyi
- Fix crash when clicking spinner under original style. Fix: 406403111 Test: disable flag & test manual Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:11d1c56f67295d2ecdaab3834e6174acdd22e0bb) Merged-In: I4b2337ed0285afd943a9790d22089320e9a22b49 Change-Id: I4b2337ed0285afd943a9790d22089320e9a22b49
2025-03-24Merge "Import translations. DO NOT MERGE ANYWHERE" into main Bill Yi
2025-03-24Merge "Add hidden WM API to set external display density ratio." into main Ebru Kurnaz
2025-03-24Merge "Add Category for TogglePermissionAppInfoPage" into main Chaohui Wang
2025-03-23Merge "To keep broadcast name to be under 32 char, limit the phone name ↵ Chelsea Hao
prefix to at most 27 char." into main
2025-03-24Add Category for TogglePermissionAppInfoPage Chaohui Wang
Also remove the unused InfoPageAdditionalContent. Fix: 405019781 Flag: EXEMPT bug fix Test: visual Change-Id: I3cb7c658a3f401986c807b0ffd6e336f2086af9f
2025-03-23To keep broadcast name to be under 32 char, limit the phone name prefix to ↵ chelseahao
at most 27 char. Test: atest Bug: 380770776 Flag: EXEMPT bug fix Change-Id: I3dbf87ec5831f79994252d86bef581684f0f9309
2025-03-24[Catalyst] Add proguard rule to avoid class name obfuscation on ↵ Jacky Wang
PreferenceCoordinate Bug: 405813284 Flag: EXEMPT proguard Test: manual Change-Id: I1f72a2c9628a97b510078fe2d83d8213ff2d6236
2025-03-22Merge "Update SelectorWithWidgetPreference layout" into main Treehugger Robot
2025-03-21Merge "[Settingslib] Support outlined style for SettingsSpinner" into main David Liu
2025-03-21Merge changes from topic "bc25-settings-spinner" into main David Liu
* changes: [Settingslib] Add SettingsSpinner item selected highlight [Settingslib] Update SettingsSpinner with expressive styles
2025-03-21Merge "[AAPM] Fix AAPM QS behavior." into main Hani Kazmi
2025-03-21Merge "[SettingsLib] Dynamically update StatusBannerPreference icon tint" ↵ Wes Okuhara
into main
2025-03-21[AAPM] Fix AAPM QS behavior. Hani Kazmi
The bugs are caused by the interaction of three windows: 1. The notification shade 2. The WIfi QuickSetting Dialog 3. The AAPM Action Blocked dialog. Dismissing (1) and (2) resolves the listed bugs. The current `startActivity` method causes janky animation - explicitly dismissing the dialog first smoothes this out. Bug: 404595536, 404595701, 398892533 Test: Manually tested on device Flag: EXEMPT_BUGFIX Change-Id: I99533e54d65bb75f546c519d13f1107f1ede149e
2025-03-21Merge "Add OWNERS file for DisplayDensityUtils." into main Ebru Kurnaz
2025-03-21Merge "Fix button padding for right to left languages in SpaDialog" into main Hani Kazmi
2025-03-21Add OWNERS file for DisplayDensityUtils. Ebru Kurnaz
Bug: 405359973 Flag: EXEMPT only changing OWNERS Test: N/A Change-Id: Ide57014f8acd9a1f5701aeaa69dc8d5893bf1662
2025-03-21Merge "DPM/MTE: Fix MTE developer Option when AAPM is on" into main Eran Messeri
2025-03-21Import translations. DO NOT MERGE ANYWHERE Bill Yi
Auto-generated-cl: translation import Change-Id: I4117f544225de1285af723686411d493bade10de
2025-03-21Merge "Return null instead of crashing when user does not exists" into main Miriam Polzer
2025-03-21Merge "Fixed Settings crashes issues in WEP Wi-Fi networks" into main Treehugger Robot
2025-03-20Merge "[Expressive Design] Update color logic in BannerMessage" into main Xinyi Mao
2025-03-20[Settingslib] Support outlined style for SettingsSpinner David Liu
Bug: 394697569 Test: manual Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled Change-Id: I72d8ffbd85bd58c4e5ef1adf3ee041f928983af6
2025-03-20[Settingslib] Add SettingsSpinner item selected highlight David Liu
Bug: 394697765, 396786547 Test: manul Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled Change-Id: I319c254d47ad37ffbad65182daf12fcf4b71883c
2025-03-20[Settingslib] Update SettingsSpinner with expressive styles David Liu
- Support Large and Full-width spinner styles - Update expressive styles Bug: 394697765, 396786547 Test: manul Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled Change-Id: I5ce72d2551c998d56ae996765cb1683f9ca3f39f
2025-03-20Merge "Add Europe/Warsaw to timezone list" into main Treehugger Robot
2025-03-20[SettingsLib] Dynamically update StatusBannerPreference icon tint Wes Okuhara
Prior to this change, the icon tint was only set during initialization based on the icon or icon level. This allows the icon tint to be dynamically updated based on a respective icon level change. Setting the icon level whenthere is no icon defined is a no-op. Bug: 400999418 Test: Manual Flag: EXEMPT bugfix Change-Id: I37d4cf890ecf9152013ac5c53cb60bc55fb26643
2025-03-20Fix button padding for right to left languages in SpaDialog Azhara Assanova
Bug: 404595525 Test: visual Flag: EXEMPT bug fix Change-Id: I01a1cdd68999a36f5669ac74d23dbe76e1c07b69
2025-03-20Return null instead of crashing when user does not exists Miriam Polzer
The checkIfKeyguardFeaturesDisabled function was crashing with a nullptr exception when called on a userId that does not exists. Return null instead. No user means nothing can be disabled. Fix: 386971405 Test: atest \ SettingsLibRoboTests:com.android.settingslib.RestrictedLockUtilsTest Flag: EXEMPT BUG_FIX Change-Id: Ibc04b2faf8c0480d1f1b6bf4c7ee578b5b126d1a
2025-03-20Merge "[Expressive design] update AlertDialog style" into main Edgar Wang
2025-03-20Merge "Fix window type for WEP and Advanced Protection dialogs above ↵ Azhara Assanova
Settings" into main
2025-03-20Merge "[Audiosharing] Remove source for sinks disconnected/unpaired from ↵ Yiyi Shen
Settings" into main
2025-03-20Merge "Add seekbar style" into main Treehugger Robot
2025-03-20Fixed Settings crashes issues in WEP Wi-Fi networks Weng Su
- Use the main thread to launch the Settings dialog Bug: 402158320 Flag: EXEMPT bugfix Test: Manual testing atest com.android.settingslib.wifi.WifiUtilsTest Change-Id: Idf728300d43dd3db60cdafa5ee649beccb0a317e
2025-03-20DPM/MTE: Fix MTE developer Option when AAPM is on Eran Messeri
This change fixes the Memory Tagging Extension developer option Settings to be greyed out if the MTE state is controlled by AAPM. The fix consists of: * A change to the DevicePolicyManagerService to return the MTE policy regardless of the caller identity - as the getMtePolicy metthod does not care which admin has set the MTE policy, just the resolved policy for the device. * A change to RestrictedLockUtilsInternal to return an EnfocredAdmin representing that the MTE policy is managed somehow. Other code in the RestrictedLockUtilsInternal knows how to resolve the right admin from the EnforcedAdmin. To test the fix, the MANAGE_DEVICE_POLICY_MTE permission was added to the shell. It is safe for the shell to have this permission because: * A human can query and modify the state of the Memory Tagging Extension policy via Developer Options. * If the device is managed and the user tries to disable MTE, there is an additional check in the DevicePolicyManagerService that only the device policy client (DPC) can disable MTE. Bug: 402456665 Test: Manual, turn on AAPM with adb commands and observe the toggle in Settings. Test: atest CtsSecurityTestCases:android.security.cts.advancedprotection.MemoryTaggingExtensionTest Test: atest CtsDevicePolicyTestCases:android.devicepolicy.cts.MtePolicyTest Test: atest CtsDevicePolicyTestCases:android.devicepolicy.cts.DeviceManagementCoexistenceTest Flag: EXEMPT bugfix Change-Id: I55ffdec9b7abc29be503d85a7ae2607ba81938de
2025-03-20Add hidden WM API to set external display density ratio. Ebru Kurnaz
Flag: com.android.window.flags.enable_persisting_display_size_for_connected_displays Test: atest DisplayContentTests Test: atest WindowManagerServiceTests Bug: 400418602 NO_IFTTT=Ifttt added with this change, no updates needed. Change-Id: Ic470dddeed0ca7fcdae17f28746f99d1f78254b8
2025-03-20[Expressive Design] Update color logic in BannerMessage mxyyiyi
- Button Color should change if attention level updated. - Flip text color of negative btn under attention level MEDIUM for contrast - Fix some test failure. Bug: 397336535 Bug: 359066481 Test: atest BannerMessagePreferenceTest Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled Change-Id: I9d2a76d2daa427ecb9c0fd2cb80d240fd6941097
2025-03-20[Audiosharing] Remove source for sinks disconnected/unpaired from Settings Yiyi Shen
Test: atest Bug: 404299137 Flag: com.android.settingslib.flags.enable_le_audio_sharing Change-Id: I4c0e5e23ea16676062eff4bf6e618ff7c58afaaf
2025-03-20Merge "[Expressive design] Update PreferenceCategory layout" into main Edgar Wang
2025-03-19Merge "[Battery refactor] Function to get battery information from bluetooth ↵ Ze Li
serve for le audio components." into main
2025-03-19Merge "[Expressive design] Update the background corner radius" into main Treehugger Robot
2025-03-20Add seekbar style Mill Chen
We created a style for seekbar in order to fix contrast ratio. There are three attributes of seekbar being tinted by specific color, including thumb, background and active track. Bug: 317163103 Test: visual verify Flag: EXEMPT bugfix Change-Id: If0f3c48e2cec1874a4937a51d5da336da974f294
2025-03-19Merge "Import translations. DO NOT MERGE ANYWHERE" into main Bill Yi
2025-03-19Add Europe/Warsaw to timezone list Oleg Kibirev
This fixes the immediate P1 bug. It's not clear how current list is chosen and what else should be added, but that's a larger redesign that probably involves moving to two level timezone selection (region and then timezone within region) Bug: 401083965 Flag: NONE resource change Tested: manual through TV Settings Change-Id: I74a5c0ccb2c9c8b774230ea7d562bfbce3566ea2