Commit Graph

22209 Commits

Author SHA1 Message Date
Mill Chen
7b163e2566 Remove redundant toolbar from CollapsingToolbarLayout
The new material library has been updated to be able to support
android.widget.Toolbar, so the redundant toolbar has to be removed.

Bug: 176882938
Test: visual verified
Change-Id: Ibada6b9d315c14d79e9f9f8015cbb5e00fbeea38
2021-01-15 14:43:30 +08:00
Ben Chung
b6e03f21b9 Add audio adjustment fragment in a11y settings
Accessibility settings audio and on-screen text category restructure,
add audio adjustment fragment for related accessibility services.

Bug: 174829936
Test: atest AudioAdjustmentFragmentTest, atest AccessibilitySettingsTest
Change-Id: I8b4397d042a0e7ce1242f95319a6a25cc45f38bb
2021-01-15 06:20:18 +00:00
TreeHugger Robot
6987b78782 Merge "Redirect users from Search to Settings with transition." 2021-01-15 06:12:49 +00:00
TreeHugger Robot
685be3a19a Merge "Rearrange Sound page." 2021-01-15 05:15:54 +00:00
Yanting Yang
6ee00431e7 Merge "Move preferences to Notification page" 2021-01-15 04:55:32 +00:00
Yi-Ling Chuang
2eba9955a7 Rearrange Sound page.
- Reorder the items.
- Remove dividers.
- Expose items in Advanced.

Bug: 174964721
Test: View Sound page.
Change-Id: I7a1b52af50a35a6afebfbce312c352bc1b7b456e
2021-01-15 11:43:47 +08:00
Stanley Wang
6a824b3535 Merge "Use SettingsLib's MainSwitchBar to replace SwitchBar in Settings." 2021-01-15 02:14:52 +00:00
Yanting Yang
298991c498 Move preferences to Notification page
Based on the Android S design,
- Fork configure_notification_settings_v2 for dev.
- Move "Conversations" from Apps to Notification above "Bubbles".
- Move "Wireless emergency alerts" from Apps to Notifications.

Bug: 174964405
Test: robotest & visual with turning on/off silky home

Change-Id: Ib8e19956ed7717924423eb632d4546314a34d549
2021-01-15 00:28:39 +08:00
Stanley Wang
b87ddba6cd Use SettingsLib's MainSwitchBar to replace SwitchBar in Settings.
To log Settings metrics, the MainSwitch extends MainSwitchBar and
replace the SwitchBar in SettingsActivity.

Bug: 175181773
Test: Run robotest and apply the widget in Settings and see the ui

Change-Id: I3add3702e9058ad9192b5172c7cf0e2ccfb55a70
2021-01-14 22:48:31 +08:00
Zoey Chen
5d34370e2f Merge "[Provider Model] Update the icon's path" 2021-01-14 13:13:41 +00:00
Yi-Ling Chuang
2af2d0bf39 Redirect users from Search to Settings with transition.
Currently there is no transition while redirecting users from Settings
Search result to Settings. This CL gets Shared X-Axis transition applied
to make a better visual experience.

Bug: 177480699
Test: Click on a search result and see the transition.
Change-Id: Iad9b0c1168a939582e2648bc023c1321f9ec8049
2021-01-14 19:07:18 +08:00
Zoey Chen
a9d3a5ee36 [Provider Model] Update the icon's path
Screenshot: https://screenshot.googleplex.com/6GSkuoDG3Yr4BAS.png

Bug: 172053880
Test: manual
Change-Id: I82c21e274a8e2dd617430c1b6402d4a0b7ed373f
2021-01-14 10:52:23 +00:00
Mill Chen
02811e52bd Visual updated for CollapsingToolbarLayout
- Tweak the margin for expanded title
- Increase the height of content scrim
- Enlarge the font size for expanded title

Bug: 177191754
Test: visual verified
Change-Id: I2463aa45cd60de1333b6433310f9bf69f090c958
2021-01-14 15:11:50 +08:00
Zoey Chen
c61c2fb1d7 Merge "[Provider Model] Modify the title and summary of airplane mode networks" 2021-01-14 05:26:22 +00:00
Zoey Chen
01824b9e57 Merge "[Provider Model] Use correct icon for Calls & SMS" 2021-01-14 03:36:19 +00:00
TreeHugger Robot
83f7895fe3 Merge "Update FingerprintEnrollEnrolling for UDFPS" 2021-01-14 03:30:56 +00:00
Wesley.CW Wang
f3db5cb678 Adjust Battery Saver percentage slide size
- Increase seekbar size to 48dp to fit the GAR requirement
 Screenshots:
     https://screenshot.googleplex.com/72qRevtZXA4PTcg.png
     https://screenshot.googleplex.com/3rJjDRehdsPL8AQ.png

Bug: 157532287
Test: make SettingsGoogleRoboTests
Change-Id: Ibeaec5e09b45bf1145cff1b2515a3f79548a25a5
2021-01-13 18:52:48 +00:00
TreeHugger Robot
1164ce5afa Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-13 17:53:12 +00:00
TreeHugger Robot
877ff557fa Merge "Correct the naming for homepage preference" 2021-01-13 16:53:57 +00:00
TreeHugger Robot
9dbab5a63a Merge "Add toggle for Prevent Ringing setting in Gesture page." 2021-01-13 16:50:36 +00:00
Tsung-Mao Fang
1b849dbe2a Correct the naming for homepage preference
- Have a consistent naming rule for homepage.
- Make the font family of title can be modified by system.

Test: See the screen, and font family of title is correct.
Bug: 177213699
Change-Id: I8e3ebbf06a8c1849956100c8d2825f98ad251b37
2021-01-13 23:14:58 +08:00
Yi-Ling Chuang
6735292dab Add toggle for Prevent Ringing setting in Gesture page.
- Replace Preference with PrimarySwitchPreference.

Fixes: 177408128
Test: open gesture page
Change-Id: I25079632459b3457995792347f4904c25374d47d
2021-01-13 23:11:26 +08:00
Zoey Chen
cadf1b0267 [Provider Model] Modify the title and summary of airplane mode networks
Bug: 171874190
Test: manual
Change-Id: I7acd483616295c41bddc491145cbd5b1637e9b0c
2021-01-13 20:59:02 +08:00
Zoey Chen
48052e5069 [Provider Model] Use correct icon for Calls & SMS
Bug: 172053880
Test: manual
Change-Id: I48219042f5dca7d5760da59a7911d46ed9029138
2021-01-13 20:16:43 +08:00
Yanting Yang
79c21c07d6 Merge "Override homepage tile positions for silky home" 2021-01-13 11:26:55 +00:00
Ben Chung
613ad3f88b Merge "Accessibility settings interaction controls category restructure, add system controls fragment for related accessibility services." 2021-01-13 11:19:57 +00:00
Bill Yi
d536b71847 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icdfdb30a8be902a86187aa702e7e121112c553b4
2021-01-13 01:02:17 -08:00
Ben Chung
29ace16b35 Accessibility settings interaction controls category restructure, add system controls fragment for related accessibility services.
Bug: 174829936
Test: atest SystemControlsFragmentTest, atest AccessibilitySettingsTest
Change-Id: I609207c8c7bf0e5cb4beda0d5c578669bcd005a4
2021-01-13 16:29:44 +08:00
Yanting Yang
b3381de206 Override homepage tile positions for silky home
Create configs to record the packages and orders of homepage tiles and
then according to these data to override homepage tile positions.

Bug: 168166015
Test: visual with turning on/off silky home
Change-Id: I3fcb54ac531a124101084bb40064b5a7227bf311
2021-01-13 15:42:41 +08:00
TreeHugger Robot
bfcb1dc2c4 Merge "Extend character limit for accessibility_toggle_primary_mono_summary" 2021-01-13 03:04:59 +00:00
Kevin Chyn
95ca345b23 Update FingerprintEnrollEnrolling for UDFPS
SysUI is now responsible for showing the fingerprint icon and
circle (when finger is not down). This changes makes slight tweak
so the progress indicator is not covered by SysUI.

Fixes a few corner cases when onConfigurationChange occurs

Bug: 177026664
Bug: 177275693
Test: No effect on existing devices

Change-Id: Id06eab00861878a867804a27f4778f1e3fbd174e
2021-01-12 18:31:13 -08:00
Edgar Wang
e451e03694 Extend character limit for accessibility_toggle_primary_mono_summary
Bug: 165016056
Change-Id: Icef2807767656e5c4e83b4c52c28c5160521a490
Test: rebuild
2021-01-13 01:08:35 +00:00
Stanley Wang
57098f4589 Use SettingsLib's MainSwitchPreference to replace the Switches which use
LayoutPreference.

Bug: 175181773
Test: Run robotest and apply the widget in Settings and see the ui
Change-Id: I4588d1fc3004970b174e7c5c5d1aa7745f774985
2021-01-12 23:12:01 +08:00
TreeHugger Robot
adcd4f165d Merge "Add inline toggle for Prevent Ringing gesture." 2021-01-12 15:03:32 +00:00
TreeHugger Robot
3180917a1d Merge "Refine the preference layout for homepage" 2021-01-12 09:01:54 +00:00
Ben Chung
f27d3c33c4 Merge "Accessibility settings interaction controls category restructure, add tap assistance fragment for related accessibility services." 2021-01-12 04:53:55 +00:00
Yi-Ling Chuang
b058221b62 Add inline toggle for Prevent Ringing gesture.
- Fork sound_settings_v2 for dev.
- Replace Preference with PrimarySwitchPreference for the Prevent
Ringing entry.
- When the toggle is on, only show the status text without the on/off
info.
- Remove unused codes.

Bug: 174964721
Test: robotests
Change-Id: I990f5c778436c8058d4a5953c7f15a9a7eb580d8
2021-01-12 12:48:41 +08:00
Tsung-Mao Fang
6c921e5b6c Refine the preference layout for homepage
Based on the Android S design, we update the layout
for homepage.

The scope covers the layout of preference and icons itself.

- Change the icon size for IA items.
- Change the layout spacing of preference.
- Change the margin or search bar.

Test: See the screen and confirm with UX
Bug: 177213699
Change-Id: I985966fdf39a5989d51991aa3c06ea5fd31e8fe2
2021-01-12 12:42:44 +08:00
TreeHugger Robot
b63f537238 Merge changes from topic "settings_collapsing_toolbar"
* changes:
  Disable the title of mobile network
  Add CollapsingToolbarLayout for sub settings
2021-01-12 02:14:38 +00:00
TreeHugger Robot
e732adcd81 Merge "Update ScrollView to NestedScrollView in the font size page" 2021-01-12 02:14:38 +00:00
TreeHugger Robot
d7ce9a6534 Merge "Change ScrollView to NestedScrollView for screen size page" 2021-01-12 02:14:38 +00:00
TreeHugger Robot
bd4b0687a6 Merge "Remove some emergency setting items scattered in settings" 2021-01-12 02:06:33 +00:00
Fan Zhang
3440b9529f Remove some emergency setting items scattered in settings
All these items are displayed in the new Safety & emergency page.

Bug: 175158310
Test: manual
Change-Id: I3e323f2452db6d62aa98c79835c964c1c06a06cf
2021-01-11 15:28:35 -08:00
Mill Chen
1b37291364 Change ScrollView to NestedScrollView for screen size page
To make sure the collapsing toolbar work as usual, we need to use
NestedScrollView instead of ScrollView in the screen size page.

Bug: 176896338
Test: manual test and visual verified
1) Navigate to Settings -> Display -> Display size
2) Change the size on the seekbar
3) Observe and check if the preview window can be scrolled

Change-Id: Ia5bb66ef63b9d9a7713cebddbf6ab6258ff82b8d
2021-01-12 02:56:32 +08:00
Fan Zhang
1447ed1fa5 Merge "Add android:order to all emergency setting items" 2021-01-11 16:52:11 +00:00
Mill Chen
14cfd2f2ca Add CollapsingToolbarLayout for sub settings
Settings app is planning to make toolbar collapsible for next
Android release. This CL is to add a new layout for
CollapsingToolbarLayout in the Settings app and to update the theme
correspondly. This feature will be controlled by feature flag, which
makes Settings app compacitible with the existing layout.

Bug: 174451673
Test: manul test and visual verification
1) Enable the feature and open Settings app
2) Navigate to each sub page and check if toolbar is collapsible

Change-Id: Ibef524bbaa7ae3f0a43db7e40e599f42e009437f
2021-01-11 18:30:20 +08:00
Mill Chen
dda4c34d59 Update ScrollView to NestedScrollView in the font size page
To ensure that the collapsing toolbar work as usual, we need to change
the ScrollView to NestedScrollView.

Bug: 176884647
Test: manual test and visual verified
1) Navigate to Settings -> Display -> Font size
2) Check if the sample text area is scrollable

Change-Id: I1cb8a20f1efd69213e1eaadfe84a53aff9bc640f
2021-01-11 18:00:11 +08:00
Ben Chung
dfe1977044 Accessibility settings interaction controls category restructure, add tap assistance fragment for related accessibility services.
Bug: 174829936
Test: atest TapAssistanceFragmentTest, atest AccessibilitySettingsTest
Change-Id: I39c4eba8ec807248eb11371fab2466cf7d7553ef
2021-01-11 17:21:14 +08:00
Yanting Yang
ed9df99790 Merge "Update wallpaper icon for silky home" 2021-01-11 09:08:59 +00:00
Yanting Yang
e18dc24d18 Update wallpaper icon for silky home
Bug: 168166015
Test: robotest & visual
Change-Id: I7ff26037a6efa89fb3be5d71037721d3c21c634f
2021-01-11 10:24:10 +08:00