Shorter date format on lock screen and AOD

Test: visual
Bug: 72417398
Change-Id: I23568bd81068057523743343aebce1bd4666df70
This commit is contained in:
Lucas Dupin
2018-01-24 17:11:11 -08:00
parent ebf2577fc8
commit 3800a202cd
2 changed files with 3 additions and 1 deletions

View File

@@ -20,4 +20,6 @@
<!-- Date format for display: should match the lockscreen in /policy. -->
<string name="system_ui_date_pattern">@*android:string/system_ui_date_pattern</string>
<!-- Date format for the always on display. -->
<item type="string" name="system_ui_aod_date_pattern">eeeMMMd</item>
</resources>

View File

@@ -118,7 +118,7 @@ public class KeyguardSliceProvider extends SliceProvider implements
public boolean onCreateSliceProvider() {
mNextAlarmController = new NextAlarmControllerImpl(getContext());
mNextAlarmController.addCallback(this);
mDatePattern = getContext().getString(R.string.system_ui_date_pattern);
mDatePattern = getContext().getString(R.string.system_ui_aod_date_pattern);
registerClockUpdate(false /* everyMinute */);
updateClock();
return true;