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

Commit 4efef4dc authored by Joel Galenson's avatar Joel Galenson
Browse files

Tweak Permissions Hub strings.

Fixes: 129144537
Test: View both strings.
Change-Id: Id6b42dbef4c19e1999f158789cfe52b26185a207
parent 7cad6231
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -263,10 +263,10 @@
    <string name="permission_usage_title">Dashboard</string>

    <!-- Summary for showing a single permission access and the time of the last access when it was in the foreground [CHAR LIMIT=80] -->
    <string name="permission_usage_summary_foreground">Last access: <xliff:g id="time" example="12:10 PM">%1$s</xliff:g> &lt;font color="#0f9d58"&gt;(while the app was in use)&lt;/font&gt;</string>
    <string name="permission_usage_summary_foreground">Last access: <xliff:g id="time" example="12:10 PM">%1$s</xliff:g>\nLast accessed while app was in use</string>

    <!-- Summary for showing a single permission access and the time of the last access when it was in the background [CHAR LIMIT=80] -->
    <string name="permission_usage_summary_background">Last access: <xliff:g id="time" example="12:10 PM">%1$s</xliff:g> (in the background)</string>
    <string name="permission_usage_summary_background">Last access: <xliff:g id="time" example="12:10 PM">%1$s</xliff:g>\nLast accessed in the background</string>

    <!-- Description for showing permission accesses with any permission [CHAR LIMIT=30] -->
    <string name="permission_usage_any_permission">Any permission</string>
+4 −7
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ package com.android.packageinstaller.permission.ui.handheld;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.text.Html;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
@@ -123,13 +122,11 @@ public class PermissionControlPreference extends Preference {
     */
    public void setUsageSummary(@NonNull GroupUsage groupUsage, @NonNull String accessTimeStr) {
        if (groupUsage.getLastAccessForegroundTime() >= groupUsage.getLastAccessBackgroundTime()) {
            setSummary(Html.fromHtml(
                    mContext.getString(R.string.permission_usage_summary_foreground,
                            accessTimeStr)));
            setSummary(mContext.getString(R.string.permission_usage_summary_foreground,
                    accessTimeStr));
        } else {
            setSummary(Html.fromHtml(
                    mContext.getString(R.string.permission_usage_summary_background,
                    accessTimeStr)));
            setSummary(mContext.getString(R.string.permission_usage_summary_background,
                    accessTimeStr));
        }
    }