From 121eaa7d3e7497c3595ecce651085eee9bb4be1f Mon Sep 17 00:00:00 2001 From: Alan Stokes Date: Tue, 21 May 2019 15:12:16 +0100 Subject: [PATCH 1/3] Cleanup background activity starts for release. This removes the parts of the feature that were only needed in beta releases: - Develper setting to force feature on or off. Not to be submitted until after beta 5 is cut. Bug: 131747138 Test: Still builds, developer settings still works. Change-Id: I573761174317797aeb4df97cf1a2b1ce005c0715 --- res/values/strings.xml | 5 - res/xml/development_settings.xml | 5 - ...undActivityStartsPreferenceController.java | 91 ---------- .../DevelopmentSettingsDashboardFragment.java | 1 - ...ctivityStartsPreferenceControllerTest.java | 159 ------------------ 5 files changed, 261 deletions(-) delete mode 100644 src/com/android/settings/development/AllowBackgroundActivityStartsPreferenceController.java delete mode 100644 tests/robotests/src/com/android/settings/development/AllowBackgroundActivityStartsPreferenceControllerTest.java diff --git a/res/values/strings.xml b/res/values/strings.xml index 171fe42d2cd..805a1d2d726 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -10594,11 +10594,6 @@ Track all GNSS constellations and frequencies with no duty cycling - - Allow background activity starts - - Allows all background activity starts - Always show crash dialog diff --git a/res/xml/development_settings.xml b/res/xml/development_settings.xml index c537f3fa26b..33dba2fe437 100644 --- a/res/xml/development_settings.xml +++ b/res/xml/development_settings.xml @@ -502,11 +502,6 @@ android:fragment="com.android.settings.applications.appops.BackgroundCheckSummary" android:title="@string/background_check_pref" /> - - Date: Wed, 29 May 2019 18:21:28 +0800 Subject: [PATCH 2/3] Update the string of both magnification settings and gesture navigation tutorial dialog Referenced link for the details: https://docs.google.com/document/d/1eB2wukextG5UFECTwde5zcmXXTQCvgnqJJjnd1Chu9Q https://docs.google.com/document/d/14iwCag7FBD4e9bR03HjbC0D2s_u-Fpr3K8vl_XMjkD0 Bug: 133336814 Bug: 133650388 Test: Visual Change-Id: I4893183b55f609bfee3d1dfe80aa02cce624e857 --- res/values/strings.xml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 2e505ab4dd2..461ec7d101c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -4835,9 +4835,9 @@ Magnify with triple-tap - Magnify with button + Magnify with shortcut - Magnify with button & triple-tap + Magnify with shortcut & triple-tap Zoom in on screen @@ -4847,7 +4847,25 @@ To zoom, quickly tap the screen 3 times.\n
  • Drag 2 or more fingers to scroll
  • \n
  • Pinch 2 or more fingers to adjust zoom
\n\nTo zoom temporarily, quickly tap the screen 3 times and hold down your finger on the third tap.\n
  • Drag to move around the screen
  • \n
  • Lift finger to zoom out
\n\nYou can\'t zoom in on the keyboard and navigation bar.
- When magnification is turned on, use the Accessibility button at the bottom of the screen to quickly magnify.\n\nTo zoom, tap the Accessibility button, then tap anywhere on the screen.\n
  • Drag 2 or more fingers to scroll
  • \n
  • Pinch 2 or more fingers to adjust zoom
\n\nTo zoom temporarily, tap the Accessibility button, then touch & hold anywhere on the screen.\n
  • Drag to move around the screen
  • \n
  • Lift finger to zoom out
\n\nYou can’t zoom in on the keyboard or navigation bar.
+ When magnification is turned on, you can zoom in on your screen.\n\nTo zoom, start magnification, then tap anywhere on the screen.\n
  • • Drag 2 or more fingers to scroll
  • \n
  • • Pinch 2 or more fingers to adjust zoom
\n\nTo zoom temporarily, start magnification, then touch & hold anywhere on the screen.\n
  • • Drag to move around the screen
  • \n
  • • Lift finger to zoom out
\n\nYou can’t zoom in on the keyboard or navigation bar.
+ + Use accessibility button to open + + Use gesture to open + + Use new accessibility gesture + + To turn this service on or off, tap the accessibility button%son the bottom of your screen.\n\nTo switch between services, touch & hold the accessibility button. + + To turn this service on or off, swipe up from the bottom of the screen with two fingers.\n\nTo switch between services, swipe up with two fingers and hold. + + To turn this service on or off, swipe up from the bottom of the screen with three fingers.\n\nTo switch between services, swipe up with three fingers and hold. + + To turn an accessibility service on or off, swipe up from the bottom of the screen with two fingers.\n\nTo switch between services, swipe up with two fingers and hold. + + To turn an accessibility service on or off, swipe up from the bottom of the screen with three fingers.\n\nTo switch between services, swipe up with three fingers and hold. + + Got it The Accessibility button is set to %1$s. To use magnification, touch & hold the Accessibility button, then select magnification. From aeb1da0db95276ca6244f0f1e53eb81bc80d342f Mon Sep 17 00:00:00 2001 From: Antony Sargent Date: Mon, 13 May 2019 16:44:13 -0700 Subject: [PATCH 3/3] Add a "data during calls" preference This adds a switch which appears on the SIM details page for any SIMs that aren't the default on for data. It lets the user opt-in to turning on data on this SIM only in the case where there is an active call - this is needed because in some cases the default data SIM may not be able to be used when a call is active on another SIM. Bug: 132114205 Test: make RunSettingsRoboTests Change-Id: Ie44c56e0f486fd93aff411a0ba0e47d3695a4941 --- res/xml/mobile_network_settings_v2.xml | 6 + .../DataDuringCallsPreferenceController.java | 104 ++++++++++++++ .../telephony/MobileNetworkSettings.java | 1 + .../grandfather_slice_controller_not_in_xml | 1 + ...taDuringCallsPreferenceControllerTest.java | 134 ++++++++++++++++++ 5 files changed, 246 insertions(+) create mode 100644 src/com/android/settings/network/telephony/DataDuringCallsPreferenceController.java create mode 100644 tests/robotests/src/com/android/settings/network/DataDuringCallsPreferenceControllerTest.java diff --git a/res/xml/mobile_network_settings_v2.xml b/res/xml/mobile_network_settings_v2.xml index 1ff886078c5..20ed1c75a22 100644 --- a/res/xml/mobile_network_settings_v2.xml +++ b/res/xml/mobile_network_settings_v2.xml @@ -85,6 +85,12 @@ android:summary="@string/mms_message_summary" settings:controller="com.android.settings.network.telephony.MmsMessagePreferenceController"/> + +