Instant apps should not say App Installed by
Changes the text on the app installer details to say "More info on {App Store Name}". Test: make RunSettingsRoboTests Bug: 36512295 Change-Id: I8629f840e9f4e5ce12ba91e9cb9def0db0471162
This commit is contained in:
@@ -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] -->
|
<!-- 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>
|
<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 />
|
<!-- 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 -->
|
<!-- [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>
|
<string name="app_ops_settings">App ops</string>
|
||||||
|
@@ -17,6 +17,7 @@
|
|||||||
package com.android.settings.applications;
|
package com.android.settings.applications;
|
||||||
|
|
||||||
import android.Manifest.permission;
|
import android.Manifest.permission;
|
||||||
|
import android.annotation.IdRes;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.ActivityManager;
|
import android.app.ActivityManager;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
@@ -1107,13 +1108,16 @@ public class InstalledAppDetails extends AppInfoBase
|
|||||||
if (installerLabel == null) {
|
if (installerLabel == null) {
|
||||||
return;
|
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());
|
PreferenceCategory category = new PreferenceCategory(getPrefContext());
|
||||||
category.setTitle(R.string.app_install_details_group_title);
|
category.setTitle(R.string.app_install_details_group_title);
|
||||||
screen.addPreference(category);
|
screen.addPreference(category);
|
||||||
Preference pref = new Preference(getPrefContext());
|
Preference pref = new Preference(getPrefContext());
|
||||||
pref.setTitle(R.string.app_install_details_title);
|
pref.setTitle(R.string.app_install_details_title);
|
||||||
pref.setKey("app_info_store");
|
pref.setKey("app_info_store");
|
||||||
pref.setSummary(getString(R.string.app_install_details_summary, installerLabel));
|
pref.setSummary(getString(detailsStringId, installerLabel));
|
||||||
|
|
||||||
Intent intent =
|
Intent intent =
|
||||||
AppStoreUtil.getAppStoreLink(getContext(), installerPackageName, mPackageName);
|
AppStoreUtil.getAppStoreLink(getContext(), installerPackageName, mPackageName);
|
||||||
|
Reference in New Issue
Block a user