Commit Graph

22376 Commits

Author SHA1 Message Date
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
Weng Su
b9c865b704 Add Hotspot WPA3 Settings
- Add WPA3 SAE security types
  - "WPA3-Personal"
  - "WPA2/WPA3-Personal"

- Verify valid WPA3 password

- Enable QR code scanner for Hotspot WPA3

- Avoid null point exception when settings keyword searching

- Screenshot
  https://screenshot.googleplex.com/B6u54wh8w35Xnyf
  https://screenshot.googleplex.com/8hWHHUTb6UaS9vB

Bug: 167968488
Test: manual test
- atest WifiTetherSecurityPreferenceControllerTest
- atest WifiUtilsTest

Change-Id: I2992040498f8add107a4cce70a92c1c6ee6ab805
2021-01-10 08:38:39 +00:00
Fan Zhang
78cbca8cbd Add android:order to all emergency setting items
Each item has a gap of 100 to allow external setting injection choose
where to display.

Bug: 175158310
Test: manual
Change-Id: Icf150ad8fc956c3db391251382b08b5155034a8b
2021-01-08 23:56:33 +00:00
TreeHugger Robot
fa19722c3a Merge "Increase char count" 2021-01-08 21:51:40 +00:00
Julia Reynolds
25bb0b9e6c Increase char count
Test: manual
Fixes: 176998789
Change-Id: I396fb41ed016cc608509200b950b1bc650e6303e
2021-01-08 15:20:47 -05:00
TreeHugger Robot
2fbfc6f57a Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-08 17:38:59 +00:00
TreeHugger Robot
c81a929f65 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-08 17:15:13 +00:00
Bill Yi
b11aa0bce4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8ff6eb1cf9c0da480e9fcbf23d12f3e20d522f5f
2021-01-08 15:00:28 +00:00
Bill Yi
ed27135cc9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I3e54272d727177238bf945b3415fa8ac3f4cda4a
2021-01-08 14:31:21 +00:00
TreeHugger Robot
1d4857d8dd Merge "Animate the search bar expansion" 2021-01-08 12:51:38 +00:00
Edgar Wang
d5e9dbb878 Merge "Make Autofill category in developer options can not be search" 2021-01-08 12:47:29 +00:00
Tsung-Mao Fang
902a3469f0 Animate the search bar expansion
Enable the transition between Settings app and Settings Search

Test: Record the transition video and confirm it.
Fix: 175764903
Change-Id: I95125fba17bbf517feee9a10fd828ff8017f7106
2021-01-08 07:48:54 +00:00
TreeHugger Robot
6f74b9a5dd Merge "Update the message for FingerprintEnrollIntroduction" 2021-01-08 05:34:46 +00:00
Julia Reynolds
60633f6253 Merge "Allow notification filtering per listener." 2021-01-08 03:14:52 +00:00
TreeHugger Robot
bd56b6ba62 Merge "Add a few native setting items to safety page" 2021-01-07 22:59:10 +00:00
TreeHugger Robot
76c649968f Merge "Add a empty page to host Safety/emergency settings" 2021-01-07 22:39:06 +00:00
Fan Zhang
e98055b960 Add a few native setting items to safety page
* Emergency info
* Emergency sos
* WEA

The pages are not removed from their old place yet, because the new
safety page is not yet visible to users.

https://screenshot.googleplex.com/92VGQxR4ocuiutj.png

Bug: 175158310
Test: manual
Change-Id: I0484f1724e626c8de822460844b5a4c93b7ff815
2021-01-07 20:28:25 +00:00
Fan Zhang
9b1fb77b54 Add a empty page to host Safety/emergency settings
The page will eventually be displayed on settings root. It's currently
disabled to avoid QA/dogfood confusion, as the page is pretty empty at
this point.

Bug: 175158310
Test: manual only. Skipped robolectric because the page is pretty empty.
      Will add more test as we build business logic.
Change-Id: I80f193f6e90b89ab0c37d0f23f7174e4ba86c091
2021-01-07 10:56:32 -08:00
Hugh Chen
cb79c659b5 RESTRICT AUTOMERGE Update String am: 085f70d48d am: 4b22b601f7 am: 26623c9572
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13275411

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I84520568c24220945c1ce226bafb82f7a40367af
2021-01-07 18:31:16 +00:00
Hugh Chen
26623c9572 RESTRICT AUTOMERGE Update String am: 085f70d48d am: 4b22b601f7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13275411

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1d34d26cddbca6559164cbaef2aab5dfc6fd035d
2021-01-07 17:59:08 +00:00
Mill Chen
7dc12ac274 Update the message for FingerprintEnrollIntroduction
Seperate the original message into top info and footer info.

Bug: 176856169
Test: visual verified
Change-Id: I9f79619f84949cd88e1f80024d8689033ab4304a
2021-01-08 01:41:52 +08:00
Julia Reynolds
eb2b36a5e2 Allow notification filtering per listener.
Test: atest
Bug: 173052211
Change-Id: I54c740e9755f18339c59aad4f1f5aecd8c734892
2021-01-07 10:01:08 -05:00
TreeHugger Robot
0fd2a2008a Merge "Move Settings preferenceCategory style into SettingsTheme" 2021-01-07 11:20:37 +00:00
TreeHugger Robot
12a5868126 Merge "Only show the schedule text for the night display and dark theme" 2021-01-07 10:30:46 +00:00
Tsung-Mao Fang
acab1a0364 Only show the schedule text for the night display and dark theme
In Android S design, night display and dark theme only show
schedule text for summary.

- Rmove redundant string resource.
- Remove redundant method in night display formatter.
- Refactor the code in dark mode preference and night display
controller.

Test: See the correct behavior in screen.
Fix: 174964139
Change-Id: I658b3073a0a6ed83f589103999c711e5430eaeb7
2021-01-07 16:17:20 +08:00
Tsung-Mao Fang
d159567fc4 Add toggle for auto brightness feature
- Use the primary toggle preference.
- Remove the empty subtext.

Test: See toggle preference on auto brightness feature
Bug: 174964139
Change-Id: Ic5105730c7a2075d61cdde42395e41712bb468a7
2021-01-07 15:09:31 +08:00
Hugh Chen
dc2b694a54 DO NOT MERGE: resolve merge conflicts of c17ec818af to rvc-qpr-dev
Bug: 167403112
Test: send intent to test right prompts message is pop up. make -j42 RunSettingsRoboTests
Change-Id: Iec4d1963e626829b696c2047c5979a684119acf7
Merged-In: Iec4d1963e626829b696c2047c5979a684119acf7
2021-01-07 06:03:10 +00:00
Edgar Wang
085d36f97d Make Autofill category in developer options can not be search
Bug: 171510328
Change-Id: I388c02d6a8d3c1caa9d2325dc89fb9130291d0a8
Test: manual
2021-01-07 04:26:36 +00:00
Hugh Chen
18c06480b0 DO NOT MERGE: resolve merge conflicts of c17ec818af to rvc-qpr-dev
Bug: 167403112
Test: send intent to test right prompts message is pop up. make -j42 RunSettingsRoboTests
Change-Id: Iec4d1963e626829b696c2047c5979a684119acf7
Merged-In: Idc6ef558b692115bb82ea58cf223f5919b618633
2021-01-07 11:54:30 +08:00
Ben Chung
cfedc19ab9 Merge "Accessibility settings display category restructure, add text and display fragment for related accessibility services." 2021-01-07 01:28:17 +00:00
Hugh Chen
4b22b601f7 RESTRICT AUTOMERGE Update String am: 085f70d48d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13275411

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7e8afa7b93740d3653a8a6cfb476ac69023ae41b
2021-01-06 23:32:41 +00:00
Hugh Chen
c17ec818af RESTRICT AUTOMERGE Fix phishing attacks over Bluetooth due to unclear warning message am: 8ecca02ece
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13275410

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I96867a323781675c52bf875c2221c348baca6b83
2021-01-06 23:32:22 +00:00
Peter Kalauskas
f22eb5971d Merge "Update icons and text for guest user" 2021-01-06 17:41:26 +00:00
Edgar Wang
e49ae19b1e Merge "Replace some customized RadioButtonPreferences" 2021-01-06 16:31:02 +00:00