OSDN Git Service

Add Weather Content Provider [5/5]
authorLuis Vidal <lvidal@cyngn.com>
Thu, 24 Mar 2016 03:03:18 +0000 (20:03 -0700)
committerSteve Kondik <steve@cyngn.com>
Sun, 9 Oct 2016 10:47:07 +0000 (03:47 -0700)
commitcf97b6b32a6edafd6c88f4b1ef8c443118eb5e5e
treec91d628068e4a38e3416ec7befd411342965c98f
parent5fb1cb702d369d978067340a930f0d1b70ff8c29
Add Weather Content Provider [5/5]

Use the Weather Content Provider in the cmsdk to pull the
weather data.

However, SystemUI will rely on LockClock to force weather
updates via the new Weather Service, which in turn will
send a broadcast when new weather data is available.

Change-Id: I3c65ea5f4cc297a7944fcdef33f496cdf2d68d0a

SystemUI: Expose weather text colors

Weather text colors in the expanded status bar are hardcoded to
white. Expose these via cm_colors so that themes can color them
however they'd like.

A martini. Shaken, not stirred.

Change-Id: I5e5a738c8b97f556562114a66d102fcb924a0493

SystemUI: Update cached weather data when temperature unit changes

Register an observer to keep track of the temperature unit
selected in settings to update the cached data accordingly

TICKET: CYNGNOS-2694

Change-Id: I92adec20835bcd6d6476d793564300611bcba4a1
packages/SystemUI/AndroidManifest.xml
packages/SystemUI/AndroidManifest_cm.xml
packages/SystemUI/res/layout/status_bar_expanded_header.xml
packages/SystemUI/res/values/cm_colors.xml [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java
packages/SystemUI/src/com/android/systemui/statusbar/policy/WeatherController.java
packages/SystemUI/src/com/android/systemui/statusbar/policy/WeatherControllerImpl.java