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

Commit 6a170722 authored by lado's avatar lado
Browse files

DateView in the Notification bar is now formatted via...

DateView in the Notification bar is now formatted via com.android.internal.R.string.abbrev_wday_month_day_year

Change-Id: I69bcef36b15c6fd828d48ce4d73134b62ecb5521
parent c57b7b47
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -16,16 +16,19 @@

package com.android.systemui.statusbar;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Resources;
import android.text.format.DateFormat;

import android.util.AttributeSet;
import android.util.Slog;
import android.widget.TextView;
import android.view.MotionEvent;

import java.text.DateFormat;
import java.util.Date;

public final class DateView extends TextView {
@@ -67,7 +70,9 @@ public final class DateView extends TextView {

    private final void updateClock() {
        Date now = new Date();
        setText(DateFormat.getDateInstance(DateFormat.LONG).format(now));
        Resources res = Resources.getSystem();
        setText(DateFormat.format(res.getString(com.android.internal.R.string.abbrev_wday_month_day_year),now));
        
    }

    void setUpdates(boolean update) {