aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in method namereplicant-6.0-0004-rc1Gabriele M2018-05-282-2/+2
| | | | | Change-Id: Iee0fc467d3ce6f658295782b57efb2027b428bc1 (cherry picked from commit 069c3d17bcc3bfe0fe3354fc1e878f66ae71975e)
* Remove Google Play Services dependencyMarvin W2017-02-181-9/+4
| | | | | | | PS2: Use PackageManagerUtils PS3: remove unused import and inline pm call Change-Id: I9efe77beb9121d97d975ab9d5cbb58fba14e2256
* LockClock: Don't forcefully enable widget calendar on resumeZhao Wei Liew2016-08-161-1/+0
| | | | | | | | | | | | | | | We were always enabling the calendar events on the widget on resume, even if the user previously disabled them. Repro case: 1. Go to "Calendar events" 2. Uncheck "Display next event" 3. Press the back button OR sleep the device 4. Go to "Calendar events" again Noticeably, "Display next event" becomes checked again. Change-Id: Ie18551d754def01ca7339fe3915d1b1663058f06
* AM/PM: Fix incorrect am/pm textStephen Bird2016-07-281-2/+6
| | | | | | | | | | | | | | | When rolling over from AM to PM (or vice versa) the text will show the incorrect time eg: At 12:00 AM the clock will still show 12:00 PM At 12:00 PM the clock will show 12:00 AM This switches our time period to the TextClock for >= API 17 so that we can get the correct time period. This also cleans up the regular am/pm textview for devices < 17. Change-Id: I09de23a1ea559a570d7cac5ffb7dbe9266f5fb40 Ticket: OPO-767
* Actually verifies if CM weather feature is availableLuis Vidal2016-06-201-1/+1
| | | | | | | | | Commit 67d9adc70b used the wrong constant which caused the weather menu to be always removed from the widget settings. Use the correct constant to check if the weather feature is available Change-Id: I389e32ddd9db40c4523baf4602436dee041c631c TICKET: CYNGNOS-3071
* Verifies if weather service is availableLuis Vidal2016-06-174-7/+43
| | | | | | | | Checks if the weather service is available in the device to make sure we don't spend time trying to update the weather or update the widget. Change-Id: I3f9adcfa260fea5cde62c0a45b355fd6946c69f1
* Unregister from WeatherManager ONLY if service was actually registeredLuis Vidal2016-06-081-3/+6
| | | | | | | | | | | Althought haven't found a way to reproduce, there are reports of IllegalArgumentException thrown by CMWeatherManager because WeatherSourceListenerService is trying to deregister itself as a weather service provider change listener when in fact was not registered. Make use of a flag to confirm if we registered. Change-Id: I75e653aa60d01d151e9858d3456a69708d9eb2cd TICKET: CYNGNOS-2989
* Report correct status if failed to process weather update requestLuis Vidal2016-06-081-1/+2
| | | | | | | | | | onNewWeatherRequest() was sending MSG_WEATHER_REQUEST_FAILED with no arguments when the request failed, causing endless weather update requests. Fix this by reporting status FAILED when all options to process the request were exhausted Change-Id: I821b86ebbab97664aa0d15650a2b3ba25f143e99 TICKET: CYNGNOS-2941
* Handle >5 forecast items in cLock Forecast viewDvTonder2016-06-071-2/+15
| | | | Change-Id: Ifd4891b990d89d1a4c535a3efb9c3db39eae7aab
* Fix weather source string translatabilityMichael Bestas2016-04-271-2/+1
| | | | | | * Also improve the string a bit Change-Id: I40c8dc167aa1cc886e06e60adb9f79f7551a89c1
* Refactor cLock to use the new Weather APILuis Vidal2016-04-2218-1631/+1163
| | | | | | | | | | | | | | | - Content provider was removed - Weather sources (Yahoo and OpenWeatherMap) were removed. Those providers will reside in their own package. - cLock was refactored to use the Weather API to process weather updates and city name disambiguation - cLock will let the active weather service provider decide whether back to back requests are OK. In other words, cLock does not enforce the 10 min wait period between requests anymore TICKET: CYNGNOS-2116 Change-Id: I87ccd5727013dbbd7e96ce0a8e3d4f766f823072
* Display humidity and wind data in forecast dialogMartin Herndl2016-04-171-0/+5
| | | | | | WeatherInfo already has the data and it just needed to be exposed Change-Id: I8819ad0cd3d0798b1bd6ae50fbc2769922d63748
* LockClock : Add external facing permission grant activityDanesh M2016-03-141-0/+75
| | | | | | Needed by SystemUI when toggling status bar weather. CYNGNOS-2222 Change-Id: I693938fcc87f12d77f8e9245dfb8456925103797
* LockClock: Enable all calendars during first time setupKhalid Zubair2016-02-201-0/+11
| | | | | | | | Calendars added later have to be manually enabled by the user. CYNGNOS-2062, CYNGNOS-1871 Change-Id: Ib43a920ce350347af41a8f32f59f581bd3c0e236
* LockClock: Disable event calendars dialog if no calendarsKhalid Zubair2016-02-181-0/+9
| | | | | | | | | Instead of showing an empty dialog, disable the preference and change the text when no calendars are available. CYNGNOS-2062 Change-Id: I5dbc71828448427053bb5f1b73b585e77b67581a
* LockClock: fix crash in calendar selectionKhalid Zubair2016-02-181-0/+2
| | | | | | | | | | onResume() was not updating the list of calendars when permission was already granted. This change fixes a NPE when clicking on the pref with null entries. CYNGNOS-1871 Change-Id: I3b690262087a0a22322c627214c27c3b64da5855
* LockClock : Switch over to new yahoo location apiDanesh M2016-02-151-22/+14
| | | | | | | geo.placefinder is no longer available. https://developer.yahoo.com/forums/#/discussion/7844/yql-geo-placefinder-is-now-shutdown%3D Change-Id: Iff949b2e28f1938265dd8074b6e332317e10f0e0
* LockClock : Update to v23 + runtime permissionsDanesh M2016-01-153-10/+123
| | | | | | CYNGNOS-1559 Change-Id: Iaefe9de0a77251b3a2d0f772405ca1d1cdb73630
* LockClock : Add api key for open weatherDanesh M2015-11-031-3/+6
| | | | | | | CYNGNOS-1227 Change-Id: Ie4f166bf2f841a679e272268bc943ff37e71f2a8 (cherry picked from commit d2d601f6979d7a5dc3c9dd645a94be89ad7d8849)
* Allow user to change background color/transparency for the widget,Zach Prezkuta2015-08-144-1/+225
| | | | | | | | for greater compatibility with various wallpapers Use slider for background transparency adjustment Change-Id: I7f1d00fd5df6ea52b127287fc17baf1477fbb9a3
* LockClock: Only show timestamp if it can fitBrandon McAnsh2015-07-142-3/+36
| | | | | | | | | * Currently in a 4x2 widget, the timestamp can be clipped at the bottom presenting a bad UX for the widget that a user will first see when booting into Trebuchet (at least on bacon, klte, and m7). * Check if the timestamp can fit based on the same logic as the calendar Change-Id: I4ae3d55ac9e27f95403d39c41266fd43fa5bcf82 Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
* Fix weird bug in LockClocknaman142015-05-181-18/+1
| | | | | | | | Clicking on weather in staus bar while in lock screen launches the ForecastActivity with weird results.Screenshot- https://www.dropbox.com/s/df6dhm729g3dt5b/Screenshot_2015-05-04-10-19-24.png?dl=0 This commit removes the unnecessary KeyGuard conditions in Lollipop causing this weird bug. Change-Id: I28f23e5aa50e4df92cbeeea38580f0e3c5c69ef2
* LockClock: Ignore "inaccurate" locationsScott Mertz2015-03-111-0/+6
| | | | | | | | - Location manager can report locations for any level of accuracy. Filter locations that are generally not useful. - Set location accuracy threshold to 50km. Change-Id: I225ed4e74edec6c5089d886c61f8d78f09b11b34
* LockClock: Reset visibility for Weather Image when weather info isRaj Yengisetty2015-03-051-0/+1
| | | | | | | | | available If weather info is unavailable the image visibility is set to INVISIBLE. So we need to reset visibility when weather info is available. Change-Id: I7d8c673a72bf71b3c397361167c2a8000194eb90
* LockClock: Materialize the UI and update for LollipopDvTonder2015-02-095-23/+28
| | | | Change-Id: I8128e7aa94bca26b012d63c1bb95bd09d31db7e0
* Fix update on next alarm changed, to work with Lollipop - Sdk version 21Henning Nielsen Lund2015-01-071-2/+2
| | | | Change-Id: I34d1dd86f16377e5cd4bfc911db2cceac8a0cb25
* cLock: Use HTTPS for Yahoo Weather API communicationZyg0te2014-12-201-3/+3
| | | | | | Yahoo Weather service supports SSL over HTTPS without issues. Change-Id: I717a4b8052260924b2cf0fe4569b5a27ab6d5cc7
* LockClock : Return condition code as part of queryDanesh M2014-09-042-3/+19
| | | | Change-Id: Ide9be5cd181576e2f61927c5027cfa4724300b90
* Fix Yahoo placefinder api call.Toha2014-06-072-5/+19
| | | | | | Some location query returns both empty city and neighborhood, use county instead. Change-Id: I71bae6236f0ae458c40567f681b0783e86030ff0
* Merge "LockClock: remove unused BroadcastReceiver" into cm-11.0Abhisek Devkota2014-05-281-18/+0
|\
| * LockClock: remove unused BroadcastReceiverRoman Birg2014-05-281-18/+0
| | | | | | | | | | | | | | | | | | The reciver manifest tag was mispelled, so the receiver never worked either way. The content provider properly triggers an udpate so this class is not needed. Change-Id: I113cc3fe5461475e365df9b5b3f8d70cae594e84 Signed-off-by: Roman Birg <roman@cyngn.com>
* | LockClock: do not use GPS if Play Services is availableRoman Birg2014-05-281-0/+13
|/ | | | | | | | | In order to conserve battery, if the device has Play Services installed (including the case where Play Services is outdated), ignore the GPS location provider. Change-Id: Iaeaa936128b91d5def10d2177a887f25c6a748f8 Signed-off-by: Roman Birg <roman@cyngn.com>
* Merge "LockClock: display date range for multi-day allday appointments" into ↵Danny Baumann2014-04-171-1/+2
|\ | | | | | | cm-11.0
| * LockClock: display date range for multi-day allday appointmentsNicolai Ehemann2014-04-111-1/+2
| | | | | | | | Change-Id: Ibe4e05ec5e5663c1db6f168c442916a5db528de9
* | LockClock: remove external force refresh actionRoman Birg2014-04-152-3/+5
| | | | | | | | | | | | | | * Let the provider handle the force refresh. Change-Id: I53db312074a93601aa0b8c712622adc617ace7e1 Signed-off-by: Roman Birg <roman@cyngn.com>
* | LockClock: add a content provider for weatherRoman Birg2014-04-103-0/+197
|/ | | | | Change-Id: I9117232cacbb9683e4f48ce741e8d86a4e49c618 Signed-off-by: Roman Birg <roman@cyngn.com>
* LockClock: detect default units based on localeRoman Birg2014-03-092-1/+18
| | | | | | | | | US, Malasia, and Sri Lanka are the only countries which still use imperial units, so do not use metric units as defualt if possible. Change-Id: Ie3d7de33fc3120926a5871b3814f488b145cd464 Signed-off-by: Roman Birg <roman@cyngn.com>
* LockClock: Workaround for OpenWeatherMap temperature crazinessDvTonder2014-01-251-5/+21
| | | | | | | OpenWeatherMap sometimes returns temperatures in Kelvin even if we ask it for deg C or deg F. Detect this and convert accordingly. Change-Id: I4041035442bb503c7bd43f761ba3d14feb791c32
* cLock: Enable up navigationMichael Bestas2014-01-081-1/+12
| | | | | | | | | | | | When the user enters cLock preferences through settings: * Up navigation is enabled * 'Done' icon on actionbar is hidden When the user enters cLock preferences by adding a new widget: * Up navigation is enabled in submenus * 'Done' icon is only visible on top preferences menu Change-Id: I3029618e0d158d766578568989f2e535593d0f41
* Port over improvements from ChronusDanny Baumann2014-01-0719-196/+1567
| | | | | | | | | | - new weather source: OpenWeatherMap - weather icon pack support - weather forecast activity and popup - updated weather and in-app icons - some new translations (AR, TR, SL) Change-Id: I2bcc2042bf83d0e0bb4a00200de1310042303e9c
* cLock: Forward port CM10.2 updatesDvTonder2013-12-097-127/+250
| | | | Change-Id: Icec530485324193f76ac7bfe48ca5ca179bd0b7b
* cLock: Dont use bold hours by defaultMichael Limb2013-12-031-1/+1
| | | | | | | KitKat no longer has bold hours on it's lockscreen, hence we should do the same for cLock Change-Id: I07aa855f783434e041986536b56a28b08534fe8e
* Tweak weather and location fetching code.Danny Baumann2013-10-233-42/+60
| | | | | | | | | | | | - Make sure to always use the smallest locality for weather lookup by location, but prefer locality1 (town) over locality2 (neighborhood) as that is what most users will expect to see. - Show progress dialog during location fetching - Ignore non-locality places - Make wind data optional. Yahoo seemingly doesn't provide wind data for some places, and we aren't really using this data anyway. Change-Id: Id841525b13b3d3e274ee9b8a82278495f9d349d3
* Fix location query under some circumstances.Danny Baumann2013-10-202-16/+16
| | | | | | | | | | | - Yahoo returns a single JSON object instead of an array in case there's only one match; adjust for that. - A postal code is not guaranteed to be returned. - Fix determination whether postal code needs to be shown: It needs to be shown when there's any duplicate name/country pair, not only if there's a duplicate to the first entry. Change-Id: I132de203cca72ec9e78ded53837540bbd0044788
* Tweak weather provider/location service codeDavid van Tonder2013-10-131-13/+39
| | | | Change-Id: I9334276560be28563530d2d503cdcba6109f099b
* Avoid NPE when closing custom location dialog.Danny Baumann2013-10-132-134/+204
| | | | | | | Also factor out custom location preference handling to own class to make it a little easier to implement. Change-Id: I081997c1ece13789ca908f3e87ebf24a25ce2fd1
* Improve weather retrieval code.Danny Baumann2013-10-1310-459/+411
| | | | | | | | | | - add weather provider abstraction - centralize yahoo specific bits at one place - switch to parsing JSON instead of XML - switch to using places instead of placefinder, which allows localized city names and custom location selection Change-Id: I5acfa084fda5024bd1af940a866fcdf77ef2895a
* Fix NullPointerException.Danny Baumann2013-10-111-0/+3
| | | | Change-Id: Ia79d9a5e3568c2d5d47c4e87df6b832c4775a263
* Fix off-by-one error.Danny Baumann2013-10-111-1/+1
| | | | Change-Id: I6d4f41ebb5fdaef45305a3050bee13c7d8314e5c
* cLock: refactoring (no functional changes): moved CalendarInfo.javaNicolai Ehemann2013-10-102-3/+4
| | | | Change-Id: I3f9ed6d70bfa1ca4d5b6f72913115048efa8a1e3