Commit Graph

57138 Commits

Author SHA1 Message Date
Hani Kazmi
e2bf7d5e03 [AAPM] Open Settings from Dialog in New Task
Test: Presubmit
Test: Manually tested on device
Bug: 404595286
Flag: EXEMPT bugfix
Change-Id: Ib100861a09429f1df7cfc909cb567f45cff44401
2025-03-20 05:57:26 -07:00
Marcelo Arteiro
7ae4e0fa0b Merge "Pending Location information added to Dark Theme" into main 2025-03-20 05:43:17 -07:00
Treehugger Robot
2f63c57042 Merge "Stay on the region selection page after clicking "Cancel"." into main 2025-03-20 03:32:26 -07:00
Marcelo Arteiro
157030dcef Pending Location information added to Dark Theme
Resolved an issue in Settings where sunset/sunrise dark mode failed silently when a location was unavailable. Now, an error dialog is shown, even if location services are enabled, but a specific location is missing.

A footer stating the same issue is now present while the location is pending.

Existing banner that appears when Location is disabled is now being removed once Location is turned on. Previously the UI would refresh only after exiting and returning to the preference view.

Bug: 324548844
Bug: 402025928
Test: atest UiModeManagerServiceTest
Flag: EXEMPT bugfix
Change-Id: I914937185f11a686b453f929728b6329ebd05389
2025-03-20 03:21:45 -07:00
Yiyi Shen
cf5646c92b Merge "[Audiosharing] Refresh preference when onServiceConnected" into main 2025-03-20 03:14:38 -07:00
danielwbhuang
8be2d2ff40 Stay on the region selection page after clicking "Cancel".
Only finish the activity after user has selected a region.

Bug: 403172371
Test: manual
Flag: EXEMPT bugfix
Change-Id: I9eee0728f7a06260249ad1db6d499eeb8c8ea255
2025-03-20 16:41:47 +08:00
Shawn Lin
69829e9351 Merge "Fixed crash in FaceSettings" into main 2025-03-20 01:08:10 -07:00
Yiyi Shen
d09272e607 Merge "[Audiosharing] Avoid dup volume control entries" into main 2025-03-20 01:02:37 -07:00
Haijie Hong
d22895a781 Don't show key missing dialog for exclusively managed device
Test: local tested
Flag: EXEMPT minor fix
Bug: 404890083
Change-Id: I5ec0541b55af81bd3424e3b1af329cecd3a480ad
2025-03-20 00:22:42 -07:00
Shawn Lin
afe39e66e9 Merge "Update mIsFaceEnrollable after face enrollment" into main 2025-03-20 00:05:33 -07:00
Treehugger Robot
cba1fbacd1 Merge "Apply different text style to highlighted homepage titles" into main 2025-03-19 20:35:55 -07:00
Shawn Lin
5d48e5d944 Fixed crash in FaceSettings
Add null check

Bug: 402314712
Test: Enter Face unlock setting page
Flag: EXEMPT bug fix
Change-Id: I07761c251d7544a6ff40d165712dc0f566e684bf
2025-03-20 03:34:47 +00:00
Shawn Lin
d7c403acae Merge "Reland:Launch multiple biometric enrollment when no biometric is enrolled" into main 2025-03-19 20:02:06 -07:00
Treehugger Robot
0a1019cc64 Merge "Only call super.updateState when work profile exists" into main 2025-03-19 16:31:38 -07:00
SongFerng Wang
6b98d239d5 Merge "Using current esim port of active esim slot" into main 2025-03-19 16:07:40 -07:00
Xiaomiao Zhang
76069fe415 Merge "Create data store for safe search preference." into main 2025-03-19 15:40:28 -07:00
Yuri Lin
2034843773 Only call super.updateState when work profile exists
Since the updateState() method is being called regardless of the availability of a work profile, we were trying to get settings for USER_NULL, which was leading to crashes.

Flag: com.android.server.notification.polite_notifications
Fixes: 402317471
Test: manual with existing work profile & without existing work profile
Change-Id: Icddabd9a7575713f42a0f5bd955b65a7e46c7f45
2025-03-19 17:53:12 -04:00
Xiaomiao Zhang
b7de2ba4a5 Create data store for safe search preference.
Test: atest SupervisionSafeSearchPreferenceTest
Test: atest SupervisionWebContentFiltersScreenTest
Test: manually tested with physical device
Flag: android.app.supervision.flags.enable_web_content_filters_screen
Bug: 401568995
Change-Id: Ia9e3f73ac6e9efbe7933dc2958443e9fdb5b4422
2025-03-19 20:59:14 +00:00
Mark Renouf
158549abc1 Merge "Fixes 'capture more' on Settings home page" into main 2025-03-19 13:05:46 -07:00
Treehugger Robot
e2984b4b06 Merge "Change the resource ID of advanced protection help URI" into main 2025-03-19 10:52:36 -07:00
Mark Renouf
f5aa74b0e8 Fixes 'capture more' on Settings home page
This change excludes the contents of 'main_content_scrollable_container'
from scroll capture search.

Explanation: The inner-most child is selected whenever nested scrolling
views are found. This is incorrect for Settings because the inner
RecyclerView isn't actually scrollable (that is, the contents of it are
not scrolled within it, the RecyclerView itself is scrolled by the outer
ScrollView instead). View.canScrollVertically is unfortunately incorrect
for RecyclerView in this case as well.

This change excludes all children of the main ScrollView from the
search. This  ensures the outer ScrollView is chosen and this corrects
the 'capture more' screenshot functionality on the Settings home page.

Bug: 399810823
Test: manual; Open settings, screenshot, capture more
Flag: com.android.settings.flags.extended_screenshots_exclude_nested_scrollables
Change-Id: I3363d70b3649e2a34e541c45ab387d59547b8588
2025-03-19 09:22:30 -07:00
Azhara Assanova
96c6ed59a6 Change the resource ID of advanced protection help URI
Change-Id I3c6d24e3e9a4358ab1adb342dbee8fc56ac16794 added advanced
protection help URI to frameworks/base/core/res/res/values/config.xml,
so this change removes the duplicate resource from Settings and updates
ActionDisabledByAdvancedProtectionDialog to use the framework resource.

Bug: 401233918
Test: manual
Test: atest ActionDisabledByAdvancedProtectionDialog
Flag: EXEMPT bug fix
Change-Id: Ic84909f4c16d3449bd9981be6659987b1963a26a
2025-03-19 16:02:17 +00:00
Azhara Assanova
76b96fbb15 Fix default window type for Advanced Protection dialog
The previous window type FIRST_APPLICATION_WINDOW was incorrect and
could have caused the dialog to be dimmed and TalkBack to not be
focused. The current window type TYPE_APPLICATION fixes these issues by
correctly placing the dialog in the window hierarchy.

Bug: 404595933
Bug: 404439964
Bug: 353531691
Test: visual
Test: checked with TalkBack
Flag: EXEMPT bug fix
Change-Id: I520220c1527868b6fc928eaa35184ba9b0159e06
2025-03-19 07:18:08 -07:00
Haijie Hong
a58a764686 Merge "Scroll to top when opening more settings page" into main 2025-03-19 06:16:02 -07:00
Haijie Hong
7eacf7e6e6 Merge "Update tint of device details icon" into main 2025-03-19 04:42:16 -07:00
Haijie Hong
9ecaf7c2ae Merge "Add toast for bond loss" into main 2025-03-19 04:41:35 -07:00
Zaiyue Xue
bf5ea140f4 Merge "Support phonetype control for Settings Battery database retention time" into main 2025-03-19 04:35:46 -07:00
Haijie Hong
ce73cba979 Scroll to top when opening more settings page
Test: local tested
Flag: EXEMPT minor fix
Bug: 343317785
Change-Id: I5e90e4b1b3bcd5329c6574655ad6a3dee537438c
2025-03-19 04:28:25 -07:00
Haijie Hong
9c67a1003f Merge "Don't disable switch when changing status" into main 2025-03-19 04:27:28 -07:00
Treehugger Robot
6c59681445 Merge "[Satellite] Use satellite data mode for UX visibility" into main 2025-03-19 04:26:21 -07:00
Shawn Lin
97eb57186c Reland:Launch multiple biometric enrollment when no biometric is enrolled
When a user clicks the biometric item in the Device unlock page and no
biometric is enrolled:
- Fingerint clicked: Launch fingerprint enroll then face enroll.
- Face clicked: Launch face enroll then fingerprint enroll.

Also fixed work profile not working issue:
- Use BiometricEnrollActivity.InternalActivity to provide correct userId
  for work profile.
- Use the canAuthenticate() function that take userId as input.

Bug: 370940762
Test: atest FaceSafetySourceTest FingerprintSafetySourceTest
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: I0800c5bb71cc3813e0336ed65898d099857175ef
2025-03-19 11:06:37 +00:00
Treehugger Robot
65a0e43a43 Merge "Fix force close in WiFi API test code" into main am: 4f52f40cf9 am: 8871bd5bb6
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3534241

Change-Id: I016283e58365cffe98b9746edb0a1a8b98d16533
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-19 04:04:54 -07:00
songferngwang
62163de585 Using current esim port of active esim slot
If there is no active esim and the active esim slot, then enabling esim
uses the active esim slot's port.

Bug: 394758842
Test: manual test
Flag: EXEMPT bugfix

Change-Id: Icd478a92662584d433e16b129da98204e9e2f5f3
2025-03-19 10:42:42 +00:00
Jason Chiu
6060c76b88 Apply different text style to highlighted homepage titles
Bug: 396946176
Test: visual
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: Idf243d4f3f41070537338d9898e3ff91a7ee788a
2025-03-19 03:15:05 -07:00
Treehugger Robot
4f52f40cf9 Merge "Fix force close in WiFi API test code" into main 2025-03-19 03:04:14 -07:00
David Jacobo
076ed59b9b Merge "settings: Set explicit intent for legal info" into main 2025-03-19 02:55:53 -07:00
Zaiyue Xue
08a3aa7f33 Support phonetype control for Settings Battery database retention time
Bug: 404740486
Fix: 404740486
Test: atest
Flag: EXEMPT bug fix
Change-Id: Ifc9032e19a5b26e307d1426ea5c07de84e1613f4
2025-03-19 17:53:41 +08:00
Haijie Hong
1d2b0b9aa0 Don't disable switch when changing status
BUG: 404423669
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: Ie2d48b4f0bbb224e62d2746d260b1026022ebf01
2025-03-19 02:47:42 -07:00
tom hsu
dc788ed9d1 [Satellite] Use satellite data mode for UX visibility
- Use SatelliteManager#getSatelliteDataSupportMode() to check data
   restricted or not.

Flag: EXEMPT bug fix
Bug: b/401043401
Test: atest pass
Test: Manual test
Change-Id: I6f3e25610717eca0f6e871a9e1158422659058ea
2025-03-19 09:45:52 +00:00
Yiyi Shen
049835b568 [Audiosharing] Avoid dup volume control entries
Test: atest
Bug: 402384034
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I1c975a39106d50746c692586bf682301dd299f40
2025-03-19 17:45:33 +08:00
Treehugger Robot
339367886d Merge "Settings: Start search result deep link in same task" into main 2025-03-19 01:02:31 -07:00
Yuanru Qian
0a4000d723 Merge "Update the audio sharing QR code logic to enable OEMs providing customized QR code image" into main 2025-03-19 00:24:22 -07:00
Haijie Hong
6c608b7e8a Merge "Show bond loss UI in device details" into main 2025-03-19 00:22:21 -07:00
Haijie Hong
2b0aee3a33 Merge "Update talkback when device is disconnected" into main 2025-03-19 00:22:10 -07:00
Haijie Hong
d6f7270748 Add toast for bond loss
Test: local tested, haven't find good way to add unit test for reflection.
Flag: EXEMPT minor fix
Bug: 380801155
Change-Id: Ia0d05ef933b0ae24077f31e4ff46c9948b99628a
2025-03-18 23:20:20 -07:00
tom hsu
9896b590d3 [Satellite] Change footer format in satellite setting
- Use controller base design instead of current

Flag: EXEMPT bug fix
Bug: b/401648126
Fix: b/402037025
Test: Manual test
Test: atest pass
Change-Id: Icb3fd6a1c5340e554593fc57cb238bf98d3ed0e3
2025-03-18 22:59:38 -07:00
Haijie Hong
a4d68b6ac2 Update tint of device details icon
Test: local tested
Flag: EXEMPT minor fix
Bug: 343317785
Change-Id: I33bbc1aa5ea920fc9799ab489d59609aecf4365a
2025-03-18 22:07:52 -07:00
Haijie Hong
ab32535297 Update talkback when device is disconnected
Test: local tested
Flag: EXEMPT minor fix
Bug: 404422637
Change-Id: If69b728d07f13d557ba2318af9eaf794311cc683
2025-03-19 12:45:45 +08:00
David Jacobo
617cc51bdb settings: Set explicit intent for legal info
This CL sets the full component for the Settings intent that opens
"Legal information->Third-party...".

Bug: 300111126
Test: make -j64 SettingsRoboTests
Test: create ika environment, manually open legal info.
Flag: EXEMPT bug fix

Change-Id: I3169620c0f2ff78a39b456597384a9738bc38a9f
2025-03-18 21:13:13 -07:00
Wes Okuhara
cf2bcd7f1a Settings: Start search result deep link in same task
This fixes a bug where the deep link initiated from a search result
would open the results page in a separate window. The root cause was the
inclusion of the FLAG_ACTIVITY_NEW_TASK intent flag.

Bug: 381127948
Test: atest SettingsSpaUnitTests:com.android.settings.activityembedding
Test: atest CtsSettingsTestCases:SettingsMultiPaneDeepLinkTest
Test: Manually verify UI
Flag: com.android.settings.flags.settings_search_result_deep_link_in_same_task
Change-Id: I91f9e5096ad02bd87e43bae03a2b3e69256be651
2025-03-18 21:12:08 -07:00