Skip to content

Commit

Permalink
fixed files form Lang #8
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 5500ae4 commit 97023ff
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,6 @@ static String getTimeZoneDisplay(TimeZone tz, boolean daylight, int style, Local
private static class TimeZoneNameRule implements Rule {
private final Locale mLocale;
private final int mStyle;
private final TimeZone zone;
private final String mStandard;
private final String mDaylight;

Expand All @@ -1109,7 +1108,6 @@ private static class TimeZoneNameRule implements Rule {
TimeZoneNameRule(TimeZone timeZone, Locale locale, int style) {
mLocale = locale;
mStyle = style;
zone = timeZone;

mStandard = getTimeZoneDisplay(timeZone, false, style, locale);
mDaylight = getTimeZoneDisplay(timeZone, true, style, locale);
Expand All @@ -1131,6 +1129,7 @@ public int estimateLength() {
*/
@Override
public void appendTo(StringBuffer buffer, Calendar calendar) {
TimeZone zone = calendar.getTimeZone();
if (zone.useDaylightTime()
&& calendar.get(Calendar.DST_OFFSET) != 0) {
buffer.append(getTimeZoneDisplay(zone, true, mStyle, mLocale));
Expand Down

0 comments on commit 97023ff

Please sign in to comment.