If the short weekday abbreviation is the same as medium, try the shortest too.
Eric Fischer [Fri, 10 Jul 2009 22:34:15 +0000 (15:34 -0700)]
This is actually the case in most locales, and in some (like French and
Polish), the short abbreviation isn't short enough to fit in the week view
header in portrait orientation without the labels overlapping.  The
one-letter abbreviation should still be understandable, and will fit.

src/com/android/calendar/CalendarView.java

index 38185a1..a608386 100644 (file)
@@ -389,6 +389,12 @@ public class CalendarView extends View
             mDayStrs[index + 7] = mDayStrs[index];
             // e.g. Tu for Tuesday
             mDayStrs2Letter[index] = DateUtils.getDayOfWeekString(i, DateUtils.LENGTH_SHORT);
+
+            // If we don't have 2-letter day strings, fall back to 1-letter.
+            if (mDayStrs2Letter[index].equals(mDayStrs[index])) {
+                mDayStrs2Letter[index] = DateUtils.getDayOfWeekString(i, DateUtils.LENGTH_SHORTEST);
+            }
+
             mDayStrs2Letter[index + 7] = mDayStrs2Letter[index];
         }