Commit Graph

56807 Commits

Author SHA1 Message Date
TreeHugger Robot
86fd3abe6a Merge "Restrict user to clear app defaults when DISALLOW_APPS_CONTROL policy is enabled." 2019-10-30 07:38:40 +00:00
TreeHugger Robot
1370361ed3 Merge "Fix animation in Night light page" 2019-10-30 07:15:35 +00:00
LuK1337
900cc96b86 Merge "Settings: Fix QrCamera crash on devices without flash" am: 68ddb3afdb am: 748ee1657f
am: 9a07055546

Change-Id: Ia93df2d63161923aa0563159f86d6238ea1f27d7
2019-10-30 00:03:03 -07:00
LuK1337
9a07055546 Merge "Settings: Fix QrCamera crash on devices without flash" am: 68ddb3afdb
am: 748ee1657f

Change-Id: Ic64d2c3a36939751891440639b5114a9df3fd184
2019-10-29 23:56:00 -07:00
TreeHugger Robot
3f2aed4952 Merge "Fix the MMS messages toggle preference not working" 2019-10-30 06:50:50 +00:00
LuK1337
748ee1657f Merge "Settings: Fix QrCamera crash on devices without flash"
am: 68ddb3afdb

Change-Id: I55006fe0d94a6a80574437c7b4a55c261013a2bf
2019-10-29 23:49:58 -07:00
Treehugger Robot
68ddb3afdb Merge "Settings: Fix QrCamera crash on devices without flash" 2019-10-30 06:29:47 +00:00
Edgar Wang
44187c0bb3 Restrict user to clear app defaults when DISALLOW_APPS_CONTROL policy is enabled.
- In App Info -> Open by defult -> Other defaults -> Clear defaults
   User should not able to clear app defaults when DISALLOW_APPS_CONTROL
   policy is enabled

Fixes: 140934406
Test: manual & robotest
Change-Id: Ia1aea3846d96b6faf9a1953101bafa4d2992322b
2019-10-30 14:18:51 +08:00
Raff Tsai
acd5d10e0d Fix animation in Night light page
Fixes: 143582072
Test: manual
Change-Id: I28c9dd48cec9cfbe76234f8e4b370bc79febe7dd
2019-10-30 13:45:40 +08:00
Sunny Shao
054e0eab87 Fix the MMS messages toggle preference not working
- MMS messages toggle preference doesn't work while the default Mobile data is on then switches off.
- Recall the displayPreference to execute the preference.setOnPreferenceChangeListener
  in the AbstractPreferenceController.

Fixes: 143204818
Test: make RunSettingsGoogleRoboTests -j ROBOTEST_FILTER=com.android.settings.network.telephony.MmsMessagePreferenceControllerTest
Change-Id: Ida65d04b095b7d2556fa5bdd93be7a67cba77206
2019-10-30 05:34:18 +00:00
LuK1337
b056ea70f0 Settings: Fix QrCamera crash on devices without flash
Change-Id: Ife34b5fb87a9a4f509b665a3433e0b2ba857c885
2019-10-30 02:45:08 +00:00
TreeHugger Robot
fe5b2d9624 Merge "Remove permission bar chart in Privacy setting" 2019-10-30 02:20:23 +00:00
TreeHugger Robot
1233e2dcf1 Merge "Import translations. DO NOT MERGE" 2019-10-30 00:34:38 +00:00
Quang Luong
1a5b620a19 User WifiPickerTracker API for saved network preference text
Change the source of the saved network preference text from WifiManager
to WifiPickerTracker and update it through the
WifiPickerTrackerCallback.

Bug: 70983952
Test: atest WifiSettings2Test
Change-Id: Ia0a61f174a061892cd9376c16402e4983eaaa03c
2019-10-29 16:23:31 -07:00
Bill Yi
9d48cb2f53 Import translations. DO NOT MERGE
Change-Id: Ic95641a6dc751442c21a717d64b5c278f1838852
Auto-generated-cl: translation import
2019-10-29 15:39:40 -07:00
Quang Luong
652fa61905 Use WifiPickerTracker instead of WifiTracker2
WifiTracker2 is being split into separate trackers for each fragment
that needs tracking functionality (Wifi picker, Saved Networks Page,
Network Details Page). For WifiSettings2, we will use WifiPickerTracker
which differs from WifiTracker2 by only having the functionality
required for the wifi picker.

Bug: 70983952
Test: WifiSettings2Test.java
Change-Id: Ia94fa534ead7c521156d1cccbb120a345d95e020
2019-10-29 14:17:03 -07:00
Raff Tsai
28fbb6bb63 Merge "Settings: Respect preference's visibility in VideoPreferenceController" am: 0e40f46fe2 am: 447674e100 am: 4cbb60c344
am: 54ef0fcbc0

Change-Id: I2e07ee23c26bbb9f2a08812c23d6d16e88407bf3
2019-10-29 10:30:34 -07:00
Raff Tsai
54ef0fcbc0 Merge "Settings: Respect preference's visibility in VideoPreferenceController" am: 0e40f46fe2 am: 447674e100
am: 4cbb60c344

Change-Id: I2c4a9774c2ae463ed80810dc95a298e1302f4b5f
2019-10-29 10:24:05 -07:00
Raff Tsai
4cbb60c344 Merge "Settings: Respect preference's visibility in VideoPreferenceController" am: 0e40f46fe2
am: 447674e100

Change-Id: I9680dc02dc96fc324b019c027d08271fb27b4506
2019-10-29 10:19:05 -07:00
Raff Tsai
447674e100 Merge "Settings: Respect preference's visibility in VideoPreferenceController"
am: 0e40f46fe2

Change-Id: Iecf7610d41896a5fa0ae7d6aa0ca0de75463eb7e
2019-10-29 10:12:05 -07:00
Raff Tsai
0e40f46fe2 Merge "Settings: Respect preference's visibility in VideoPreferenceController" 2019-10-29 16:39:13 +00:00
LuK1337
9c3ab97182 Settings: Respect preference's visibility in VideoPreferenceController
* Since AbstractPreferenceController's displayPreference()
  sets the visibility based on isAvailable() we need to
  set mVideoPreference early and make getAvailabilityStatus()
  return UNSUPPORTED_ON_DEVICE if needed.

Test: manual, open battery manager
Change-Id: Ibf72971b49fa1162fb99f9fc61cbb54ba39a2dfa
2019-10-29 15:39:27 +01:00
Ivan Podogov
2c3ba517fe Use AOSP intent for Work Policy Info
Bug: 134391103
Test: make, GTS, robotest
Change-Id: I8870621538aa7d2d4a5313efdf41119fd36daee5
2019-10-29 10:02:06 +00:00
Jason Chiu
3e4c47dbc0 Fix Settings creating too many threads unexpectedly
Limit the number of threads by using the shared thread pool in
ThreadUtils.

Bug: 143434413
Test: manual
Change-Id: I4afe1f641a11e218616772c1d5446efcc99cd1cc
2019-10-29 17:19:04 +08:00
TreeHugger Robot
7d744c8f18 Merge "Fix BTHS is still in pairing list after BTHS is connected" 2019-10-29 08:39:49 +00:00
TreeHugger Robot
3420c6b0f5 Merge "Fix NullPointerException" 2019-10-29 08:30:35 +00:00
Raff Tsai
e223b33632 Fix NullPointerException
initLoader will reuse the old loader associated with fragment.
But the fragment is destroyed. Use restartLoader which will
create another loader with new fragment.

Fixes: 143445993
Test: rebuild
Change-Id: I0a8a00ae94122f25d6d860b2512108ecd11d7806
2019-10-29 14:20:09 +08:00
Arc Wang
f30d10abf3 Merge "[Wi-Fi] Support passport R1 expiration handling" 2019-10-29 05:50:34 +00:00
hughchen
e45897b462 Fix BTHS is still in pairing list after BTHS is connected
This CL uses onProfileConnectionStateChanged() to handle
the case that bonded device is connected in pairing list.

1. Finish BluetoothPairingDetail page if the bonded device is connected
and selected.
2. Remove the devices in BluetoothPairingDetail page if the device is
connected.

Bug: 142519901
Test: make -j42 RunSettingsRoboTests
Change-Id: I51a9f2ebc0b491edb8ea026ff62ec20ae91eee1d
2019-10-29 02:35:04 +00:00
TreeHugger Robot
29e21c096a Merge "Fix UI janky in privacy settings" 2019-10-28 12:55:26 +00:00
Josh Hou
2f151c61c7 [automerger skipped] Merge changes Ibec13fbe,If89c67c0 am: 27bf33e053 am: e8a6c02fd2 am: 03c9ec1223
am: 0fe6fc26ad -s ours
am skip reason: change_id Ibec13fbeb5acf1d62342286687b2ba969beb4e14 with SHA1 c101faeb2b is in history

Change-Id: I42c0f962b5b2b069a6170fc1b454ec1dcfa4b630
2019-10-28 05:50:14 -07:00
Youming Ye
643986d400 [automerger skipped] Check the missing useHomeWfMode case am: 001a2e774d -s ours am: 2f76a7cf7f -s ours am: 1cbc4be25a -s ours
am: 38489bf97c -s ours
am skip reason: change_id If89c67c0595808a1339517c6084f1d1e23f5974b with SHA1 b7923f5a3f is in history

Change-Id: If5d622d30295caae274aaae0ccf407930849afeb
2019-10-28 05:50:05 -07:00
Josh Hou
0fe6fc26ad Merge changes Ibec13fbe,If89c67c0 am: 27bf33e053 am: e8a6c02fd2
am: 03c9ec1223

Change-Id: I8dc1754d631ac16a99e1c92776a2756ca5b8269e
2019-10-28 05:43:11 -07:00
Youming Ye
38489bf97c [automerger skipped] Check the missing useHomeWfMode case am: 001a2e774d -s ours am: 2f76a7cf7f -s ours
am: 1cbc4be25a -s ours
am skip reason: change_id If89c67c0595808a1339517c6084f1d1e23f5974b with SHA1 b7923f5a3f is in history

Change-Id: I28a0d69e47521305e3d60ed01f067cc1d9110bdb
2019-10-28 05:43:03 -07:00
Josh Hou
03c9ec1223 Merge changes Ibec13fbe,If89c67c0 am: 27bf33e053
am: e8a6c02fd2

Change-Id: I1823e81857f95d7bcd6c1d5e7d840900b38c9d2d
2019-10-28 05:37:47 -07:00
Youming Ye
1cbc4be25a [automerger skipped] Check the missing useHomeWfMode case am: 001a2e774d -s ours
am: 2f76a7cf7f -s ours
am skip reason: change_id If89c67c0595808a1339517c6084f1d1e23f5974b with SHA1 b7923f5a3f is in history

Change-Id: I228b640c309f775cb0b136fccc204b95f8ee4140
2019-10-28 05:37:39 -07:00
Josh Hou
e8a6c02fd2 Merge changes Ibec13fbe,If89c67c0
am: 27bf33e053

Change-Id: I661976aa6161d80aa23f47424828336cc7ca6ae6
2019-10-28 05:31:32 -07:00
Youming Ye
2f76a7cf7f [automerger skipped] Check the missing useHomeWfMode case
am: 001a2e774d -s ours
am skip reason: change_id If89c67c0595808a1339517c6084f1d1e23f5974b with SHA1 b7923f5a3f is in history

Change-Id: Ife1a5829ae16ce63f6cd2df85bd94196af11600e
2019-10-28 05:31:19 -07:00
Josh Hou
27bf33e053 Merge changes Ibec13fbe,If89c67c0
* changes:
  Fix ViLTE is not available when WiFi Calling is disabled
  Check the missing useHomeWfMode case
2019-10-28 12:18:53 +00:00
Josh Hou
e2cdd74174 Fix ViLTE is not available when WiFi Calling is disabled
Bug: 141831293
Test: 1. Set carrier config carrier_wfc_ims_available_bool to false,
then verify Wi-Fi calling option is not shown.
      2. Set carrier config carrier_vt_available_bool to false, then
      verify video calling option is not shown.
      3. Set both carrier_wfc_ims_available_bool and
      carrier_vt_available_bool to false, then verify calling category
      is not shown.

Change-Id: Ibec13fbeb5acf1d62342286687b2ba969beb4e14
Merged-In: Ibec13fbeb5acf1d62342286687b2ba969beb4e14
2019-10-28 11:12:49 +00:00
Tsung-Mao Fang
ab914adc00 Remove permission bar chart in Privacy setting
- Because permission hub is already postponed,
we don't need to show this UI in privacy settings.

Test: Rebuild, visual, robotest
Change-Id: I51aca52bc605a3c6b0cafc084e8e491c280d770f
Fix: 143447873
2019-10-28 19:00:44 +08:00
Tsung-Mao Fang
327dba2488 Fix UI janky in privacy settings
Set a summary holder for initial preference at the biginning.
If there is no any permission granted, then set a string for it.

Test: Rebuild, visual
Fixes: 140783222
Change-Id: Ic5f2730123110bad5fbc08fcd22b1df564b8637d
2019-10-28 18:39:11 +08:00
Youming Ye
001a2e774d Check the missing useHomeWfMode case
Bug: 133812904
Test: Build
Change-Id: If89c67c0595808a1339517c6084f1d1e23f5974b
Merged-In: If89c67c0595808a1339517c6084f1d1e23f5974b
2019-10-28 10:16:24 +00:00
Arc Wang
cdc098553f Merge "[Wi-Fi] Fix Wi-Fi QR code camera bug" 2019-10-28 08:47:11 +00:00
Arc Wang
cdfd1ff192 [Wi-Fi] Fix Wi-Fi QR code camera bug
Should not setPreviewSize from the value of getBestPictureSize.

Bug: 142630420
Test: QrCameraTest
      manual:
      visually make sure QR code scanner image not distorted.

Change-Id: I280beddac95ed65118af802c396d15da306e029b
2019-10-28 12:03:38 +08:00
Bill Yi
ac9fd3d474 [automerger skipped] Import translations. DO NOT MERGE am: ff9bcdbcd3 -s ours
am: 07145c6239 -s ours
am skip reason: subject contains skip directive

Change-Id: I4383f0dc65b26c48d7fc181caf574587abc5264d
2019-10-27 13:28:03 -07:00
Bill Yi
07145c6239 [automerger skipped] Import translations. DO NOT MERGE
am: ff9bcdbcd3 -s ours
am skip reason: subject contains skip directive

Change-Id: Ie1857bf7a0dbdc7dc1ae391998b56ee6d145506a
2019-10-27 13:21:32 -07:00
Bill Yi
ff9bcdbcd3 Import translations. DO NOT MERGE
Change-Id: I519674aef33bc822977cf0e00edf02aff7b8245f
Auto-generated-cl: translation import
2019-10-27 08:01:49 -07:00
Jack Yu
a2a4929529 Merge "Change Wi-Fi Calling text for SFR France" am: 49358c53b2 am: 7ddc969d3a am: eebac038d7
am: 90f075b074

Change-Id: Id65727134928fa67328586a99a0b36544a4e3695
2019-10-27 00:57:57 -07:00
Jack Yu
90f075b074 Merge "Change Wi-Fi Calling text for SFR France" am: 49358c53b2 am: 7ddc969d3a
am: eebac038d7

Change-Id: I05af78b747dee65d62fb2fdfb67c4677aea0abf2
2019-10-27 00:51:14 -07:00