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

Commit 2e872644 authored by Lifu Tang's avatar Lifu Tang Committed by Android (Google) Code Review
Browse files

Merge "Change the relative time format to `LONG`" into main

parents cfaedb01 c233ecca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ public class AppsPreferenceController extends BasePreferenceController implement
                pref.setIcon(Utils.getBadgedIcon(mContext, appEntry.info));
                pref.setSummary(StringUtil.formatRelativeTime(mContext,
                        System.currentTimeMillis() - stats.getLastTimeUsed(), false,
                        RelativeDateTimeFormatter.Style.SHORT));
                        RelativeDateTimeFormatter.Style.LONG));
                pref.setOrder(showAppsCount++);
                pref.setOnPreferenceClickListener(preference -> {
                    startAppInfoSettings(pkgName, appEntry.info.uid,
+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ public class RecentLocationAccessPreferenceController extends LocationBasePrefer
        pref.setTitle(access.label);
        pref.setSummary(StringUtil.formatRelativeTime(prefContext,
                System.currentTimeMillis() - access.accessFinishTime, false,
                RelativeDateTimeFormatter.Style.SHORT));
                RelativeDateTimeFormatter.Style.LONG));
        pref.setOnPreferenceClickListener(new PackageEntryClickedListener(
                fragment.getContext(), access.packageName, access.userHandle));
        return pref;