Commit Graph

3657 Commits

Author SHA1 Message Date
Amith Yamasani
7b56d115ba Save app toggle state as soon as possible
Delaying applying the states till onPause() sometimes results in the apps
disappearing slowly as the new user is booting up, causing failed queued up
broadcasts that result in crash dialogs. This happens mainly when the user
switch is initiated via QuickSettings->LockScreen->Switch while the App
restrictions screen is still showing. The onPause() gets called when
SetupWizard actually takes focus, which is quite late, as boot completed
and other events have already been queued.

Apply the initial toggles right away and apply any user changes when primary
is going to background, or onPause(), whichever comes first.

Bug: 8685927

Also ensure that apps with restrictions get a chance to persist their defaults
as soon as they are toggled on. The user may never actually click on the settings
icon for the app (which was the only way they were getting persisted before).

Some new strings for an upcoming change.

Change-Id: I96f453d066a91c6b15eafe9a6ce3f42d98bf5e33
2013-04-26 15:18:33 -07:00
Svetoslav
4b43e21c64 Merge "Scroll if an accessibility setting description does not fit the screen." into jb-mr2-dev 2013-04-26 22:14:47 +00:00
Svetoslav
3b2d307b89 Scroll if an accessibility setting description does not fit the screen.
1. Certain accessibility settings are shown on a separate screen with
   a toggle switch and a description. Sometimes the description does not
   fit the screen. The preference framework is using a list view for
   holding the description item. This list view was disabled, thus not
   scrolling (done to avoid drawable state change on click). Now the
   list view is enabled and the drawable state change on click problem
   is solved by setting the selector and divider drawables to a
   transparent one.

2. The layout for the list item that shows the feature description had
   an unnecessary linear layout.

bug:8632146

Change-Id: Ib81a8513158d5b8d90fa80f57720c8590022ae1a
2013-04-26 12:36:00 -07:00
Baligh Uddin
2053307bc8 Import translations. DO NOT MERGE
Change-Id: I4e1ef0256b87fef9461cd8750f9a5446eba9e91b
Auto-generated-cl: translation import
2013-04-26 10:55:51 -07:00
Baligh Uddin
a69b41bb18 Import translations. DO NOT MERGE
Change-Id: I902e886b71e60da9c34d682a8b7c4f2453c06375
Auto-generated-cl: translation import
2013-04-26 10:52:46 -07:00
Baligh Uddin
dbb504294b am 740afcb6: am f6d483e6: Merge "Import translations. DO NOT MERGE" into jb-mr2-dev
* commit '740afcb64bb967bb4eada7f7bb071706378d818a':
  Import translations. DO NOT MERGE
2013-04-25 13:50:33 -07:00
Baligh Uddin
86ef1a5d76 Import translations. DO NOT MERGE
Change-Id: Iad94d22f497a67893855012a0732678f25f8e50d
Auto-generated-cl: translation import
2013-04-25 12:05:11 -07:00
Amith Yamasani
ddb950f5ec am 7200ae73: am 868acab2: Merge "Rename limited users to restricted profiles" into jb-mr2-dev
* commit '7200ae73c784b6c180f44dc4a5da033ae4c3ca2d':
  Rename limited users to restricted profiles
2013-04-24 15:01:02 -07:00
Amith Yamasani
868acab2a0 Merge "Rename limited users to restricted profiles" into jb-mr2-dev 2013-04-24 21:54:16 +00:00
Amith Yamasani
8e6f99e22b Rename limited users to restricted profiles
Bug: 8705996
Change-Id: Ibf6a2e0e14ce095758fb9be982710b584b76f15d
2013-04-24 14:21:06 -07:00
Maggie Benthall
ea1690ea5e am 90dad640: am 8bce7c37: Merge "UI compliance for WifiSettings" into jb-mr2-dev
* commit '90dad6404c2810f9f4110ecec94000c84d7e456d':
  UI compliance for WifiSettings
2013-04-24 13:03:19 -07:00
Maggie Benthall
8bce7c37d0 Merge "UI compliance for WifiSettings" into jb-mr2-dev 2013-04-24 19:58:24 +00:00
Maggie Benthall
91c016de41 UI compliance for WifiSettings
Rename and reword string that appears in WifiSettings when user is 
restricted from modifying the networks.

Bug: 8696370
Change-Id: I1945550c05163ebff9602e4ba8ba890fece61265
2013-04-24 19:21:10 +00:00
Baligh Uddin
320b39352e Import translations. DO NOT MERGE
Change-Id: I66918f809464bcc9baf0c171ab9baf972a528f99
Auto-generated-cl: translation import
2013-04-24 10:28:56 -07:00
Baligh Uddin
243ecbe4f4 Import translations. DO NOT MERGE
Change-Id: Iddaad41f96f86f10ac141f29c97beb396c949715
Auto-generated-cl: translation import
2013-04-24 10:25:21 -07:00
Amith Yamasani
69ce9d7367 am ed0cf41d: am 99bde108: Merge "Final refactoring of the user/profile settings screen." into jb-mr2-dev
* commit 'ed0cf41d3a36769b0f7b539e0456aff9d1795339':
  Final refactoring of the user/profile settings screen.
2013-04-23 18:53:26 -07:00
Amith Yamasani
99bde10810 Merge "Final refactoring of the user/profile settings screen." into jb-mr2-dev 2013-04-24 01:49:07 +00:00
Amith Yamasani
fc8a383d42 Final refactoring of the user/profile settings screen.
Name restricted users as restricted profiles and group them all
together.

Bug: 8697415
Change-Id: I18acc6b61bfb12a8e1540eb022a73b29783789e1
2013-04-23 18:45:35 -07:00
Jake Hamby
ddfa75020e am 92359444: am 5e9bd86b: Add support to display regulatory info from *#07#.
* commit '923594446499a63c62d2d93495ed5a0cdf83afbb':
  Add support to display regulatory info from *#07#.
2013-04-23 15:27:16 -07:00
Amith Yamasani
2c670af72a am f76972ec: am 2774bc44: Merge "Fix repeating apps on pause/resume" into jb-mr2-dev
* commit 'f76972ec1f916805ff32ae09f56ab0e73b2b6df7':
  Fix repeating apps on pause/resume
2013-04-23 15:01:34 -07:00
Jake Hamby
5e9bd86bc6 Add support to display regulatory info from *#07#.
Add a new action and Activity so the phone dialer can display
regulatory info via "*#07#".

Regulatory info is supplied per device by a Settings app resource
overlay. This overlay must set the boolean resource
"config_show_regulatory_info" to true, and provide either a drawable
named "regulatory_info.png" with the info in graphical form, or a
string resource named "regulatory_info_text" containing the required
information in HTML format.

Bug: 8259869
Change-Id: I73c1431a1a6d1736f9d3e4bd5be7e3771c85cbcb
2013-04-23 13:06:54 -07:00
Svetoslav
377d933181 am 5185b8bc: am bf3391f1: Adding UI for editing the name and the picture of a limited user.
* commit '5185b8bc271d17c4ffa9dc50cc9a204f5a74937f':
  Adding UI for editing the name and the picture of a limited user.
2013-04-23 11:16:49 -07:00
Amith Yamasani
44396b974a am e6910a4c: am fce45015: Merge "Several improvements and fixes in restrictions UI" into jb-mr2-dev
* commit 'e6910a4cf2e3675a68efe7fb019ea65d719df009':
  Several improvements and fixes in restrictions UI
2013-04-23 11:16:48 -07:00
Amith Yamasani
2774bc4413 Merge "Fix repeating apps on pause/resume" into jb-mr2-dev 2013-04-23 17:13:46 +00:00
Amith Yamasani
1bad7141b4 Fix repeating apps on pause/resume
Preference list was getting duplicated on pausing and resuming the activity.

Pull the user info out of the preference list and make it a static header
so that it stays fixed. Can now remove all entries before re-adding.

Disable location by default and disable ability to change Unknown sources
 toggle.

Bug: 8685561
Bug: 8688400

Change-Id: I64ce728d5369e03ddaba562bcd66bb0720a037d2
2013-04-22 17:03:30 -07:00
Baligh Uddin
9c4bba5647 Merge "Import translations. DO NOT MERGE" into jb-mr2-dev 2013-04-22 21:45:38 +00:00
Svetoslav
bf3391f19b Adding UI for editing the name and the picture of a limited user.
A limited user may not have access to contacts, thus the settings
app has to be able to show UI for selecting a user photo from
gallery or via camera.

bug:8566861

Change-Id: I1974b1a19b0fee8c737d1345302e1b2fba108379
2013-04-22 12:12:05 -07:00
Baligh Uddin
0b7c1a2cbb Import translations. DO NOT MERGE
Change-Id: I13ce0c3329228630c2fee94df2320e0c81cd1ddd
Auto-generated-cl: translation import
2013-04-22 11:07:27 -07:00
Baligh Uddin
8da80bab8b Import translations. DO NOT MERGE
Change-Id: I08d8d19f84ddbc4ea46f4c750803af0d22199919
Auto-generated-cl: translation import
2013-04-22 11:04:06 -07:00
Amith Yamasani
fce4501512 Merge "Several improvements and fixes in restrictions UI" into jb-mr2-dev 2013-04-19 23:48:11 +00:00
Amith Yamasani
a98c402e44 Several improvements and fixes in restrictions UI
Bug: 8668906 : Add string indicating that the app has opted-in
Bug: 8663558 : Fix a crash in settings when EXTRA_RESTRICTIONS_LIST is empty
               Also accept EXTRA_RESTRICTIONS_BUNDLE as a result from custom
               restrictions activity
Bug: 8653389 : Some apps show up twice in the limited user config screen
Bug: 8653915 : Jank when adding a new limited user

Change-Id: I293148000be70850f565dbddb4c942d69142ae17
2013-04-19 16:27:09 -07:00
Jean Chalard
72db5b7f11 am 89d02a52: am 0ac95054: Add hints to some text fields for RTL
* commit '89d02a52e0f282bff1c6375b8456b556c1680a30':
  Add hints to some text fields for RTL
2013-04-19 10:36:07 -07:00
Jean Chalard
0ac950542d Add hints to some text fields for RTL
Having a hint makes sure the cursor is positioned in the right
end of the text field by default for both LTR and RTL locales.
This fixes the user dictionary "add to dictionary" interface
parts, and the "connect to hidden network" interface.

Bug: 8654823
Change-Id: I7c83d35734e53da94bb949e362c5260934ef0b76
2013-04-19 22:05:53 +09:00
Svetoslav
0fc0eb5a05 am 78c7c3fa: am 9e7a84e2: Merge "Replacing accessibility service permissions with capability attributes." into jb-mr2-dev
* commit '78c7c3faf62114a2197fbfa4dc319405c267b44d':
  Replacing accessibility service permissions with capability attributes.
2013-04-18 18:05:24 -07:00
Svetoslav
9e7a84e268 Merge "Replacing accessibility service permissions with capability attributes." into jb-mr2-dev 2013-04-19 00:57:00 +00:00
Amith Yamasani
87aa98befe am ac395aae: am d4abdd27: Reorganize users screen
* commit 'ac395aaed59a70cb2b2eb36fa3b935cb0d12b20f':
  Reorganize users screen
2013-04-17 22:17:29 -07:00
Amith Yamasani
d4abdd27ad Reorganize users screen
As per product/ux feedback, move around and rename the users.
Settings button for some users.

Fix crash in limited user when clicking on the user:
Bug: 8494377

Change-Id: I346d12646d32608b01f2c2c2c866b6da51408618
2013-04-17 21:55:06 -07:00
Svetoslav
8fdc564cd3 Replacing accessibility service permissions with capability attributes.
Accessibility services can perform special operations such as retrieve
the screen content, enable explore by touch, etc. To ensure the user
is aware that the service will perform special operations we were using
permissions. However, the special operations cannot be performed unless
the service is really enabled by the user and it is at this point that
we want to notify the user about the service capabilities.

This change adds the list of the service capabilities to the enable
warining dialog such that the user can asses whether to he/she is fine
with this service performing certain special operations.

Main change:https://googleplex-android-review.googlesource.com/#/c/298110/

bug:8633951

Change-Id: I1617fa82126b9a674cb74a15d7004a7cc007c7d3
2013-04-17 20:18:59 -07:00
Baligh Uddin
7b2305cb0e Import translations. DO NOT MERGE
Change-Id: I46b94a6c07511edfbac1fe38edee77c46e14c2cd
Auto-generated-cl: translation import
2013-04-17 11:18:30 -07:00
Baligh Uddin
cdd3238b67 Import translations. DO NOT MERGE
Change-Id: I04afe54c24573ae6980c1140aede0e0d3b0a06f8
Auto-generated-cl: translation import
2013-04-17 11:15:26 -07:00
Baligh Uddin
da06101b1e Import translations. DO NOT MERGE
Change-Id: Id1ca56661136c6d96224f8da56e9535e84b2f518
Auto-generated-cl: translation import
2013-04-15 11:15:51 -07:00
Baligh Uddin
cc41daba49 Import translations. DO NOT MERGE
Change-Id: Ia5a4c8320ec06c7aee2eeb272fc62939a7b63cce
Auto-generated-cl: translation import
2013-04-15 11:12:49 -07:00
Amith Yamasani
7f34b399fc am 9217185d: am c39dcc1c: Don\'t show developer options to secondary users
* commit '9217185d74dad396ea87e4b82597c0fe2d949efe':
  Don't show developer options to secondary users
2013-04-13 18:51:53 -07:00
Amith Yamasani
c39dcc1ce4 Don't show developer options to secondary users
Show just a message that developer options are not available for the user.

Also fix silent exit of AddAccount operation by showing a toast that user
cannot add accounts.

Bug: 7409523
Bug: 8519646
Bug: 7304007

Change-Id: Id3f430d568d6b7151ac55f86dbc0ef91803fa10c
2013-04-13 18:43:41 -07:00
Amith Yamasani
c9e8ea7b22 am c36b3969: am 34a62601: Merge "Disable apps that require an account on a limited user" into jb-mr2-dev
* commit 'c36b39696cd4110c7161f375e59d2486013b7355':
  Disable apps that require an account on a limited user
2013-04-13 15:58:34 -07:00
Amith Yamasani
34a62601ad Merge "Disable apps that require an account on a limited user" into jb-mr2-dev 2013-04-13 22:54:18 +00:00
Amith Yamasani
9517b02d43 Disable apps that require an account on a limited user
If an app is marked as requiring an account to work, disable that app
and show a message in the summary.

Also, implement graying out of icons for deselected apps.

Bug: 8600261
Change-Id: I9cf48832675c24257e09addad4316249082c30fb
2013-04-12 17:56:34 -07:00
Baligh Uddin
2d06b88cb8 Merge "Import translations. DO NOT MERGE" 2013-04-12 23:07:06 +00:00
Baligh Uddin
8054254a8a Merge "Import translations. DO NOT MERGE" into jb-mr2-dev 2013-04-12 23:06:31 +00:00
Maggie Benthall
c1fc6b1493 am 5cc298c8: am 8c32c28f: Merge "Implement Settings app UX for when a user has wifi config locked down." into jb-mr2-dev
* commit '5cc298c838e8fa6dd540624fa354e7d2fab16f92':
  Implement Settings app UX for when a user has wifi config locked down.
2013-04-12 14:38:47 -07:00