Commit Graph

6791 Commits

Author SHA1 Message Date
Antoan Angelov
187f33a0a3 Revert "Revert "Revert "Revert "Launch admin policies settings screen if not possible to""
This reverts commit f1564bc866.

Reason for revert: We now know how to properly fix this

Fixes: 191727929

Change-Id: I6380796dd987b097fe6d9ad36123676b9861ba3a
2021-07-27 13:00:49 +00:00
TreeHugger Robot
9f54adfa3f Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-24 02:19:01 +00:00
Bill Yi
a5b632c8ba Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifdce818bc1f9dd3eff34502b0391fbdb48dea25f
2021-07-23 23:22:46 +00:00
Sergey Volnov
f1564bc866 Revert "Revert "Revert "Launch admin policies settings screen if not possible to"
This reverts commit c3b5583cb0.

Reason for revert: Investigating b/194395139

Change-Id: I4700271436dd21fc08f093ee5f9964c855de600a
2021-07-22 16:29:25 +00:00
arangelov
c3b5583cb0 Revert "Revert "Launch admin policies settings screen if not possible to
launch help page""

This reverts commit c2d0388962.

Reason for revert: Reverting the revert and avoiding the TH failure

Fixes: 191727929
Change-Id: I741f35aab78ba32f69f204dbdf4ebcf632bd741c
2021-07-22 12:05:55 +01:00
Peter_Liang
3ff7e05c3a Add the failure listener into the lottie animation view of
IllustrationPreference.

Root cause:
The component is unable to parse composition if the lottie file format is not correct.

Solution:
Add the failure listener was provided from lottie animation view to avoid throwing the exception to crash.

Bug: 194223160
Test: manual test in the aosp ROM by forrest build
Change-Id: I8e515d244f904921b9d6f3e6bdf439550bc562a9
2021-07-22 16:08:42 +08:00
Tatiana Webb
c2d0388962 Revert "Launch admin policies settings screen if not possible to launch help page"
This reverts commit 75077a17a4.

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_sc-dev&target=errorprone&lkgb=7566424&lkbb=7566443&fkbb=7566443, bug b/194207719

Change-Id: I40603378f3e6f125639169176e21680980e2a93e
2021-07-20 18:58:37 +00:00
arangelov
75077a17a4 Launch admin policies settings screen if not possible to launch help page
Fixes: 191727929
Test: manually performed policy transparency BYOD test
Test: manually performed policy transparency DO test
Test: manually performed policy transparency DO on
managed user test
Test: atest ActionDisabledLearnMoreButtonLauncherTest

Change-Id: Ief0cc2fab98b28f0836b3dee79e91ea365d37274
2021-07-20 11:55:06 +00:00
TreeHugger Robot
e850823da0 Merge "Use '!' instead of 'x' in signal drawable" into sc-dev 2021-07-16 15:30:34 +00:00
TreeHugger Robot
0d57ba415a Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-15 19:00:41 +00:00
Evan Laird
6a2d17d453 Use '!' instead of 'x' in signal drawable
Update the not-connected iconography to use an exclamation mark instead
of the 'x'.

Test: manual; adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e level -2 -e datatype lte
Fixes: 175335798
Change-Id: Iff4b7d9e7fe113c50b92a45cace3a742f7af42f6
2021-07-15 11:16:54 -07:00
Bill Yi
b81c6e87c2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I884f8b1c2f71832f2a658778d13a4cfdf66f139d
2021-07-14 21:54:42 +00:00
Mill Chen
4fdb7c9f26 Support customize layout in CollapsingToolbarBaseActivity
We introduced the collapsing toolbar on S. To enable this feature needs
to correspondingly adjust the theme that the activity uses. However
these changes might cause some mainline module apps get crashed when
running on R. A customize layout is allowed to use for some cases that
need to roll back to the layout used in R.

Bug: 192395187
Test: visual verified
Change-Id: I9b409842198a2d52a6440cdd9ad68268293681f2
2021-07-14 21:47:49 +08:00
Bill Yi
3340bdddba Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I994bf35f169399cee16a0fa853a26538d5b9ce4b
2021-07-13 06:45:06 +00:00
Bill Yi
564e82d4d5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id75bb323396f645cf2eae31ba3ef2c01e5653c01
2021-07-10 23:03:56 +00:00
Bill Yi
980807a40a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I307bbf6400f26475ceb324c5c022e4adaed2946d
2021-07-09 06:19:49 +00:00
Hai Zhang
ab3f51955b Merge "Fix CollapsingToolbarBaseFragment crash on R." into sc-dev 2021-07-08 03:48:27 +00:00
Quang Luong
ec668aae67 Merge "Show "Unavailable" when factory Wi-Fi MAC address is default" into sc-dev 2021-07-08 03:42:19 +00:00
Hai Zhang
24dbdd58e1 Fix CollapsingToolbarBaseFragment crash on R.
The view with R.id.content_parent is a LinearLayout in the R layout
file, and will cause a ClassCastException on R.

Bug: 182960931
Bug: 183757373
Test: presubmit
Change-Id: I15bf8f14ac1e6b0986b040e25a2b5f57735b62a8
2021-07-07 23:02:25 +00:00
Tomoharu Hatano
bbc1cd87e1 Show "Unavailable" when factory Wi-Fi MAC address is default
Show "Unavailable" when factory Wi-Fi MAC address is default to align
with WifiDetailPreferenceController.

Bug: 192935640
Test: build
Change-Id: I38728410b11c0db1d922f29fc68fec6af75affe4
2021-07-07 08:33:03 -07:00
TreeHugger Robot
1c318f60be Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-07-03 03:48:18 +00:00
Bill Yi
34538a99b8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I00c92bad34a6f6dbfe8118af2c6b5045c333eebd
2021-07-02 23:36:44 +00:00
Ying Xu
d003be9369 Merge "Disable W+ in QS." into sc-dev 2021-07-02 21:25:23 +00:00
Mill Chen
e665e27525 Merge "Update dynamic height adjusting" into sc-dev 2021-07-02 18:48:50 +00:00
Cassie
e1ebcd303d Disable W+ in QS.
Bug: 191903788
Test: manual
Change-Id: Id965fb6dc588a40ddbf8c594b3eeae1ef82aa10c
2021-07-02 09:26:09 -07:00
Mill Chen
4bc5bdeb78 Update dynamic height adjusting
The current dynamic height adjusting workaround might cause that a
flicker problem happens in the collapsing toolbar and it might cause
that the collapsing toolbar has different background colors in some
setting pages. The new Material library has already supported the
dynamic height adjusting for multi-line titles, so we will use the new
mechanism instead.

Fix: 191038325
Fix: 189896657
Test: visual verified
1) Navigate to permission pages
2) Observe the title and check if it has different background color and
is overlapping with the back arrow

Change-Id: Ib928ab628cb7838460264f704bebf5c7a2aa9a47
2021-07-02 21:56:23 +08:00
Stanley Wang
444ddc6c90 Refine the IllustrationPreference.
- If we set a fixed height for the illustration and automatically
  scale the width of the illustration, the size of the background
  layer will be different from the size of the illustration. To
  fix this problem, we must make the background layer the same
  size as the illustration and automatically scale.
- Update the size of background to 412x300.
- Update the layout of frame's child views to wrap_content.
- Update the padding of frame to 16dp.

Bug: 190810977
Test: robotest and see the UI

Change-Id: I0422f91c24860154fea7c766d5670c314d62bebb
2021-07-02 16:50:39 +08:00
Chen Xu
5e20541fc9 Merge "Apply new settings widget lib for the cbr main feature switch" into sc-dev 2021-07-01 18:02:01 +00:00
TreeHugger Robot
1f26477a0b Merge "Shows ripple inside SettingsSpinner and its dropdown items" into sc-dev 2021-07-01 14:51:27 +00:00
TreeHugger Robot
bf929bbd3b Merge "Fix Talkback say twice in MainSwitch" into sc-dev 2021-07-01 13:47:10 +00:00
Sunny Shao
429d7624fb Fix Talkback say twice in MainSwitch
- Remove the duplicated setting in the ContentDescription.

Bug: 191735947
Test: manual test
Test: make RunSettingsLibRoboTests -j ROBOTEST_FILTER=com.android.settingslib.widget
Change-Id: If28d0002dd1087173623b654c67bc7597d721a85
2021-07-01 15:17:13 +08:00
Chen Xu
4608a7a448 Apply new settings widget lib for the cbr main feature switch
apply the new settings widget lib for the emergency alert main feature
switch.

Bug: 183574149
Test: Manual
Change-Id: Idfdb2696056faf3dbe4ccb0061f2b61c33e94292
2021-07-01 14:37:56 +08:00
TreeHugger Robot
e6168d76aa Merge "Add null checker to AppBarLayout" into sc-dev 2021-07-01 05:58:08 +00:00
Mill Chen
5b58e6d2ae Add null checker to AppBarLayout
Fix: 191746368
Test: run atest CellBroadcastReceiverOemUnitTests on R
Change-Id: Id8130466fd282b68137ee8d848041f8607bf80a4
2021-07-01 12:24:57 +08:00
Stanley Wang
d8d35066c1 Merge "Fix the problem that the title of MainsSitchPreference will be truncated." into sc-dev 2021-06-30 06:32:43 +00:00
Stanley Wang
85c9c3e6ad Fix the problem that the title of MainsSitchPreference will
be truncated.

- Remove the maxLines=2 attribute.

Fix: 189921147
Test: robotest and see the UI
Change-Id: Ia62fd2f5ed1e76c9f1149e842bdae308e83fb03b
2021-06-30 14:10:40 +08:00
Kyunglyul Hyun
88146b483b Merge "Hide non transferable routes" into sc-dev 2021-06-30 05:06:54 +00:00
PETER LIANG
dc68f8f303 Merge "Extend to support the static and animated format image for IllustrationPreference." into sc-dev 2021-06-30 00:38:20 +00:00
Edgar Wang
4e395b9821 Merge "Update Switch color to improve accessibility" into sc-dev 2021-06-29 20:12:45 +00:00
TreeHugger Robot
a8fd69468a Merge "Start the web help page in the correct user" into sc-dev 2021-06-29 18:55:24 +00:00
Kevin Chyn
1798ddbcd6 Merge "Update intent for requesting parental consent" into sc-dev 2021-06-29 18:42:07 +00:00
Edgar Wang
f8aa253748 Update Switch color to improve accessibility
Bug: 189386136
Test: visual
Change-Id: I394b42d894efb5733c224ab35ed3a11fe9f0cad8
2021-06-29 17:58:18 +00:00
arangelov
c7c113d4df Start the web help page in the correct user
Test: ManagedDeviceActionDisabledByAdminControllerTest
Test: manually observed the policy transparency dialog
with launching the admin policies screen
Test: manually observed the policy transparency dialog
with launching the web help page
Fixes: 191727929

Change-Id: I03aaf2ddbaff3ea515404b257d1590c08ae3ab65
2021-06-29 14:56:54 +01:00
Peter_Liang
a6635f42e9 Extend to support the static and animated format image for IllustrationPreference.
Actions:
1) Migrate and deprecate the widget AnimatedImagePreference
into SettingsLib IllustrationPreference. It would extend
to support the static (e.g., svg, png), animated (e.g., gif)
and lottie format image.
2) Create setImageUri() for IllustrationPreference.
3) Create setImageDrawable() for IllustrationPreference.

Bug: 190585192
Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=com.android.settingslib.widget.IllustrationPreferenceTest
Change-Id: Iad5bc6af78cca4d57cb56eec104ef2384da7be9f
2021-06-29 15:14:42 +08:00
Stanley Wang
a46e16bdf1 Merge "Fix the problem that the unknown item will be announced when using Switch Access." into sc-dev 2021-06-29 07:01:15 +00:00
Arc Wang
8814a0d560 Shows ripple inside SettingsSpinner and its dropdown items
Bug: 187142293
Test: manual visual
Change-Id: I27190bf619bc3c35bee4c17f3e217c7d16cd7799
2021-06-29 09:43:28 +08:00
Kevin Chyn
a6f387423f Update intent for requesting parental consent
Bug: 188847063
Test: adb shell settings put secure android.hardware.biometrics.ParentalControlsUtilsInternal.always_require_consent 1
      settings > security > fingerprint
      press positive button
      adb logcat -b events (intent is sent)
Change-Id: I72ab71d0dd53f66387e5c2ade510ef19c2b7f4e6
2021-06-28 15:42:04 -07:00
TreeHugger Robot
f8d2743dd5 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-06-28 19:47:40 +00:00
Bill Yi
4f3b625872 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iab58c6cbc1a6daaa69846f7bc8a8e6cc7f0f2d65
2021-06-28 17:41:56 +00:00
Mill Chen
f639c4ebe4 Merge "Add line spacing multiplier for CollapsingToolbarLayout" into sc-dev 2021-06-28 17:34:02 +00:00