Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb148fcf authored by djMesias's avatar djMesias
Browse files

SystemUI: show date on 2 lines in status bar

Based on: http://review.cyanogenmod.org/30263

Change-Id: If44a8177132cb445fa6cb4eb11f59e97775bccaf
parent 9fb6e7b0
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -48,12 +48,10 @@

        <com.android.systemui.statusbar.policy.DateView android:id="@+id/date"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:singleLine="true"
            android:layout_height="wrap_content"
            android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date"
            android:layout_toEndOf="@id/clock"
            android:layout_alignBaseline="@id/clock"
            android:gravity="bottom"
            android:layout_centerVertical="true"
            />
    </RelativeLayout>

+1 −1
Original line number Diff line number Diff line
@@ -18,5 +18,5 @@
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- Date format for display: should match the lockscreen in /policy.  -->
    <string name="system_ui_date_pattern">@*android:string/system_ui_date_pattern</string>
    <string name="system_ui_date_pattern">@*android:string/full_wday_month_day_no_year_split</string>
</resources>
+1 −2
Original line number Diff line number Diff line
@@ -122,8 +122,7 @@ public class DateView extends TextView implements OnClickListener, OnLongClickLi
    protected void updateClock() {
        final String dateFormat = getContext().getString(R.string.system_ui_date_pattern);
        final Locale l = Locale.getDefault();
        String fmt = ICU.getBestDateTimePattern(dateFormat, l.toString());
        SimpleDateFormat sdf = new SimpleDateFormat(fmt, l);
        SimpleDateFormat sdf = new SimpleDateFormat(dateFormat, l);
        setText(sdf.format(new Date()));
    }