diff options
author | Rick C <rickfitsnugly@gmail.com> | 2012-05-28 17:47:17 -0400 |
---|---|---|
committer | Rick C <rickfitsnugly@gmail.com> | 2012-05-28 17:47:17 -0400 |
commit | 6b16ca35979741aac764bb0272e6b02e3c9ef52b (patch) | |
tree | acd5dab256a0c88653331a5388924da044451c95 /policy | |
parent | 6cb233458e1a48e8e9bf874fa829b6aa8ac34d0d (diff) | |
download | frameworks_base-6b16ca35979741aac764bb0272e6b02e3c9ef52b.zip frameworks_base-6b16ca35979741aac764bb0272e6b02e3c9ef52b.tar.gz frameworks_base-6b16ca35979741aac764bb0272e6b02e3c9ef52b.tar.bz2 |
Lockscreen weather: option to invert low/high temp display (1/2)
Change-Id: Ie693e3ab0b52d3034b516635c45dba4730b61160
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java b/policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java index 150d3bb..e7cfeb7 100644 --- a/policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java +++ b/policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java @@ -373,6 +373,8 @@ class KeyguardStatusViewManager implements OnClickListener { Settings.System.WEATHER_SHOW_LOCATION, 1) == 1; boolean showTimestamp = Settings.System.getInt(resolver, Settings.System.WEATHER_SHOW_TIMESTAMP, 1) == 1; + boolean invertLowhigh = Settings.System.getInt(resolver, + Settings.System.WEATHER_INVERT_LOWHIGH, 0) == 1; if (mWeatherPanel != null) { if (mWeatherCity != null) { @@ -393,7 +395,7 @@ class KeyguardStatusViewManager implements OnClickListener { mWeatherTemp.setText(w.temp); } if (mWeatherLowHigh != null) { - mWeatherLowHigh.setText(w.low + " | " + w.high); + mWeatherLowHigh.setText(invertLowhigh ? w.high + " | " + w.low : w.low + " | " + w.high); } if (mWeatherImage != null) { |