Commit Graph

27286 Commits

Author SHA1 Message Date
Sudheer Shanka
acd34a9c72 Merge "Show summary of "Add user" item" into nyc-mr1-dev 2016-08-23 23:23:08 +00:00
Doris Ling
008ba4ec40 Fix animation video render issue when Settings->Moves is resumed from
screen off.

Re-initialize the animation video if necessary when the preference is
visible to the user.

Fixes: 31023261

Test: manual -
1. Go to Settings -> Moves and verify that the animation video are
displayed correctly on load.
2. Press power button to turn screen off, then on again. Verify when
Moves settings resumes, the animation video is displayed correctly.
3. Repeat #2 above but let display time out instead of turning off
screen by power button.

Change-Id: I0ee21d23a4c402b3a8463dca3b36fce67d651993
2016-08-23 16:08:34 -07:00
Maurice Lam
497704a2cf Merge "Position fingerprint progress in the center on landscape" into nyc-mr1-dev 2016-08-23 22:57:32 +00:00
Fan Zhang
197829fb8a Force phone number display to be LTR in support tab.
am: 68c6d9956f

Change-Id: Ib5a7b11f9063af047f37a1f342ec715c590cb337
2016-08-23 22:43:30 +00:00
Maurice Lam
993d37749e Merge "Remove duplicate string for fingerprint enroll" into nyc-mr1-dev 2016-08-23 22:19:57 +00:00
Doris Ling
c4e5acedba Merge "Log settings suggestions events only once." into nyc-mr1-dev 2016-08-23 22:15:52 +00:00
Fan Zhang
83f91f61ae Use isOemUnlockEnabled to drive oem unlocking toggle.
Bug: 31031467
Test: manually turned on/off persistent_data_block

Change-Id: I21d18a898a220f9e46a53715d4b4fa01c7116e7f
2016-08-23 15:14:19 -07:00
Svetoslav Ganov
6f9bf1da90 Only sync adapters with access can see an account - settings
This change ensures that when the user tries to toggle a sync for a
sync adapter that doesn't have access to an account we show UI for
the user to approve the sync.

bug:28163381

Change-Id: I59802df6614572cf0eaf4b72a177beb111b87b34
2016-08-23 21:44:47 +00:00
Maurice Lam
05c38450e2 Add label to redaction interstitial activity
Bug: 30262038
Change-Id: Ic5f4f8b003acbe4f8735ec8da112f069b9d48e5a
(cherry picked from commit 43366f12d9)
2016-08-23 21:00:59 +00:00
Maurice Lam
5fffa74d68 Position fingerprint progress in the center on landscape
Update the layout of the landscape fingerprint enrolling screen to
be consistent with fingerprint find sensor, which vertically centers
the graphic on the right.
Also added back the accessibility live region for TalkBack.

Bug: 30288351
Bug: 30287231
Change-Id: Ia5b429215e36bbc108585aa8b14330b77ddc8584
(cherry picked from commit c81575138e)
2016-08-23 20:58:50 +00:00
Maurice Lam
64ac93ba40 Remove duplicate string for fingerprint enroll
Bug: 30661068
Change-Id: Id8ba9eee04eded2c85535a577ac0f5a83034ce96
(cherry picked from commit 56093f6f4f)
2016-08-23 20:57:28 +00:00
Fan Zhang
68c6d9956f Force phone number display to be LTR in support tab.
Bug: 31030062
Test: manual switch between LTR/RLT languages

Change-Id: I94272c0ecbfa2f96842838c0f590b3704cd5c020
(cherry picked from commit dcfdde5a2c)
2016-08-23 20:41:02 +00:00
Doris Ling
bfbb964cb1 Log settings suggestions events only once.
The show/hide settings suggestions events are logged every time Settings
is shown. Save the logged events into the state bundle so that when the
fragment is resumed, it does not re-log the suggestions events.

Also move the logging for the show suggestion event to when the suggestion
is loaded, as the suggestions can be empty when the fragment starts.

Change-Id: I644ea0012bad309e59fed0d48171915c955779cc
Fixes: 30108142
2016-08-23 13:25:06 -07:00
Doris Ling
124251d54e Add scrollbar to Settings app.
Overlay PreferenceTheme to add scrollbar to the view, and also add
scrollbar to the dashboard.

Change-Id: I2273b0825b200048bd1914923b551a593aa1e16d
Fixes: 30204662
Test: manual - Launch Settings and different sub-settings, and verify
that scrollbar is shown for screen that can be scrolled.
2016-08-23 10:46:06 -07:00
Rubin Xu
0948ce0cdb Merge "Remove duplicated call to authenticationSucceeded()" into nyc-mr1-dev 2016-08-23 13:07:02 +00:00
Rubin Xu
7a4ecbac12 Merge "Do not require MANAGE_DEVICE_ADMINS for showing admin-specifc policy transparency dialog" into nyc-mr1-dev 2016-08-23 12:59:17 +00:00
Doris Ling
6cdd5fccd8 Merge "Fix crash when selecting AppInfo for uninstalled app from Recents." into nyc-mr1-dev 2016-08-23 01:51:21 +00:00
Doris Ling
e9af5024a1 Merge "Update Jump to Camera gesture settings description text." into nyc-mr1-dev 2016-08-23 01:37:29 +00:00
Doris Ling
cf988e3d64 Merge "Fix caption text being cut off when text size is set to very large." into nyc-mr1-dev 2016-08-23 01:30:27 +00:00
Doris Ling
15c13f9e10 Merge "Fix margin in Tap & pay -> Payment default." into nyc-mr1-dev 2016-08-23 01:29:41 +00:00
TreeHugger Robot
88d3cb7176 Merge "Stop apps with Storage Managers from launching activity when disabled" into nyc-mr1-dev 2016-08-22 22:24:15 +00:00
Salvador Martinez
4c8776627b Merge "Disabled BSM mode switch when plugged in" into nyc-mr1-dev 2016-08-22 21:56:21 +00:00
Salvador Martinez
4f6755931e Merge "Made dialog material design compliant" into nyc-mr1-dev 2016-08-22 21:56:06 +00:00
Salvador Martinez
0e98c73666 Merge "Settings Focus prevented from moving to pref" into nyc-mr1-dev 2016-08-22 21:55:47 +00:00
Salvador Martinez
89d138b724 Merge "Prevent wifi icon from disappearing" into nyc-mr1-dev 2016-08-22 21:55:18 +00:00
Salvador Martinez
5b5cf5a2c7 Merge "Tests for launch support on default feature" into nyc-mr1-dev 2016-08-22 21:53:53 +00:00
Salvador Martinez
5bd202e277 Merge "can open settings with support tab by default" into nyc-mr1-dev 2016-08-22 21:53:53 +00:00
Salvador Martinez
3fb4e96b0d Tests for launch support on default feature
Includes some espresso tests to ensure that the proper
tab is selected when you attempt to launch settings.

Bug: 30233920
Change-Id: I171293114bd84b064b333091fcf2394d44debed5
(cherry picked from commit d1ef20beaa)
2016-08-22 21:52:46 +00:00
Lei Yu
2363094863 Merge "Make number in dialog highlighted" into nyc-mr1-dev 2016-08-22 21:50:29 +00:00
Lei Yu
dd90acf2c0 Merge "Fix the nullpointer bug in monkey test." into nyc-mr1-dev 2016-08-22 21:49:56 +00:00
TreeHugger Robot
45fd5c4d4e Merge "Set oem unlock switch to reflect the actual state of device" into nyc-mr1-dev 2016-08-22 21:32:44 +00:00
TreeHugger Robot
b98e47c79b Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-08-22 21:28:29 +00:00
TreeHugger Robot
5a6fad7607 Merge "Have a fallback package name when matching targetPackage." into nyc-mr1-dev 2016-08-22 21:23:48 +00:00
TreeHugger Robot
ce8a222a59 Merge "Align text to view start so they layout correctly in RTL." into nyc-mr1-dev 2016-08-22 21:17:20 +00:00
TreeHugger Robot
95c097e835 Merge "When click conditional's title, expand/collapse content." into nyc-mr1-dev 2016-08-22 20:01:17 +00:00
Bill Yi
f58be49ba8 Import translations. DO NOT MERGE
Change-Id: Ic0668c1bf03195d38aabb92176ae6ff6d6f079d2
Auto-generated-cl: translation import
2016-08-22 12:57:11 -07:00
Fan Zhang
1ba24ca792 Set oem unlock switch to reflect the actual state of device
Bug: 30772025
Change-Id: I143ceafb36f2f2091683b29d02ee64c07e44bb15
(cherry picked from commit e98178bd58)
2016-08-22 19:41:42 +00:00
Fan Zhang
be56fc17ed Align text to view start so they layout correctly in RTL.
Bug: 28011099
Change-Id: I65b7ab768c384a558f89e3bce539420454fed8a5
(cherry picked from commit 794de426da)
2016-08-22 19:40:22 +00:00
Fan Zhang
0c58131c37 Have a fallback package name when matching targetPackage.
Bug: 29774397

When figuring out best match package name, we should have a fallback.
Otherwise sometimes we get empty package names, causing problems when
trying to display memory usage for each app.

Change-Id: I9cc4205098bb7c727a3063b2275fb464c8153097
(cherry picked from commit d5ff4c4292)
2016-08-22 19:39:10 +00:00
Fan Zhang
89d7bca166 When click conditional's title, expand/collapse content.
Bug: 30200101

It used to lead user to detailed setting for that conditional. This
leaves some confusion about which click target goes to where.

Change-Id: Ic9525ace65ca488f4e709576fb1ec96a1cb99938
(cherry picked from commit a2db2ca8fa)
2016-08-22 18:30:16 +00:00
Fan Zhang
dc1e04035b Hide default phone preference when there is no phone app.
Bug: 29859821
Change-Id: Ia6de0de04d74f4f947243f38ac2bd190ae586401
(cherry picked from commit bc6fc60683)
2016-08-22 18:17:22 +00:00
Meng Wang
a928b294d9 DO NOT MERGE ANYWHERE: WiFiCallingSettings: hide wfc mode preference if not editable
am: 5ea4bb2f43  -s ours

Change-Id: Iba62c6b007ad0d68d528047896dfd88961a953cd
2016-08-22 04:46:46 +00:00
Meng Wang
5ea4bb2f43 DO NOT MERGE ANYWHERE: WiFiCallingSettings: hide wfc mode preference if not editable
Bug: 30947921
Change-Id: I80240fbd912afa9a40cee38070c4e77d5e9d6ae9
(cherry picked from commit 4436d6fe16)
2016-08-20 22:47:08 +00:00
Matthew Fritze
1051fe1e14 Stop apps with Storage Managers from launching activity when disabled
An app with a storage manager would be able to launch Manage Storage
from application settings, but when the app was disabled, the
activity would be null.

Test: In order to properly unit test this function, a large redesign is 
needed in this class, and is outside the scope of this bug.

Change-Id: Ia6b78bc6761bac8b701c904a6e438bbd951b63e8
Fixes: 30457616
(cherry picked from commit 8f17fcaa1d)
2016-08-20 00:34:31 +00:00
TreeHugger Robot
4fd371d344 Merge "Fixed storage calculation when SD card is adopted as internal storage." into nyc-mr1-dev 2016-08-19 22:40:08 +00:00
Roozbeh Pournader
a87fa8c50a Merge "Changing the languages drag handle as per the Material Design spec" into nyc-mr1-dev 2016-08-19 21:36:33 +00:00
Doris Ling
8d9b89ed5c Update Jump to Camera gesture settings description text.
Change "double-tap" to "press twice" as action is performed on a button.

Fixes: 30766938

Change-Id: Idc2573e1aff3f7a38b1cb6740f68c0c086fa48da
(cherry picked from commit 5590359376)
2016-08-19 21:25:37 +00:00
Doris Ling
0f625ae280 Fix caption text being cut off when text size is set to very large.
In landscape mode, the caption preview height is set to 100dp. When
running in tablet and setting the caption text size to Very large, 100dp
is not enough to render the complete text with all the paddings defined.
Increasing the preview height to make enough room to display the caption
text.

Change-Id: Ia45c01a16eb1829d569d71648de398d48a7e4618
Fixes: 29125201
(cherry picked from commit e797d91c83)
2016-08-19 21:22:39 +00:00
Doris Ling
9e29ac7983 Fix margin in Tap & pay -> Payment default.
Change PaddingLeft to PaddingStart so that it also works in RTL.

Change-Id: I649a89798d95d64e0c5da6eb1decd217ef7e98c7
Fixes: 28762436
(cherry picked from commit c51143a35a)
2016-08-19 21:21:38 +00:00
Doris Ling
7574b64910 Fix crash when selecting AppInfo for uninstalled app from Recents.
When an app is uninstalled, the corresponding app info is not removed
fromi the Recents tasks. If user selects that app info entry from the
recents tasks, it will failed to retrieve the app detail as the package
is already removed.

Add the package removed event listener in InstalledAppDetails such
that when the package has been unintalled, its app info task will also
be removed from Recents.

Change-Id: I771507f8f53017f87eda31ddef77a95e30921cbf
Fixes: 28671923

Fix app info crashes when package is uninstalled from terminal.

Move start listening to the package removed intents to onCreate()
and continue listening throughout the whole lifecycle of the activity so
that if user unintall the package in the background, it will still be
notified.

Change-Id: I889b0ea3e1245be83750d73349ed3a0f85a51783
Fixes: 28671923

Fix crash in Storage app info when the corresponding app is uninstalled
in the background.

1. Move the handling for package removal from InstalledAppDetails to
AppInfoBase so that all app info subclass will now finish
correspondingly if the package is uninstalled.
2. In InstalledAppDetails, when handling package removal, will also
finish the app info fragment that it starts earlier.

Change-Id: Id741e7475414045040dd0797ff3bc63ac214f400
Fixes: 27774473
2016-08-19 14:15:38 -07:00