Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java +4 −1 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.icu.text.DateFormat; import android.icu.text.DisplayContext; import android.util.AttributeSet; import android.widget.TextView; import android.provider.Settings; import com.android.systemui.R; Loading Loading @@ -117,7 +118,9 @@ public class DateView extends TextView { private String getDateFormat() { if (getContext().getResources().getBoolean(com.android.internal.R.bool.config_dateformat)) { return android.text.format.DateFormat.getDateFormat(getContext()).format(mCurrentTime); String dateformat = Settings.System.getString(getContext().getContentResolver(), Settings.System.DATE_FORMAT); return android.text.format.DateFormat.format(dateformat, mCurrentTime).toString(); } else { return mDateFormat.format(mCurrentTime); } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java +4 −1 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ import android.icu.text.DateFormat; import android.icu.text.DisplayContext; import android.util.AttributeSet; import android.widget.TextView; import android.provider.Settings; import com.android.systemui.R; Loading Loading @@ -117,7 +118,9 @@ public class DateView extends TextView { private String getDateFormat() { if (getContext().getResources().getBoolean(com.android.internal.R.bool.config_dateformat)) { return android.text.format.DateFormat.getDateFormat(getContext()).format(mCurrentTime); String dateformat = Settings.System.getString(getContext().getContentResolver(), Settings.System.DATE_FORMAT); return android.text.format.DateFormat.format(dateformat, mCurrentTime).toString(); } else { return mDateFormat.format(mCurrentTime); } Loading