Commit Graph

98597 Commits

Author SHA1 Message Date
Mill Chen
28bc1c04b9 Fix the background color of CollapsingToolbarLayout
The wrong background color of CollapsingToolbarLayout appears in some
pages like "All apps" page or "Password and accounts" page. This symptom
can be observed in these pages when the work profile is enabled and the
line count of title is 1.

This issue is caused by updating the title of the page many times. In
these pages that have the tab view, the structure of the page differs
from a general setting page. The title of the page is coming from
BaseActivity, ProfileSelectFragment, PersonalFragment and WorkFragment,
in which the page that has the issue has an empty string from
ProfileSelectFragment. That is causing the CollapsingTollbarLayout has
the different line count during the process of setting the title.

Since the pages that have the tab view are different from the general
pages in Settings, the title should be set separately for those pages.
Adding a method to get the title resource ID so the page extending from
ProfileSelectFragment can set its title.

Bug: 192914660
Test: visual test and manual test
1) Enable work profile
2) Navigate to All apps page
3) The page should have the correct background color in the
CollapsingToolbarLayout

Change-Id: I52ef9729f3cad56161ea3d87ba25429dfcdb26ef
2021-12-01 18:44:42 +08:00
TreeHugger Robot
ecf408bb24 Merge "Fix talkback issue on Subsettings" into sc-v2-dev am: 9928e585a6 am: ed0b68a71b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16324223

Change-Id: Ia926bc8909ffcda7bb9cbbaa000cda296558b037
2021-11-24 10:18:03 +00:00
TreeHugger Robot
ed0b68a71b Merge "Fix talkback issue on Subsettings" into sc-v2-dev am: 9928e585a6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16324223

Change-Id: I499c652bcad2b4969e7896f5746012e4b2466e04
2021-11-24 10:06:52 +00:00
TreeHugger Robot
9928e585a6 Merge "Fix talkback issue on Subsettings" into sc-v2-dev 2021-11-24 09:54:34 +00:00
Bonian Chen
3f3c199dff Merge "[Settings] Remove the capital of 2nd wording" 2021-11-24 05:02:34 +00:00
Jason Chang
2c66e6429e Merge "(2) Update new intent action ACTION_ONE_HANDED_SETTINGS in Settings AndroidManifest to support long-pressed action for One-handed mode tile" 2021-11-24 00:24:14 +00:00
TreeHugger Robot
e4b9992d8a Merge "Revert "Receiving a broadcast message when home screen is ready."" 2021-11-23 15:31:46 +00:00
Stefano Galarraga
518062a11d Revert "Receiving a broadcast message when home screen is ready."
Revert submission 16169565-b/199120420

Reason for revert: Breaking Build (b/207471332)
Reverted Changes:
Ibc101a249:Receiving a broadcast message when home screen is ...
I18628552a:Sending broadcast message when home screen is read...

Change-Id: Ie985295c7a643c6243f8025eaf007a882b651546
2021-11-23 13:25:21 +00:00
TreeHugger Robot
74a797efd8 Merge "Fix NPE on UsbManager in w/o usb devices" 2021-11-23 12:38:46 +00:00
Weng Su
e8cdb83f08 Merge "SoftAp: Use toString() API in place of toBinaryString for indexes" 2021-11-23 11:51:23 +00:00
TreeHugger Robot
56106dc16f Merge "Fix abnormal behavior on search page" into sc-v2-dev am: ee18babe99 am: d61e61e630
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16284151

Change-Id: I41955dcfe3f4886776d958233c078c5d11a9558f
2021-11-23 10:07:52 +00:00
TreeHugger Robot
d61e61e630 Merge "Fix abnormal behavior on search page" into sc-v2-dev am: ee18babe99
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16284151

Change-Id: I19a8fb6310cc3399291fe38f6026d1b751390e24
2021-11-23 09:51:44 +00:00
Jason Chang
cffaef122b (2) Update new intent action ACTION_ONE_HANDED_SETTINGS in Settings
AndroidManifest to support long-pressed action for One-handed mode
tile

Update new intent action ACTION_ONE_HANDED_SETTINGS in Settings
AndroidManifest for Settings$OneHandedSettingsActivity.

Bug: 201743873
Bug: 202132480
Bug: 207381742

Test: manually test long-pressed on One-handed mode QS tile
Change-Id: Id3882c62b6531a2a8c03378025cbda03efbb8c7c
2021-11-23 17:48:55 +08:00
TreeHugger Robot
ee18babe99 Merge "Fix abnormal behavior on search page" into sc-v2-dev 2021-11-23 09:38:20 +00:00
Jernej Virag
a6f29f4db8 Merge "Add animation graphic to Long Press Power settings screen." into sc-v2-dev am: 6e82d4019d am: 266663a89b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16272558

Change-Id: I70b85163ea4f8534f282933de2d831ae1cb740f7
2021-11-23 09:19:01 +00:00
Hugh Chen
f5a236e0e8 Fix NPE on UsbManager in w/o usb devices
Bug: 206987614
Test: make -j64 RunSettingsRoboTests
Change-Id: I9ed4c2e803f3e7018518380667658ca0015f31a7
2021-11-23 09:11:22 +00:00
Jernej Virag
266663a89b Merge "Add animation graphic to Long Press Power settings screen." into sc-v2-dev am: 6e82d4019d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16272558

Change-Id: I738b7a2b67125d11855261ef6f50d95ce68ce876
2021-11-23 08:52:50 +00:00
Raj Garg
b2f87d2dc1 Merge "Receiving a broadcast message when home screen is ready." 2021-11-23 08:51:46 +00:00
Jernej Virag
6e82d4019d Merge "Add animation graphic to Long Press Power settings screen." into sc-v2-dev 2021-11-23 08:35:38 +00:00
Tsung-Mao Fang
0e03b12d60 Fix abnormal behavior on search page
Prior to this cl, if user opens settings app
in single-pane first and navigates to
the search page, then rotate the device,
user observed the search page was still shown
with full screen.

Because we didn't register correct split rule,
it causes the abormal behavior on two-pane mode.
In order to register correct rule,  we also need
to assign correct component name while opening the
search page.

Fix: 206896763
Test: Rebuilt apk and verify the behavior
Change-Id: I7343467aa716d71da63f2ad0a034dc6c1b7fd415
2021-11-23 16:32:32 +08:00
Yi-Ling Chuang
4d3c51e434 Make fingerprint registration flow full screen am: 488211c752 am: b509b976ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16324224

Change-Id: Iba61aad9fa9483cd43a98240f3933783592998c6
2021-11-23 07:23:41 +00:00
Yi-Ling Chuang
b509b976ea Make fingerprint registration flow full screen am: 488211c752
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16324224

Change-Id: I777ae290ba96ff00da5d2b0e32a7a28a676dc692
2021-11-23 07:10:52 +00:00
Yi-Ling Chuang
488211c752 Make fingerprint registration flow full screen
Since the fingerprint registration sometimes has a hardware dependency,
to bring a better UX, make the flow full screen on large screen devices.

Bug: 197717071
Test: Try to register a new fingerprint and see the pages are full
screen.

Change-Id: I5dcb720a8b6a58bd9fc67ecae35f730c20a2c4d3
2021-11-23 11:39:43 +08:00
Tsung-Mao Fang
e260ebe157 Fix talkback issue on Subsettings
Set window title for activity, so it won't announce
"Settings" again.

Test: Run the talkback and do not observe issue
Fix: 200749911
Change-Id: Ied973916bdd43562424b97eadea2b3a413c712ec
2021-11-23 11:35:09 +08:00
Jack Yu
a88ab65024 Merge "NFC support in work profile" am: c2647199ce am: 79675e89f2 am: 3ccf7e29f8 am: 9a0ab00ac4
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1856215

Change-Id: Iba1aa937305510540c04468966e62d7d3c5c10f9
2021-11-22 11:34:56 +00:00
Jack Yu
9a0ab00ac4 Merge "NFC support in work profile" am: c2647199ce am: 79675e89f2 am: 3ccf7e29f8
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1856215

Change-Id: Ib97dd1b197a362258552a45d7d9b40565da96cb5
2021-11-22 11:23:29 +00:00
Jack Yu
3ccf7e29f8 Merge "NFC support in work profile" am: c2647199ce am: 79675e89f2
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1856215

Change-Id: I6526b8a3f83c72870a93777d37242f1fb191568f
2021-11-22 11:12:20 +00:00
Jack Yu
79675e89f2 Merge "NFC support in work profile" am: c2647199ce
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1856215

Change-Id: Iac30f77fd5d732bb3b50fc531600fed02d477919
2021-11-22 11:00:16 +00:00
Jack Yu
c2647199ce Merge "NFC support in work profile" 2021-11-22 10:45:44 +00:00
SongFerng Wang
af10ccea9b Merge "[MEP] eSIM deprecated API Refactoring" 2021-11-22 06:53:38 +00:00
Jason Hsu
db92e640b2 Merge "Remove the 'new' word for accessibility gesture tutorial dialog" into sc-v2-dev am: 37ec371fb9 am: 821a439085
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16302388

Change-Id: Ie429b8be9e7eec77389c7c25a4b0300ce88bc69f
2021-11-22 04:22:40 +00:00
Jason Hsu
821a439085 Merge "Remove the 'new' word for accessibility gesture tutorial dialog" into sc-v2-dev am: 37ec371fb9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16302388

Change-Id: I382f694fa9c17cee63ce5da9d68fffedfc3bcea3
2021-11-22 04:11:32 +00:00
SongFerngWang
73f1633973 [MEP] eSIM deprecated API Refactoring
The telephony APIs were changed, the Settings needs the refactoring.

Bug: 206801604
Test: build pass.
atest QuerySimSlotIndexTest (PASS)
atest SelectableSubscriptionsTest (PASS)

Change-Id: Ic3244333b7d3750b88ecb3dbc5d7036da50b9d4d
2021-11-22 12:03:46 +08:00
Jason Hsu
37ec371fb9 Merge "Remove the 'new' word for accessibility gesture tutorial dialog" into sc-v2-dev 2021-11-22 03:57:40 +00:00
TreeHugger Robot
ddb2a57d7a Merge "Redesign homepage layout for two-pane mode." into sc-v2-dev am: 4e78e0923f am: 1e160f1799
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16263227

Change-Id: Ie73b68cce81c56a39be87c0da665247bd26d1da1
2021-11-22 02:52:51 +00:00
TreeHugger Robot
1e160f1799 Merge "Redesign homepage layout for two-pane mode." into sc-v2-dev am: 4e78e0923f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16263227

Change-Id: I8758e0687986f5ea7ee4afa2a87e4add947fb07d
2021-11-22 02:41:09 +00:00
TreeHugger Robot
4e78e0923f Merge "Redesign homepage layout for two-pane mode." into sc-v2-dev 2021-11-22 02:28:27 +00:00
Weng Su
5c00d3c074 SoftAp: Use toString() API in place of toBinaryString for indexes
Security option index values are currently converted using
toBinaryString() which converts indexes to binary String. Thus
index values doesn't match the expected Security config values in
SoftApConfiguration.

This commit uses toString() API to avoid index mismatch.

Bug: 197497991
Test: manual test
atest -c WifiTetherSecurityPreferenceControllerTest

Change-Id: I43d236d071a8141845f312c63b1a693fde254358
2021-11-19 23:03:32 +08:00
TreeHugger Robot
0b911cf91c Merge "Fix ACTION_ONE_HANDED_SETTINGS breaks CTS IntentTest" 2021-11-19 09:53:15 +00:00
jasonwshsu
7259d14324 Remove the 'new' word for accessibility gesture tutorial dialog
Root Cause: We merge back accessibility gesture feature into sc-v2, but
the tutorial dialog is still the original content.

Solution: Since it is not the new feature anymore, we just want to
introduce the feature, so remove the 'new' word.

Bug: 204850690
Test: manual test
Change-Id: I38aff0cee6779153066e414e654611fa83d0a533
2021-11-19 17:06:59 +08:00
Bill Lin
4d0cc7a1e3 Fix ACTION_ONE_HANDED_SETTINGS breaks CTS IntentTest
The CTS test will check new added intent is expected or not
android.signature.cts.intent.IntentTest#shouldNotFindUnexpectedIntents

If the new added intent should belong to allow list,
we should add it into
cts/tests/signature/intent-check/DynamicConfig.xml

However, in One handed mode case, I think it's make
sense to define in settings provider
frameworks/base/core/java/android/provider/Settings.java

Test: atest android.signature.cts.intent.IntentTest
Fixes: 206824091
Fixes: 206989400
Change-Id: Ic32a65ee113df603a0adbfa3e52f1a48386ad899
2021-11-19 15:43:55 +08:00
Bonian Chen
8bb198a7d4 [Settings] Remove the capital of 2nd wording
2nd wording should avoid from capital.

Bug: 191525963
Test: local
Change-Id: I55b188df04ac0a88062a24492f44534a7d61a05b
2021-11-19 13:17:49 +08:00
Xin Li
128d733d18 [automerger skipped] Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918 am: bf45599d43 -s ours am: 69e79704e3 -s ours am: 3332b73738 -s ours
am skip reason: Merged-In I9ac05f5da437030e1b5db082ddaf7959f82acccd with SHA-1 d3f9214763 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16279041

Change-Id: I3077fe21b6acaffb2ff47b4fb1b10d2bea6b1af9
2021-11-18 22:37:53 +00:00
Xin Li
3332b73738 [automerger skipped] Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918 am: bf45599d43 -s ours am: 69e79704e3 -s ours
am skip reason: Merged-In I9ac05f5da437030e1b5db082ddaf7959f82acccd with SHA-1 d3f9214763 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16279041

Change-Id: I7d4b9af134809d835f1e82cb7c3e26dd1e59eb6c
2021-11-18 22:25:14 +00:00
Kevin Han
d4f722639b Merge "Unhibernate an app when a user exempts it" into sc-v2-dev am: 83a8b76ec2 am: 6dc2c76da0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16286576

Change-Id: I205baa98e5f7363fbd9b301e35ecff7ca9a5ea31
2021-11-18 22:10:11 +00:00
Xin Li
69e79704e3 [automerger skipped] Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918 am: bf45599d43 -s ours
am skip reason: Merged-In I9ac05f5da437030e1b5db082ddaf7959f82acccd with SHA-1 d3f9214763 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16279041

Change-Id: Ibb132379ab32739f0c9bdc29ded3159775eb884e
2021-11-18 22:00:58 +00:00
Kevin Han
6dc2c76da0 Merge "Unhibernate an app when a user exempts it" into sc-v2-dev am: 83a8b76ec2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16286576

Change-Id: Icacd93b1f5b0cfe950dd4e4ccc0f8081ad1d58c3
2021-11-18 21:58:23 +00:00
Kevin Han
83a8b76ec2 Merge "Unhibernate an app when a user exempts it" into sc-v2-dev 2021-11-18 21:37:46 +00:00
TreeHugger Robot
f5571f3cf2 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: ebd2e1f662 -s ours am: 9adb10d6fc -s ours am: 03b049e8cd -s ours am: 3af8d0fdf4 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16294832

Change-Id: I4efa9937ddd9a741baff64e46de112b5e46b361c
2021-11-18 20:34:55 +00:00
TreeHugger Robot
533f5cbf3d Merge changes from topic "presubmit-am-54d98b71e97148f688d58b0d364066e1" into sc-qpr1-dev am: 6cae0edae1 am: 20a56f067a am: 1c1cca3fa8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16294832

Change-Id: I1854e8d0af7e0a906c63ec458ee4d3d8088f9b8c
2021-11-18 20:34:12 +00:00