Commit Graph

13368 Commits

Author SHA1 Message Date
Amith Yamasani
9690b19636 Temporary color change to make lock pattern screen visible
Fixes the white on white in Settings when creating or confirming
a lock pattern.

Change-Id: Ie4770edbabb76b984e17b84f8f1e7c991bb2316b
2014-04-22 09:37:49 -07:00
John Spurlock
32ec088a19 Merge "Do not disturb settings page." 2014-04-22 15:04:07 +00:00
Baligh Uddin
9ee2f52b73 Merge "Import translations. DO NOT MERGE" 2014-04-22 14:51:47 +00:00
John Spurlock
cc819a67f4 Do not disturb settings page.
General section:
Create switches for Phone calls & Messages.  Contact
filtering disabled for now.

Automatic section:
Add mode switching based on a simple overnight schedule.

Bug:14211946
Change-Id: Ibb4e916cd5c9970f483858db91d6165507ceeb1a
2014-04-22 10:23:16 -04:00
Fabrice Di Meglio
891bbfdbb7 Merge "Save Search queries" 2014-04-22 01:38:47 +00:00
Fabrice Di Meglio
ab791fccf9 Save Search queries
- update database model for adding a table for saving a query
and its timestamp
- update database version
- save the query when the User tap on a Search result
- remove old queries (no more than 5 are saved)

Change-Id: I4ddff0ad660944c7fd53be64ac95397850dc60d0
2014-04-21 18:35:30 -07:00
Fabrice Di Meglio
4bedf88f3d Merge "Fix missing summary for CheckBoxPreference" 2014-04-21 23:41:13 +00:00
Fabrice Di Meglio
b7390ba585 Fix missing summary for CheckBoxPreference
- "summaryOn" and "summaryOff" were parsed but we were missing
also "summary"

Repro case: search for "adt" (from Developer options)

Change-Id: Ifa829ec6c6f86cb426432f716c2d28df8550f9ea
2014-04-21 16:40:48 -07:00
Fabrice Di Meglio
1be99217c6 Merge "Rename SettingsUtils to PrintSettingsUtils" 2014-04-21 23:00:22 +00:00
Fabrice Di Meglio
63609c58a0 Rename SettingsUtils to PrintSettingsUtils
Change-Id: I67e9222265f6326b399de3779f2210e202777ecd
2014-04-21 15:58:41 -07:00
Fabrice Di Meglio
2ce2fd2085 Merge "Fix bug #14228591 NPE in settings app when it is launched by UiAutomator" 2014-04-21 22:35:06 +00:00
Fabrice Di Meglio
6d7bb92b38 Fix bug #14228591 NPE in settings app when it is launched by UiAutomator
- test for null references

Change-Id: Iff6efc92cc16ada9f6e8f057ba9c23a241e62000
2014-04-21 15:32:28 -07:00
Baligh Uddin
9190949a83 Import translations. DO NOT MERGE
Change-Id: I04673ea4fce055c657b8b36ba765b74747495748
Auto-generated-cl: translation import
2014-04-21 13:50:52 -07:00
Fabrice Di Meglio
59a672ae4a Merge "Code cleaning" 2014-04-21 20:48:47 +00:00
Fabrice Di Meglio
7e920da656 Code cleaning
- remove duplicate semicolon

Change-Id: I807ce89dfa6b46c415a95a9c6cdc71fd3e9a2502
2014-04-21 13:46:39 -07:00
Fabrice Di Meglio
62a3ab41dc Merge "Enable Search result highlight for Accessibility and IME settings" 2014-04-21 20:29:12 +00:00
Fabrice Di Meglio
bb26141ddf Enable Search result highlight for Accessibility and IME settings
- add missing keys
- update Database version to force re-indexing (because the keys
were missing)

Change-Id: I7533d86b0f9d79d838e5c16d4bc51b7b09dffae5
2014-04-21 13:27:23 -07:00
Fabrice Di Meglio
42aacb1f50 Merge "Fix bug #14158603 Stability: NPE in Settings: Attempt to invoke... ...interface method 'boolean android.view.MenuItem.collapseActionView()' ...on a null object reference" 2014-04-21 19:46:39 +00:00
Fabrice Di Meglio
23ae00c1d8 Fix bug #14158603 Stability: NPE in Settings: Attempt to invoke...
...interface method 'boolean android.view.MenuItem.collapseActionView()'
...on a null object reference

- fix cases where mSearchMenuItem or mSearchView could be null

Change-Id: I2b0256fe2c8c1b426d4e0799881dd2f13480a00a
2014-04-21 12:43:20 -07:00
Fabrice Di Meglio
3e000df132 Merge "Fix NPE java.lang.IllegalStateException: Observer com.android.settings.SettingsPreferenceFragment$1@373ee1aa is already registered." 2014-04-21 18:49:43 +00:00
Fabrice Di Meglio
829c8fb2bc Fix NPE java.lang.IllegalStateException: Observer com.android.settings.SettingsPreferenceFragment$1@373ee1aa is already registered.
- propertly register / unregister the DataSetObserver

Change-Id: I04de3c7ec14e71591edc174ebafabe9a1fb165c2
2014-04-21 11:49:36 -07:00
Fabrice Di Meglio
842cff926c Merge "Better decoupling of Index updates in Bluetooth Settings" 2014-04-21 18:33:42 +00:00
Fabrice Di Meglio
131f49feea Better decoupling of Index updates in Bluetooth Settings
- use a Handler
- force rebuilding

Change-Id: I474fa98ea0e0758abcc46d4812f744dff24fd455
2014-04-21 11:32:39 -07:00
Fabrice Di Meglio
1105d1487a Merge "Force Search Index rebuilding for Wifi remembered networks" 2014-04-21 18:24:42 +00:00
Fabrice Di Meglio
da0e6ff8c2 Force Search Index rebuilding for Wifi remembered networks
... when the WiFi swich will be toggled on/off

Change-Id: Iea93819e4c473aafc6aaedf6abb723969dbc9e52
2014-04-21 11:24:33 -07:00
Fabrice Di Meglio
73358906d5 Merge "Better decoupling of Index updates in WiFi Settings" 2014-04-21 18:12:42 +00:00
Fabrice Di Meglio
784f266cbd Better decoupling of Index updates in WiFi Settings
- use a Handler

Change-Id: I1e35f2e437021001900468d0df2b75e53b8c62f6
2014-04-21 10:57:07 -07:00
Fabrice Di Meglio
a5c0c17304 Merge "Remove non needed code for HeaderAdapter" 2014-04-21 17:52:56 +00:00
Fabrice Di Meglio
f2dee29d66 Remove non needed code for HeaderAdapter
- before, we were showing a Swich for WiFi and Bluetooth entries
in the Headers. As this is no more the case, remove the code
that is no more usefull.

- as a side effect, we are also removing the call to update the
Search Index that was running when the Settings app was resuming
or pausing.

Change-Id: I26b40df5c7a664d196a249840638d89909b6bc24
2014-04-21 10:52:34 -07:00
Fabrice Di Meglio
d33b04ff06 Merge "Search - optimize when updating the Index is done - part 2" 2014-04-21 17:15:51 +00:00
Fabrice Di Meglio
5cda21b449 Search - optimize when updating the Index is done - part 2
- well, fix a regression when launching WiFi / Bluetooth settings
from the Quick Settings: we can only get the Intent properties
after the call to super.onCreate(...)

Change-Id: I21abbee610ad53dd0022c645268e55a6ba31a7b0
2014-04-21 10:14:28 -07:00
Fabrice Di Meglio
d4d829ff9b Merge "Search - optimize when updating the Index is done" 2014-04-21 16:43:21 +00:00
Fabrice Di Meglio
5ebabfcd35 Search - optimize when updating the Index is done
- we should only try to update the index when the Settings app is launched

Change-Id: I0543d518ea3e06804ce6fb09c987ea722bcc87cd
2014-04-21 09:42:41 -07:00
Fabrice Di Meglio
fd78ec72c3 Merge "Make highlithing delay consistent" 2014-04-21 16:33:05 +00:00
Fabrice Di Meglio
1f4140684e Make highlithing delay consistent
- set it to 400ms for HighlightingFragment as it was also 400ms
for SettingsPreferenceFragment

Change-Id: I52b910246ee557c98565dacd2bbcf57a812ea7eb
2014-04-21 09:31:36 -07:00
Fabrice Di Meglio
4ee29d0308 Merge "Enable highlighting of Print services" 2014-04-21 16:30:06 +00:00
Fabrice Di Meglio
c853a4282d Enable highlighting of Print services
- add to SettingsPreferenceFragment to know when the associated
RootAdapter is changing and thus being able to find the highlighted
Preference
- also, add the correct Search key during indexing. She should
match the one created when adding dynamically the Preference
- last, increase to 400ms the delay to do the highlight

Change-Id: I3a1a81fdf5c8ab5f3aaab29f16ea9879ab6df056
2014-04-21 09:28:17 -07:00
John Spurlock
4a35051565 App-level notification configuration settings page.
New sub-page off of notification settings to ban/unban
apps and navigate to an app's notification configuration
activity (if configured).

Centralized all notification settings artifacts under a new
settings subpackage.

Bug: 13935172
Change-Id: I53b75c02f0091900734d17dc9217035d0df9b466
2014-04-21 12:19:14 -04:00
Fabrice Di Meglio
7476f5b904 Fix Print title name in search results
- use R.string.print_settings

Change-Id: I3a945aed9efbc323e865db1cdbcfd8ceeb6b2558
2014-04-18 17:14:39 -07:00
Fabrice Di Meglio
ede1435518 Make all the Settings Switches appear again
- use the ActionBar Theme context when creating the Switch for
getting the correct Theming

Change-Id: Ic3701c53662b0f245c7149b119de8bb5cbaae232
2014-04-18 16:49:35 -07:00
Fabrice Di Meglio
255743990c Make the WiFi switch appear again
- use the ActionBar Theme context when creating the Switch for
getting the correct Theming

Change-Id: I1c44e1b1c28bf02af4c2ac9912295106d93a60e8
2014-04-18 16:18:26 -07:00
Fabrice Di Meglio
2169c88a14 Code cleaning
- use constants where needed for the tag/key
- remove wrong tag

Change-Id: I32578ce6a3a604dc0ea7168206a5d84391e2cce7
2014-04-18 15:18:40 -07:00
Fabrice Di Meglio
b63eddc240 Merge "Improve Preference highlighting" 2014-04-18 20:46:53 +00:00
Fabrice Di Meglio
f2a5226c1e Improve Preference highlighting
- use PreferenceFragment.onBindPreferences() to launch  highlighting
- improve SettingsPreferenceFragment code for highlighting: now we can
find the View to highlight thru its Tag if there is no ListAdapter available
- add HighlightingFragment for highlighting a View from its tag/key. This
is dealing with cases when the content is custom and not relying on
SettingsPreferenceFragment (like DataUsageSummary)

Also:

- improve DataUsageSummary so that onResume() is not recreating the
Tabs all the time
- add missing "android:keys" on some Security Settings preference files

Change-Id: Ib1dd8238fe2fb57c151d584c0810a0e0a5ad97c4
2014-04-18 13:42:46 -07:00
Baligh Uddin
ea6ee7caa6 am 89e96c30: (-s ours) am 54b5982f: (-s ours) Import translations. DO NOT MERGE
* commit '89e96c308cf67e492b699363d90b58516ea3bf54':
  Import translations. DO NOT MERGE
2014-04-17 19:36:22 +00:00
Baligh Uddin
89e96c308c am 54b5982f: (-s ours) Import translations. DO NOT MERGE
* commit '54b5982f148290a00fa2ff38e7e30d487cf69998':
  Import translations. DO NOT MERGE
2014-04-17 16:23:22 +00:00
Baligh Uddin
39ce3e2b1f Merge "Import translations. DO NOT MERGE" 2014-04-17 16:19:19 +00:00
Adrian Roos
b05a065a09 Remove the lockscreen widget setting
Bug: 14087729
Change-Id: Ia276411f7622fe1211528ab779a7099bb20800d4
2014-04-17 14:48:38 +02:00
Fabrice Di Meglio
03ae0fdc6d Merge "Fix potential NPE with Preference highlighting" 2014-04-17 01:26:48 +00:00
Fabrice Di Meglio
5035ec6944 Fix potential NPE with Preference highlighting
- there are some cases where the ListView adapter is null

Change-Id: I9dcd171f57d9ca7b8032d890f5a18c3a01fd38cf
2014-04-16 18:26:19 -07:00