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

Commit ca142592 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Correctly handle relative last access times of 0."

parents 57249341 bc136b90
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -551,7 +551,7 @@ public final class Utils {
     */
    public static @Nullable String getRelativeLastUsageString(@NonNull Context context,
            @Nullable AppPermissionUsage.GroupUsage groupUsage) {
        if (groupUsage == null) {
        if (groupUsage == null || groupUsage.getLastAccessTime() == 0) {
            return null;
        }
        return getTimeDiffStr(context, System.currentTimeMillis()