| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Change-Id: Iee0fc467d3ce6f658295782b57efb2027b428bc1
(cherry picked from commit 069c3d17bcc3bfe0fe3354fc1e878f66ae71975e)
|
|
|
|
|
|
|
| |
PS2: Use PackageManagerUtils
PS3: remove unused import and inline pm call
Change-Id: I9efe77beb9121d97d975ab9d5cbb58fba14e2256
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Ifd4891b990d89d1a4c535a3efb9c3db39eae7aab
|
|
|
|
|
|
| |
* Also improve the string a bit
Change-Id: I40c8dc167aa1cc886e06e60adb9f79f7551a89c1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
WeatherInfo already has the data and it just needed to be exposed
Change-Id: I8819ad0cd3d0798b1bd6ae50fbc2769922d63748
|
|
|
|
|
|
| |
Needed by SystemUI when toggling status bar weather.
CYNGNOS-2222
Change-Id: I693938fcc87f12d77f8e9245dfb8456925103797
|
|
|
|
|
|
|
|
| |
Calendars added later have to be manually enabled by the user.
CYNGNOS-2062, CYNGNOS-1871
Change-Id: Ib43a920ce350347af41a8f32f59f581bd3c0e236
|
|
|
|
|
|
|
|
|
| |
Instead of showing an empty dialog, disable the preference and change
the text when no calendars are available.
CYNGNOS-2062
Change-Id: I5dbc71828448427053bb5f1b73b585e77b67581a
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
geo.placefinder is no longer available.
https://developer.yahoo.com/forums/#/discussion/7844/yql-geo-placefinder-is-now-shutdown%3D
Change-Id: Iff949b2e28f1938265dd8074b6e332317e10f0e0
|
|
|
|
|
|
| |
CYNGNOS-1559
Change-Id: Iaefe9de0a77251b3a2d0f772405ca1d1cdb73630
|
|
|
|
|
|
|
| |
CYNGNOS-1227
Change-Id: Ie4f166bf2f841a679e272268bc943ff37e71f2a8
(cherry picked from commit d2d601f6979d7a5dc3c9dd645a94be89ad7d8849)
|
|
|
|
|
|
|
|
| |
for greater compatibility with various wallpapers
Use slider for background transparency adjustment
Change-Id: I7f1d00fd5df6ea52b127287fc17baf1477fbb9a3
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I8128e7aa94bca26b012d63c1bb95bd09d31db7e0
|
|
|
|
| |
Change-Id: I34d1dd86f16377e5cd4bfc911db2cceac8a0cb25
|
|
|
|
|
|
| |
Yahoo Weather service supports SSL over HTTPS without issues.
Change-Id: I717a4b8052260924b2cf0fe4569b5a27ab6d5cc7
|
|
|
|
| |
Change-Id: Ide9be5cd181576e2f61927c5027cfa4724300b90
|
|
|
|
|
|
| |
Some location query returns both empty city and neighborhood, use county instead.
Change-Id: I71bae6236f0ae458c40567f681b0783e86030ff0
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| |
| | |
cm-11.0
|
| |
| |
| |
| | |
Change-Id: Ibe4e05ec5e5663c1db6f168c442916a5db528de9
|
| |
| |
| |
| |
| |
| |
| | |
* Let the provider handle the force refresh.
Change-Id: I53db312074a93601aa0b8c712622adc617ace7e1
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|/
|
|
|
| |
Change-Id: I9117232cacbb9683e4f48ce741e8d86a4e49c618
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
Change-Id: Icec530485324193f76ac7bfe48ca5ca179bd0b7b
|
|
|
|
|
|
|
| |
KitKat no longer has bold hours on it's lockscreen, hence
we should do the same for cLock
Change-Id: I07aa855f783434e041986536b56a28b08534fe8e
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
Change-Id: I9334276560be28563530d2d503cdcba6109f099b
|
|
|
|
|
|
|
| |
Also factor out custom location preference handling to own class to
make it a little easier to implement.
Change-Id: I081997c1ece13789ca908f3e87ebf24a25ce2fd1
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
Change-Id: Ia79d9a5e3568c2d5d47c4e87df6b832c4775a263
|
|
|
|
| |
Change-Id: I6d4f41ebb5fdaef45305a3050bee13c7d8314e5c
|
|
|
|
| |
Change-Id: I3f9ed6d70bfa1ca4d5b6f72913115048efa8a1e3
|