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

Commit f3d836a5 authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

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

Merge "DateView in the Notification bar is now formatted via com.android.internal.R.string.abbrev_wday_month_day_year" into gingerbread
parents b6967760 6a170722
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) {