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
6068967fd9
Re-enable the switch into Location Settings
...
- get rid of that onIsHidingHeaders()
Change-Id: If0b3fc6900f70cb6dfb54094d1b46b44aba6290f
2014-04-04 17:02:46 -07:00
Tom O'Neill
a7f399123f
Injected settings start new task
...
- Bug: 13534214
Change-Id: I10b47f58651166a58a86efe8da2979e8f9a2a5cb
2014-03-19 10:38:05 -07:00
Lifu Tang
1bb6c75cdf
Re-register listener for the switch upon onResume
...
- Fix b/13330300
Change-Id: I6a5f97c383913dd461ec30d4e30585d325287ccc
2014-03-12 11:55:30 -07:00
Tom O'Neill
34501ae258
Ignore any summary provided for injected settings
...
Bug: 13279850
Change-Id: I1e5a39c9542b3121835f61cd0ce82612c7948cd7
2014-03-03 10:17:52 -08:00
Fabrice Di Meglio
263bcc8b73
Use Drawer in Settings app
...
- get rid of PreferenceActivity as much as we can and use fragments instead
- add Drawer widget
- add Dashboard high level entry into the Drawer (but this is work in progress and would be done in another CL)
- add bypass of fragment's Header validation when launched from the Drawer but *force* validation if external
call thru an Intent
Be aware that WifiPickerActivity should remain for now a PreferenceActivity. It is used by SetupWizard and should
not trigger running the SettingsActivity's header building code. SetupWizard is a Home during the provisionnig process
and then deactivate itself as a Home but would make the Home header to appear in the Drawer (because momentarily we
would have two Home).
Also, verified that:
- the WiFi settings still work when called from SetupWizard
- when you have multiple Launchers, the Home header will appear in the list of Headers in the Drawer
Change-Id: I407a5e0fdd843ad7615d3d511c416a44e3d97c90
2014-02-03 16:36:46 -08:00
Lifu Tang
72bafff2b8
Used BroadcastReceiver to monitor mode changes
...
- Fix b/10648447
Change-Id: Ic6dc125b6548436e9786e50bc52908c39ea4579a
2014-01-31 12:20:23 -08:00
Lifu Tang
8a4c53ac2b
Limits the broadcast to system apps only
...
- Part of b/10974059
Change-Id: I1f0b6eeece88a2ee29b76636b9ce58dcc3d71aad
2013-10-08 16:23:52 -07:00
Lifu Tang
1673fbc029
Broadcasting a message for mode changing
...
- Fix b/10974059
Change-Id: I219ea35e65a36af9f041a487dd8039bb5e2f048b
2013-10-08 09:48:41 -07:00
Lifu Tang
c120c6cf9f
Fixed crash when rotating screen
...
- Fix b/11006855
Change-Id: I406727ca4260aae006e6128835f05f5f2ed9c1a3
2013-10-01 13:02:32 -07:00
Lifu Tang
5ab9fa432d
Renamed "App settings" back to "Location services"
...
- Fix b/10610559
Change-Id: Id98a1b4e8d04238f371322fe6232647fa13b5c4a
2013-10-01 12:29:17 -07:00
Lifu Tang
5cbf971e19
Make recent location app list package based
...
- Link all items to app info pages instead of battery page
- Fix b/10855516
Change-Id: I241e81b179f468364b324ae714964fc3253cd2c9
2013-10-01 08:55:29 -07:00
Lifu Tang
9335f14082
Hacked to display Puzzle icon for GCore
...
- Fix b/10856957
Change-Id: I0716c9f5c6d818cd38dfc30a6b0b29deaa994367
2013-09-26 11:01:14 -07:00
David Christie
b1e381be21
Don't show background apps in Settings->Location (b/10806272)
...
Change-Id: I7ed0249bbc4509e4116dfc88181faccde60365e1
2013-09-23 15:52:24 -07:00
David Christie
bec860d6c4
Remove "Android System" from recent apps list in Settings (b/10855277)
...
Change-Id: I22d74c22c482786298af088abb7b25c790fd4b21
2013-09-20 18:08:54 -07:00
David Christie
8b4cdbebcf
Fix recent apps in appops.
...
Prior to this fix all apps would disappear from settings->location
15 minutes after the request was first made (even if request
was ongoing). Tested this out - apps requesting location longer
than the threshold stay in the list, and apps stay in the list exactly
the threshold time after the location request ENDS.
Change-Id: I7d4db25c615df2ec41e93b1b3191ba606d26719d
2013-09-12 18:01:28 -07:00
Tom O'Neill
b23c86dd2e
Merge "Specify user when starting service" into klp-dev
2013-09-09 20:04:27 +00:00
Tom O'Neill
7f91d86283
Specify user when starting service
...
- Improve logging
- Fix b/10621831
Change-Id: Icbb265ce53640dcf63f1c81d682f5811f196efcc
2013-09-09 10:33:52 -07:00
Lifu Tang
332822e31b
Revert "Dim icons when recent apps category is disabled"
...
This change makes all the icons in the system dimmed, not only on Location Settings page. I haven't managed to find a simple fix to that problem. I think we should abandon this feature, and revert this CL.
This reverts commit ebcd196a0b .
Change-Id: If39f2892c82643b936d2d9ff7b1d1c027018f3f6
2013-09-09 00:06:34 +00:00
Lifu Tang
ebcd196a0b
Dim icons when recent apps category is disabled
...
- Fix b/10654646
Change-Id: I7581054b0838c801cf9a6c889e8aeb9db8c7ba56
2013-09-06 20:19:33 -07:00
Lifu Tang
d3a77665ef
Gray recent apps section when location disabled
...
- Fix b/10638903
Change-Id: I1c09661b0e5ac8d089a515b64301ddfe9bcedaa9
2013-09-06 18:26:21 -07:00
Lifu Tang
0d56bb2950
Made "No Recent Apps" banner brighter
...
- Fix b/10638903
Change-Id: I83d3dc30315c05844ed57ee3065b099ce1ec1f96
2013-09-06 16:05:23 -07:00
Tom O'Neill
421dccd5dd
Restrict Settings injection to system-signed apps
...
- Also: reload the injected settings status values on mode changes
- b/10461474
Change-Id: I58c817ab8ab253aa19fa02c3cb511f26c807dc2a
2013-09-06 10:38:26 -07:00
Lifu Tang
98486fa1fa
Renamed "Location services" to "App settings"
...
- Fix b/10610559
Change-Id: I7f7167fb45ebeb045b4c0095448de0134a551eec
2013-09-03 16:38:05 -07:00
Lifu Tang
b3cd38eab4
Merge "Fixed the crash on screen rotation" into klp-dev
2013-09-03 21:26:33 +00:00
Lifu Tang
96f95212b8
Fixed the crash on screen rotation
...
- Fix b/10607566
Change-Id: I078e59af2a76deb272b870d7708ee4148c68590e
2013-09-03 13:53:16 -07:00
Tom O'Neill
81eae57f2c
Merge "Adapt to renaming of SettingInjectorService API constants" into klp-dev
2013-09-03 20:26:09 +00:00
Lifu Tang
c670c97b98
Ignores AppOps entries belonging to other users
...
- Fix b/10567352
Change-Id: I6aac030a426e5a881578b518a9cf6bad8679d087
2013-09-03 10:03:48 -07:00
Lifu Tang
06659c5a55
Merge "Creates Sipper even the consumption is very little" into klp-dev
2013-09-03 17:01:56 +00:00
Lifu Tang
ad7bfbd346
Creates Sipper even the consumption is very little
...
Change-Id: I9682f262a481f3586760b8464b96eeb22814a840
2013-09-03 08:08:02 -07:00
Lifu Tang
9294fdb6f8
Shows correct state when location sharing disabled
...
- Fix b/10553306
Change-Id: I01f69aaeb79e18ddf29da5aef7ea00938e674429
2013-08-30 17:19:09 -07:00
Tom O'Neill
1810a88e5f
Adapt to renaming of SettingInjectorService API constants
...
- Log how long it took to read the status of each setting.
- Fix some variable names.
- Affects b/10461474
Change-Id: Ic0a575f090bf7192b20e07c231bf9d7238571808
2013-08-30 10:52:55 -07:00
Lifu Tang
007994279c
Replaced ContentQueryMap with CursorLoader
...
- Piggyback a trivial typo fix from previous change
- Fix b/10228666
Change-Id: I96c4f5c434b67caf10b3406eec4f3f7c5cf846e9
2013-08-29 14:46:29 -07:00
Tom O'Neill
f06dc32163
Make sure we've finished loading settings before processing any reloads
...
- Effectively throttles case where many reloads are sent in rapid
succession.
- Simplify Handler state machine by making the state explicit instead
of implicit in the sequence of messages.
- To guard against cascading timeouts due to RAM pressure or other
systemic issues, only start additional services if there is at most one
timed out setting at a time.
- Add some log messages
- Fix b/10487253
Change-Id: Ibe21533f7b644bbadf5b56b61ca0e28b49192470
2013-08-29 10:48:13 -07:00
Lifu Tang
4fb17c1c98
Disallows setting when user restriction applies
...
- Fix b/10116533
Change-Id: Ib171f9545c1651fb36c408decefa47b3d82ba3ab
2013-08-28 13:41:20 -07:00
Tom O'Neill
9066b9140c
Merge "Switch to new location mode API recommended by API council" into klp-dev
2013-08-27 15:48:34 +00:00
Tom O'Neill
93259c14f3
Switch to new location mode API recommended by API council
...
- Part of b/10461763 fix
Change-Id: I202ce4c817f24a1682796e92fed9cc3efcc31a81
2013-08-26 14:40:54 -07:00
Tom O'Neill
b578ac4f94
Adapt to SettingsInjectorService API changes
...
- Part of fix for b/10461474
Change-Id: Ia37f444afc822a42ec21ebd2beae7aef8642547a
2013-08-26 09:47:55 -07:00
Tom O'Neill
e17ce5fb73
Handle races caused by rapid settings changed broadcasts
...
- Fix b/10447517
Change-Id: I63ef98c9023cee1a15be61b966aed06dc35e9bd5
2013-08-23 15:23:12 -07:00
Lifu Tang
32e016b5fa
Reloads status messages for injected items
...
Change-Id: I6bb95c4b7ff4118074fb51aeed31596eab1e7eef
2013-08-22 18:08:18 -07:00
Lifu Tang
08a4c33a40
Minor UI tweakings
...
* Changed PreferenceScreen to Preference.
* Adjusted the "No recent app" message layout.
* No "Location services" category when empty.
* Removed "Under Construction" finally, hooray!
Change-Id: I83fd1d7a1b0235ad21b3a5c54542e937b60b3940
2013-08-22 12:36:20 -07:00
Lifu Tang
25518c3b45
Sort "Location services" alphabetically
...
* Sort "Location services" items by title
* Throttle the rate of loading status messages
Change-Id: Iecb039a4ab94a810e11ef3e426e4a4b5c8c75c37
2013-08-21 16:52:14 -07:00
David Christie
ae95da417c
Merge "Switch location Settings and Power widget to use new Settings api." into klp-dev
2013-08-21 17:40:56 +00:00
Tom O'Neill
9facc23cd8
Merge "Move UPDATE_INTENT to SettingsInjectorService" into klp-dev
2013-08-21 14:53:19 +00:00
David Christie
512183ea8e
Switch location Settings and Power widget to use new Settings api.
...
Change-Id: I06b7a2e21876a18d9ad42fda2a6c6d4c7b6add48
2013-08-20 15:24:21 -07:00
Lifu Tang
b9ab196bb5
Sort recent apps, show message when no recent apps
...
Change-Id: I70bb1913435b46fc87aec10075e43f98ef07ef62
2013-08-19 17:56:14 -07:00
Lifu Tang
bfa96c3b10
Supress Location button when coming from Location
...
Change-Id: Ie1f1aed17206530ec7c8a1cde43a4380b7232823
2013-08-19 14:15:52 -07:00
Tom O'Neill
4a70f652ad
Move UPDATE_INTENT to SettingsInjectorService
...
Change-Id: I657c799b791e49e4af097f3cc4afdaa8f48325ac
2013-08-19 13:13:25 -07:00
Lifu Tang
c3e9ac937a
Linked the recent location apps to battery page
...
* Extracted BatteryStatsHelper from PowerUsageSummary
* Dropped the "pause" and "resume" method from the
RadioButtonPreference
* Opening battery usage page when the user clicks the recent location
apps item
Change-Id: I5a2d03271434765780154265976d8caa7f8060d8
2013-08-15 14:49:08 -07:00
Tom O'Neill
e2921c9566
Settings app supports location settings injection
...
- Partial fix for b/10287745
Change-Id: Ia5eb05670957125e70717c86a686a54b77b22455
2013-08-12 16:22:48 -07:00