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

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

Merge "Instant apps should not say App Installed by" into oc-dev

parents ba7a4751 de4e0564
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3740,6 +3740,9 @@
    <!-- Manage applications, individual application info screen, summary for the option which will trigger application info in it's installer [CHAR_LIMIT=50] -->
    <string name="app_install_details_summary">App installed from <xliff:g id="app_store">%1$s</xliff:g></string>
    <!-- Manage applications, individual application info screen, summary for the option which will trigger instant app info in it's installer [CHAR_LIMIT=50] -->
    <string name="instant_app_details_summary">More info on <xliff:g id="app_store">%1$s</xliff:g></string>
    <!-- App Ops Settings --> <skip />
    <!-- [CHAR LIMIT=NONE] App ops settings title, on main settings screen. If clicked, the user is taken to a settings screen for app operations -->
    <string name="app_ops_settings">App ops</string>
+5 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.settings.applications;

import android.Manifest.permission;
import android.annotation.IdRes;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.AlertDialog;
@@ -1114,13 +1115,16 @@ public class InstalledAppDetails extends AppInfoBase
        if (installerLabel == null) {
            return;
        }
        final int detailsStringId = AppUtils.isInstant(mPackageInfo.applicationInfo)
                ? R.string.instant_app_details_summary
                : R.string.app_install_details_summary;
        PreferenceCategory category = new PreferenceCategory(getPrefContext());
        category.setTitle(R.string.app_install_details_group_title);
        screen.addPreference(category);
        Preference pref = new Preference(getPrefContext());
        pref.setTitle(R.string.app_install_details_title);
        pref.setKey("app_info_store");
        pref.setSummary(getString(R.string.app_install_details_summary, installerLabel));
        pref.setSummary(getString(detailsStringId, installerLabel));

        Intent intent =
                AppStoreUtil.getAppStoreLink(getContext(), installerPackageName, mPackageName);