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

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

Merge "Add a never accessed subtitle to permission screens."

parents 97c96d4f 79f15515
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -408,6 +408,9 @@
    <!-- Summary for showing the time and/or date of the most recent access of a permission by an app [CHAR LIMIT=60] -->
    <string name="app_permission_most_recent_summary">Last access: <xliff:g id="time_date" example="12:42 PM">%1$s</xliff:g></string>

    <!-- Summary for showing that an app has not accessed a permission. [CHAR LIMIT=60] -->
    <string name="app_permission_never_accessed_summary">Never accessed</string>

    <!-- Header for granted permissions/apps [CHAR LIMIT=40] -->
    <string name="allowed_header">Allowed</string>

+4 −0
Original line number Diff line number Diff line
@@ -224,6 +224,10 @@ public final class AppPermissionsFragment extends SettingsWithButtonHeader {
                                lastAccessStr));
            } else {
                preference.setGroupSummary(group);
                if (preference.getSummary().length() == 0) {
                    preference.setSummary(
                            context.getString(R.string.app_permission_never_accessed_summary));
                }
            }

            if (isPlatform) {
+2 −0
Original line number Diff line number Diff line
@@ -369,6 +369,8 @@ public final class PermissionAppsFragment extends PermissionsFrameFragment imple
        if (lastAccessStr != null && !group.getLabel().equals("Storage")) {
            pref.setSummary(context.getString(R.string.app_permission_most_recent_summary,
                    lastAccessStr));
        } else {
            pref.setSummary(context.getString(R.string.app_permission_never_accessed_summary));
        }
    }