Commit Graph

52611 Commits

Author SHA1 Message Date
Antony Sargent
45f0701380 Add a listener for subscription changes to SimDialogFragment
For some kinds of telephony changes that might happen while we're
already showing one of these dialogs, we already get sent a new intent
for the dialog which we internally convert into a refresh of the dialog
contents instead of stacking a new copy on top of the old one.

But it turns out there are some other cases where the telephony stack
doesn't send a new intent for the dialog but *does* send a change event
through the SubscriptionManager, and we want to respond to those as
well. This CL adds a listener for those events.

Fixes: 135276696
Test: make RunSettingsRoboTests
Change-Id: Ifb93ae95f45fda5831e112306dd9361ccaa5119c
(cherry picked from commit 6a1d7e60ac)
2019-06-24 16:58:40 +00:00
Fabian Kozynski
918bfa07ce Fix Dark theme case
Test: manual
Fixes: 135711083
Change-Id: I91941466b98bbb08d17897784d90a4f467b4de5f
2019-06-24 10:07:17 -04:00
Yi Jiang
e8cedc7a80 Merge "Refresh camera permission status when it changed." into qt-r1-dev
am: e342579993

Change-Id: I5ecf20062f59c100f984e81bbd26edf3340d64f3
2019-06-21 17:22:19 -07:00
Yi Jiang
e342579993 Merge "Refresh camera permission status when it changed." into qt-r1-dev 2019-06-21 23:59:21 +00:00
Yi Jiang
d66878f8fe Refresh camera permission status when it changed.
Bug: 135497543
Test: Manually tested
Change-Id: I833e1658bc7888557635b764599c7a0baa226612
2019-06-21 15:07:50 -07:00
Julia Reynolds
d070025f3d Remove dead code am: ab63fd3c25
am: bf35e5cc55

Change-Id: I26d668f809712749249ab0e8f8fda8566929e17b
2019-06-21 10:18:57 -07:00
Julia Reynolds
bf35e5cc55 Remove dead code
am: ab63fd3c25

Change-Id: I8d629b89f8b8145e8381301d888aeb8b050123c8
2019-06-21 10:15:12 -07:00
Julia Reynolds
ab63fd3c25 Remove dead code
Test: try to search 'gentle'
Fixes: 135640138
Change-Id: If03703e59f77206da08fc80e88bb986f821c18fe
2019-06-21 13:24:05 +00:00
Ivan Podogov
e1f901369b Fix Settings crash when trying to show work policy info am: 242ff568d1
am: f256fbb742

Change-Id: I0933c1ded0eb34ff5a4581448cafe59762451f9d
2019-06-20 16:08:02 -07:00
Ivan Podogov
f256fbb742 Fix Settings crash when trying to show work policy info
am: 242ff568d1

Change-Id: I5b003b9a94610b1ef7f2242c144ad0b360fcfc4a
2019-06-20 15:33:39 -07:00
Edgar Wang
935fb378be Merge "Update System->Gesture icon" into qt-r1-dev
am: dfb1b6821b

Change-Id: I326be2ebc35cd9e35080562bcffaaff2f7cbd2c8
2019-06-20 13:15:07 -07:00
TreeHugger Robot
dfb1b6821b Merge "Update System->Gesture icon" into qt-r1-dev 2019-06-20 17:43:08 +00:00
Ivan Podogov
242ff568d1 Fix Settings crash when trying to show work policy info
This fixes an exception in startActivity() call:

"android.util.AndroidRuntimeException: Calling startActivity() from outside of
an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really
what you want?"

Bug: 132904820
Test: manual
Change-Id: I0c687ea76068778554b072b6cc8274352de6fa28
2019-06-20 16:28:47 +01:00
Raff Tsai
5d0efd86be Merge "Cannot switch between multiple TTS engines" into qt-dev am: 753215fff9
am: 72b48c91f8

Change-Id: I9247b40fccb33f465693d64af29423a0c15b05bc
2019-06-19 23:15:30 -07:00
Raff Tsai
72b48c91f8 Merge "Cannot switch between multiple TTS engines" into qt-dev
am: 753215fff9

Change-Id: Ia48e40c15b7c07e538e87e3c7ec242543c9f0d8c
2019-06-19 22:57:06 -07:00
TreeHugger Robot
753215fff9 Merge "Cannot switch between multiple TTS engines" into qt-dev 2019-06-20 04:42:23 +00:00
Edgar Wang
77c86f4915 Update System->Gesture icon
Fixes: 135137464
Test: manual
Change-Id: I3de871882d74c2d6f4c5b1ce8e7ee65de9276a0c
2019-06-20 12:10:30 +08:00
Arc Wang
6d6361d5ef Merge "[Wi-Fi DPP] Wi-Fi QR code scanner is not working after a connection fail" into qt-dev am: d64b6c8846
am: 051d4c9b81

Change-Id: I4ead4b5896ac1c60b77d50d5df9c5cb55202c91c
2019-06-19 20:05:29 -07:00
Arc Wang
051d4c9b81 Merge "[Wi-Fi DPP] Wi-Fi QR code scanner is not working after a connection fail" into qt-dev
am: d64b6c8846

Change-Id: I65823cfc154a90a5a35e0932f4f1fe878718a274
2019-06-19 19:46:32 -07:00
Antony Sargent
2fffc8e3e8 Add a listener for subscription changes to SimDialogFragment
am: 6a1d7e60ac

Change-Id: I3cfd603b9ea11e00a752a2bb74b8de4d355e921a
2019-06-19 19:19:17 -07:00
Arc Wang
d64b6c8846 Merge "[Wi-Fi DPP] Wi-Fi QR code scanner is not working after a connection fail" into qt-dev 2019-06-20 01:34:09 +00:00
Antony Sargent
6a1d7e60ac Add a listener for subscription changes to SimDialogFragment
For some kinds of telephony changes that might happen while we're
already showing one of these dialogs, we already get sent a new intent
for the dialog which we internally convert into a refresh of the dialog
contents instead of stacking a new copy on top of the old one.

But it turns out there are some other cases where the telephony stack
doesn't send a new intent for the dialog but *does* send a change event
through the SubscriptionManager, and we want to respond to those as
well. This CL adds a listener for those events.

Fixes: 135276696
Test: make RunSettingsRoboTests
Change-Id: Ifb93ae95f45fda5831e112306dd9361ccaa5119c
2019-06-19 12:20:59 -07:00
Arc Wang
e939c8e453 Merge "[Wi-Fi DPP] Support WPA2/WPA3 transition mode" into qt-dev am: d8916ef151
am: 3454468111

Change-Id: Ic192e361b65b758d7e143d3b995ca86e30b3256d
2019-06-19 10:24:08 -07:00
Arc Wang
3454468111 Merge "[Wi-Fi DPP] Support WPA2/WPA3 transition mode" into qt-dev
am: d8916ef151

Change-Id: I37b2fd97fbe952d9cdc214b364ff766231158d4d
2019-06-19 10:15:44 -07:00
TreeHugger Robot
d8916ef151 Merge "[Wi-Fi DPP] Support WPA2/WPA3 transition mode" into qt-dev 2019-06-19 16:54:35 +00:00
Raff Tsai
39c6a16aba Cannot switch between multiple TTS engines
That is caused by layout xml changes. The radio button was clickable
in old xml resource. But it is not clickable in new xml resource.
Therefore we can't receive click callback. Fixed by changing
Radio button state when preference is clicked.

Fixes: 135285101
Test: manual, make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.tts"
Change-Id: Idd7bf37d9ccbc1b56d41978d19dc05c8a81cc49a
2019-06-19 16:35:35 +08:00
Kevin Chyn
178c29d374 Merge "Lockscreen bypass should be searchable" into qt-r1-dev
am: 411e99597f

Change-Id: I62aa3ebf75ad14a2d7308a25a813e64e8ce8daa3
2019-06-18 22:40:15 -07:00
TreeHugger Robot
411e99597f Merge "Lockscreen bypass should be searchable" into qt-r1-dev 2019-06-19 05:05:43 +00:00
Malcolm Chen
564176cf59 Merge "Replace isSubscriptionEnabled with isActiveSubId." into qt-dev am: 0304f4d1ce
am: cdae15bcc4

Change-Id: I439e6f7f2f4daeaeaf486b403a859331a40f7099
2019-06-18 20:56:57 -07:00
Matthew Fritze
db521cd6d1 Merge "MobileData slice should be null if not-actionable" into qt-dev am: e2ab7540a3
am: 60a1dc1609

Change-Id: I9d446483277b2c8866102f7281b4aad6d3117967
2019-06-18 20:53:55 -07:00
Malcolm Chen
cdae15bcc4 Merge "Replace isSubscriptionEnabled with isActiveSubId." into qt-dev
am: 0304f4d1ce

Change-Id: I9f91b0292b464e76db849163573031dba8bef5a1
2019-06-18 20:28:40 -07:00
Matthew Fritze
60a1dc1609 Merge "MobileData slice should be null if not-actionable" into qt-dev
am: e2ab7540a3

Change-Id: Ie4630b5927b93083e6b970cb67da04cbc19a2c50
2019-06-18 20:23:29 -07:00
Bill Yi
576b4628f5 [automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-r1-dev
am: 304271b664 -s ours
am skip reason: subject contains skip directive

Change-Id: Ic0825b48431b5e48cc22fa8dfe50ec9dff04dd36
2019-06-18 20:18:58 -07:00
TreeHugger Robot
0304f4d1ce Merge "Replace isSubscriptionEnabled with isActiveSubId." into qt-dev 2019-06-19 03:11:25 +00:00
TreeHugger Robot
e2ab7540a3 Merge "MobileData slice should be null if not-actionable" into qt-dev 2019-06-19 02:26:20 +00:00
Arc Wang
00c8b534cd [Wi-Fi DPP] Wi-Fi QR code scanner is not working after a connection fail
After a user uses Wi-Fi QR code scanner to scan a QR code of an unreachable
Wi-Fi network, the scanner does not recognize any QR code until the scanner is
restarted or back from a screen off state.

To restart QrCamera after a Wi-Fi QR code recognition, we should stop it before
start, otherwise the DecodeTask will not work.

Bug: 135225856
Test: Scan a Wi-Fi QR code of unreachable Wi-Fi network and
      scan a Wi-Fi QR code of reachable Wi-Fi network, check
      if the scanner recognizes QR code.

Change-Id: I0063c867d8e4046f184d02134bda842887c003a1
2019-06-19 10:01:17 +08:00
Kevin Chyn
06f22da547 Lockscreen bypass should be searchable
Fixes: 135566785

Test: Searchable now
Change-Id: Idae804f77ea5b7680c2dbe585bfec5078bb56c8f
2019-06-18 19:00:25 -07:00
TreeHugger Robot
304271b664 Merge "Import translations. DO NOT MERGE" into qt-r1-dev 2019-06-19 00:29:25 +00:00
Malcolm Chen
dd0b2fc380 Replace isSubscriptionEnabled with isActiveSubId.
As we don't allow pSIM modem disablment, we should simply use isActiveSubId
to decide whether a subscription's preferences is changable. This will
avoid potential modem bugs that reports wrong modem status that result
in Setting's UX error.

Bug: 135222940
Test: manual and robo
Change-Id: I7cccf2fdab7c89d26dac4daad51cd5d6f3a90eba
2019-06-18 23:55:35 +00:00
Bill Yi
af3a162b90 [automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev am: d1defa1bdf -s ours
am: 38fba3b6d0 -s ours
am skip reason: subject contains skip directive

Change-Id: I518cf3dd3d4e95f2363039ed3a079600ab683794
2019-06-18 16:46:23 -07:00
Bill Yi
38fba3b6d0 [automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
am: d1defa1bdf -s ours
am skip reason: subject contains skip directive

Change-Id: I70bae5a8810c6007380091016d3883b8ddce224f
2019-06-18 16:23:36 -07:00
Antony Sargent
37ed7360a5 Merge "Use displayName instead of operator name in MMS data notification" into qt-dev am: 40e9ffc2f0
am: fa274596f0

Change-Id: I55b78412f19b54e51af36c23514f798e99b36d11
2019-06-18 16:06:15 -07:00
TreeHugger Robot
d1defa1bdf Merge "Import translations. DO NOT MERGE" into qt-dev 2019-06-18 22:55:52 +00:00
Antony Sargent
fa274596f0 Merge "Use displayName instead of operator name in MMS data notification" into qt-dev
am: 40e9ffc2f0

Change-Id: I0e2e20de501b2a5b3ee8905e69dd3a6eca97d0b1
2019-06-18 15:42:04 -07:00
Kevin Chyn
23d682873f Merge "Retrieve help URL" into qt-r1-dev
am: 509d6bcf73

Change-Id: I5c91bf36d89d9463ac74db4b949deb6abe7af58a
2019-06-18 15:16:53 -07:00
Bill Yi
b5de5bacac Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I59dd19e96657af24f4a38df050b39fcfeb5f3f40
2019-06-18 14:57:58 -07:00
Antony Sargent
40e9ffc2f0 Merge "Use displayName instead of operator name in MMS data notification" into qt-dev 2019-06-18 21:54:33 +00:00
Antony Sargent
37008824e6 Use displayName instead of operator name in MMS data notification
When the phone is in DSDS mode and the user tries to send an MMS message
from the SIM that isn't the default for data, we need to pop up a
notification letting them know that the action can't succeed unless they
turn on the advanced option to allow data use for MMS messages. This
notification was using the operator name instead of the subscription
display name, so it didn't reflect any renaming the user might have done
to keep track of their SIMs, which is obviously confusing especially if
they have two different SIMs for the same carrier. This CL switches to
using the subscription display name in this notification.

Fixes: 134771858
Test: make RunSettingsRoboTests
Change-Id: I6995bf9dd6d5e9544e26f0d8e30e97c4e73ab783
2019-06-18 21:54:22 +00:00
Matthew Fritze
63bc6a1090 MobileData slice should be null if not-actionable
In cases where MobileData should not be changed:
- Airplane mode
- No data subscriptions

we will return a null slice, rather than a slice with a no-op intent
attached as a primary action. The problem with the no-op intent is that
Slices assumes all actions are by definition, actionable, and the the
TalkBack description announces that the item is clickable, which it
really isn't.

We will in the future investigate disabled actions on Slices, but this
is the short-term fix.

Fixes: 132924748
Test: Robolectric
Test: Panel tester app
Change-Id: I1d62af32fe2dd985f0b52ea4188651e76f9c90ec
2019-06-18 14:53:21 -07:00
Bill Yi
7ec175758a Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I8bd2c1b220673e5f2d54e7d866d329791dcc9c41
2019-06-18 14:38:46 -07:00