summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java
diff options
context:
space:
mode:
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java
index 339d469..f9b1f38 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java
@@ -76,6 +76,7 @@ import java.text.NumberFormat;
import cyanogenmod.app.StatusBarPanelCustomTile;
import cyanogenmod.providers.CMSettings;
+import cyanogenmod.weather.util.WeatherUtils;
import org.cyanogenmod.internal.logging.CMMetricsLogger;
/**
@@ -280,6 +281,10 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL
mClockExpandedSize = getResources().getDimensionPixelSize(R.dimen.qs_time_expanded_size);
mClockCollapsedScaleFactor = (float) mClockCollapsedSize / (float) mClockExpandedSize;
+ if (mEditTileDoneText != null) {
+ mEditTileDoneText.setText(R.string.quick_settings_done);
+ }
+
updateClockScale();
updateClockCollapsedMargin();
}
@@ -515,12 +520,12 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL
@Override
public void onWeatherChanged(WeatherController.WeatherInfo info) {
- if (info.temp == null || info.condition == null) {
+ if (Double.isNaN(info.temp) || info.condition == null) {
mWeatherLine1.setText(null);
} else {
mWeatherLine1.setText(mContext.getString(
R.string.status_bar_expanded_header_weather_format,
- info.temp,
+ WeatherUtils.formatTemperature(info.temp, info.tempUnit),
info.condition));
}
mWeatherLine2.setText(info.city);