Commit Graph

22177 Commits

Author SHA1 Message Date
TreeHugger Robot
f969007c44 Merge "Remove battery usage column icon (1/2)" into sc-dev 2021-02-05 07:21:21 +00:00
TreeHugger Robot
fc5592b15a Merge "Fix the scrolling problems in homepage" into sc-dev am: 26ffb4d3d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13468309

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0d3d75780c427ecf2ee158993f3b32d980fd59e9
2021-02-05 03:52:03 +00:00
TreeHugger Robot
26ffb4d3d6 Merge "Fix the scrolling problems in homepage" into sc-dev 2021-02-05 03:22:26 +00:00
Jason Chiu
530bee333b Fix the scrolling problems in homepage
- Remove the deprecated API and parameter usages of setting system ui
  visibility, which make the app bar scrolling behavior abnormal when
  the navigation bar is enabled.
- Remove the duplicate navigationBarColor of the homepage theme since
  Theme.Settings has configured it.
- Remove the unused scroll flags in search bar layout since its parent
  is no longer AppBarLayout.

Test: visual, robotest
Fixes: 178497625
Fixes: 179122861
Change-Id: I91537cff4f3d98e4bc31e6e42d23895df312fbd4
2021-02-05 02:52:43 +00:00
Weng Su
5d21608c87 [Provider Model] Internet Panel - Airplane mode is on am: 7a62ab1fff
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13461408

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If712d593bd60133e3c7a7ce07bfb78430bc47717
2021-02-04 15:19:25 +00:00
Mill Chen
d072e8501a Restructure app info page
When the collapsing toolbar is applied in the Settings app, some pages
they used manage_applications_apps will have the collapsing toolbar not
work properly. This was caused by using multiple CoordinatorLayout and
AppBarLayout in these pages.

Bug: 177375909
Test: visual verified
Change-Id: Ibfeeab9cf907a23d18ee1ec2c450c523316cfc92
2021-02-04 18:53:44 +08:00
Weng Su
7a62ab1fff [Provider Model] Internet Panel - Airplane mode is on
- Add "Airplane mode is on" to sub-title
  - Set the header layout to CENTER_HORIZONTAL if it's no icon

- Hide "Settings" button

- Screenshot
  https://screenshot.googleplex.com/6m5dFVZu7ar4nKW

Bug: 178717651
Test: manual test
atest InternetConnectivityPanelTest \
      PanelFragmentTest \
      ProviderModelSliceTest

Change-Id: I899a817fd99415e9cad608aa4deac1e45365696a
2021-02-04 18:48:34 +08:00
Wesley.CW Wang
8cd4fd329e Remove battery usage column icon (1/2)
Bug: 179236309
Test: make RunSettingsRoboTests -j40
Change-Id: I89b741e4cd5c8c53e3c67f4702eff0d95200731f
2021-02-04 09:12:53 +00:00
Chen Xu
c779a59e24 Merge "UK emergency alert app rename" 2021-02-04 02:06:32 +00:00
Yanting Yang
bfd96258be Merge "Fix divider missing with AppButtonsPreference" into sc-dev am: 09010fe9f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13451892

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia36a2b15e69a2fe1e849969b4b81485f51285113
2021-02-03 08:29:29 +00:00
Yanting Yang
09010fe9f2 Merge "Fix divider missing with AppButtonsPreference" into sc-dev 2021-02-03 08:08:54 +00:00
Yanting Yang
868eb6410d Fix divider missing with AppButtonsPreference
Symptom:
The divider below of the AppButtonsPreference is missing on the
Storage & cache and Battery pages of app.

Root cause:
The PreferenceCategory divider has been hidden for Android S design.
If we put the AppButtonsPreference and the PreferenceCategory together,
the divider will be default hidden by PreferenceCategory.

Solution:
To add back the divider for AppButtonsPreference, override the
allowDividerAbove in the PreferenceCategory.

Fixes: 179118594
Test: visual
Change-Id: I74ba7679a69a578a87734b9920f53a20c79d6567
2021-02-03 14:38:50 +08:00
Jiashen Wang
85109678b2 Post SUW Slot Change Receiver Migration
Implement the case when user inserts / removes pSIM during the SUW.
Bug: 153811431
Bug: 170508680
Test: Manually tested

Change-Id: Iccc3a2fd416ccfb57c3b4f9dc7b32c0b7681c90b
2021-02-02 17:57:40 -08:00
TreeHugger Robot
8232a6b1dc Merge "Move the additional settings to the top of AppInfoDashboard" into sc-dev am: 9a33929b45
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13451724

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifc6356cb24cdfb82dcb539786bb3eeae6e6e5293
2021-02-03 01:13:07 +00:00
TreeHugger Robot
9a33929b45 Merge "Move the additional settings to the top of AppInfoDashboard" into sc-dev 2021-02-03 01:06:35 +00:00
Stanley Wang
3f6c9dc1e4 Use MainSwitchPreference to replace the button style switches. am: 10b7a7d483
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13425300

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7a38f9068927cb866132635740d1aea74f701dc4
2021-02-02 13:00:32 +00:00
Yanting Yang
a599dbcc84 Move the additional settings to the top of AppInfoDashboard
Based on the Android S design, move additional settings preference
above the Notifications preference and use SpacePreference to draw
the horizontal divider below AppButtonsPreference since the additional
settings preference is only visible by condition.

Also remove initialExpandedChildrenCount to expose all preferences.

Bug: 174964524
Test: robotest & visual with turning on/off silky home
Change-Id: Ife1d37820e44f8e12af4ed37ed66a29281366b50
2021-02-02 16:58:08 +08:00
Stanley Wang
10b7a7d483 Use MainSwitchPreference to replace the button style switches.
Fix: 177967926
Fix: 177968295
Fix: 177967925
Fix: 177968078

Test: Run robotest and apply the widget in Settings and see the ui
Change-Id: Ie854de96e5495fa564fb8a097ed4547bbd2b10c5
2021-02-02 08:39:37 +00:00
Wesley.CW Wang
62eabdb6f2 Update battery saver column to PrimarySwitchPreference (1/2) am: 8d9fe815b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13413813

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I95996112b18e49d8696d3f3a6de5dc0779323f68
2021-02-02 06:37:41 +00:00
Wesley.CW Wang
8d9fe815b0 Update battery saver column to PrimarySwitchPreference (1/2)
- Change battery saver entry column to new design
 Screenshot: https://screenshot.googleplex.com/9a9Gxm3McJVmLkD.png

Bug: 177407113
Test: make RunSettingsRoboTests -j40
Change-Id: I513bc4371518645f4e725df27f2cb978cec284e8
2021-02-02 06:13:08 +00:00
Chen Xu
f7e3d57023 UK emergency alert app rename
Bug: 179052608
Test: Build
Change-Id: Ic9d4e1138113e3c90abb27ba0a72d2ed07528c1e
2021-02-02 12:55:03 +08:00
Jiashen Wang
1c205502ef Merge "Slot Change Receiver Migration" into sc-dev am: 428273765b am: e6da71456f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13411837

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I506f49bf863d8f32b07dd93a5ce5ef27a5bc1d27
2021-02-02 01:17:07 +00:00
Jiashen Wang
e6da71456f Merge "Slot Change Receiver Migration" into sc-dev am: 428273765b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13411837

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idb64c4ec83ccafb0f04d2554b791f5ab6bd2047b
2021-02-02 00:54:50 +00:00
Jiashen Wang
428273765b Merge "Slot Change Receiver Migration" into sc-dev 2021-02-01 23:57:09 +00:00
Tsung-Mao Fang
0942bf2582 Merge "Tweak the ui based on the Android S design" into sc-dev am: 77382001fa am: fdd8331363
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13448953

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibd7dfb3f5e3bf0f26f1b6c525ffa80256b9227a4
2021-02-01 15:19:40 +00:00
Zoey Chen
9657379d70 Merge "[Provider Model] Add Learn more in the WFC footer" into sc-dev am: 68c2d0bdf6 am: 81941b9aa3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13448951

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idf3c92e01b5445a8829d84daecf0929599d09281
2021-02-01 15:19:15 +00:00
Tsung-Mao Fang
fdd8331363 Merge "Tweak the ui based on the Android S design" into sc-dev am: 77382001fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13448953

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic608677db8d11500f70940839b677c98ece6b230
2021-02-01 14:51:44 +00:00
Zoey Chen
81941b9aa3 Merge "[Provider Model] Add Learn more in the WFC footer" into sc-dev am: 68c2d0bdf6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13448951

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0462678ce051c984784359b56da4f51269891898
2021-02-01 14:51:28 +00:00
Tsung-Mao Fang
77382001fa Merge "Tweak the ui based on the Android S design" into sc-dev 2021-02-01 14:39:04 +00:00
Zoey Chen
68c2d0bdf6 Merge "[Provider Model] Add Learn more in the WFC footer" into sc-dev 2021-02-01 14:10:29 +00:00
Zoey Chen
29dd5f9ec3 Merge "[Provider Model] Update the preferred status to the latest" into sc-dev am: 28f3a570f7 am: 39dbfb91bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13448950

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1999858a985b1ae59732e7320fd3739833a1a37a
2021-02-01 14:05:26 +00:00
Zoey Chen
39dbfb91bd Merge "[Provider Model] Update the preferred status to the latest" into sc-dev am: 28f3a570f7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13448950

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia7d832333fefd71e4f6c07727e5efddc57134dc5
2021-02-01 13:49:10 +00:00
Tsung-Mao Fang
23e77a557a Tweak the ui based on the Android S design
- Use TopIntro preference to show introduction text

Change-Id: Ic2304dab188848dfa6ef8a0429fd5b7ad40cf0af
Test: See the screenshot- https://screenshot.googleplex.com/AMS64EGe5Fcdfn8
Fix: 177997785
2021-02-01 20:46:43 +08:00
Zoey Chen
4f05555f4f [Provider Model] Add Learn more in the WFC footer
UX deck: https://screenshot.googleplex.com/4DxGCxgEsujhEpy.png
Implementation: https://screenshot.googleplex.com/5yZhQMQwwRZQkge.png

Bug: 178898044
Test: make
Change-Id: Icfde927e6781303b6016b0ec13201fd7052191d3
2021-02-01 16:57:57 +08:00
Zoey Chen
9b2c37db9c [Provider Model] Update the preferred status to the latest
Bug: 178916743
Test: make
Change-Id: I223c3a2e8481fd1b887ef9e2d200906d12c7eec5
2021-02-01 15:53:21 +08:00
Bonian Chen
f2b3767626 Merge "[Settings] Backup calling string change" into sc-dev am: ca502c24b6 am: fe31561801
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13437249

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I058c83afabebf8a54407b0bbdcb945e5fd3d8d0d
2021-02-01 05:04:22 +00:00
Bonian Chen
fe31561801 Merge "[Settings] Backup calling string change" into sc-dev am: ca502c24b6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13437249

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4b60541992065ffb0a98060a0d639bffe1345326
2021-02-01 04:45:11 +00:00
Bonian Chen
ca502c24b6 Merge "[Settings] Backup calling string change" into sc-dev 2021-02-01 04:16:24 +00:00
Manish Singh
16912c1544 Merge "Add Settings UI for MTP transcoding over USB." into sc-dev am: becac249e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13435373

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib8ff96979f01d4cdd8f3a881750eca56941d414c
2021-02-01 03:22:01 +00:00
Bonian Chen
fb9450a172 [Settings] Backup calling string change
Change on wordings based on suggestion.

Bug: 178117374
Change-Id: I834ae66a112a3ed4074282db84107ee5a386ccf8
Test: on device
2021-01-31 15:51:06 +00:00
TreeHugger Robot
5d1ada1af0 Merge "Rearrange System settings" into sc-dev am: b94db4b157 am: d70ee0b66e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13429147

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I54d9c8dd4a82532c967d69321b84d9376b30b049
2021-01-29 21:11:15 +00:00
Jason Chiu
06eba6fa5d Merge "Fix the suggestion button distortion" into sc-dev am: b178c547e4 am: 15bbb0c023
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13432391

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0dc1723a739cad2c14d4037e5aadf6876c6593c6
2021-01-29 21:11:08 +00:00
TreeHugger Robot
9ce407e7ec Merge "Fix the background color of the homepage." into sc-dev am: a7c0036a8c am: f719f0ad02
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13432402

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I40ad6c16b09edcfd59b488e9fce679204b5c454e
2021-01-29 21:10:58 +00:00
TreeHugger Robot
cd0dc43bc6 Merge "[Provider Model] Dynamically update the Internet Panel title" into sc-dev am: 097361797a am: 395203a5e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13425388

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3743842bc7f068a1028cb5a6fbd529a5c7a11212
2021-01-29 21:10:23 +00:00
Manish Singh
29a6c26d80 Add Settings UI for MTP transcoding over USB.
Enabling "Transcode exported media" means that the media transferred
from the device via MTP over USB would be transcoded, if necessary. This
switch also sets / unsets the sys.fuse.transcode_mtp system property.

"Transcode exported media" category would be accessible only when the
"File transfer / Audio Auto" or "PTP" radio button has been selected. We
are including PTP also since PTP supports transfer of videos.

Adding UsbDetailsTranscodeMtpController in a separate preference
category than "Charge connected device" primarily because they seemed to
be different in their own rights.

Here are a few screenshots:
https://screenshot.googleplex.com/8jeMstnSFsTtVCS.png
https://screenshot.googleplex.com/76hNz4iXp5dcX4M.png
https://screenshot.googleplex.com/AkTngE5hDDJCovv.png
https://screenshot.googleplex.com/4uQYGXuuSQLoz3w.png

BUG: 158466651
Test: manual testing.  Also added unit test.
Change-Id: I2603a9bffed3320c193cc08f867bd67d9848da18
(cherry picked from commit 974662936e)
2021-01-29 20:22:05 +00:00
TreeHugger Robot
00ec22c3f8 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-29 18:15:55 +00:00
TreeHugger Robot
dce50f1f77 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-01-29 17:57:42 +00:00
TreeHugger Robot
b94db4b157 Merge "Rearrange System settings" into sc-dev 2021-01-29 14:06:58 +00:00
Jason Chiu
b178c547e4 Merge "Fix the suggestion button distortion" into sc-dev 2021-01-29 13:51:13 +00:00
Bill Yi
d4ee591cb3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1c9c1604346beda7019ed3378e6ddd751ae97c53
2021-01-29 05:34:23 -08:00