Merge "Update some Package Installer strings." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
af4aea5f95
@@ -85,14 +85,6 @@
|
||||
android:text="@string/install_confirm_question_update"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/install_confirm_question_update_system"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
style="@android:style/TextAppearance.Material.Subhead"
|
||||
android:text="@string/install_confirm_question_update_system"
|
||||
android:visibility="invisible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/install_success"
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
<!-- [CHAR LIMIT=15] -->
|
||||
<string name="install">Install</string>
|
||||
<!-- [CHAR LIMIT=15] -->
|
||||
<string name="update">Update</string>
|
||||
<!-- [CHAR LIMIT=15] -->
|
||||
<string name="done">Done</string>
|
||||
<!-- [CHAR LIMIT=15] -->
|
||||
<string name="cancel">Cancel</string>
|
||||
@@ -32,15 +34,9 @@
|
||||
<string name="install_done">App installed.</string>
|
||||
<!-- Message for installing a new app that requires some permissions [CHAR LIMIT=NONE] -->
|
||||
<!-- Message for installing a new app that does not require permissions [CHAR LIMIT=NONE] -->
|
||||
<string name="install_confirm_question">Do you want to install this application?</string>
|
||||
<string name="install_confirm_question">Do you want to install this app?</string>
|
||||
<!-- Message for updating an existing app [CHAR LIMIT=NONE] -->
|
||||
<string name="install_confirm_question_update">Do you want to install an update
|
||||
to this existing application? Your existing data will not
|
||||
be lost.</string>
|
||||
<!-- Message for updating an existing system app [CHAR LIMIT=NONE] -->
|
||||
<string name="install_confirm_question_update_system">Do you want to install an update
|
||||
to this built-in application? Your existing data will not
|
||||
be lost.</string>
|
||||
<string name="install_confirm_question_update">Do you want to update this app?</string>
|
||||
<!-- [CHAR LIMIT=100] -->
|
||||
<string name="install_failed">App not installed.</string>
|
||||
<!-- Reason displayed when installation fails because the package was blocked
|
||||
@@ -186,13 +182,13 @@
|
||||
<string name="app_name_unknown">Unknown</string>
|
||||
|
||||
<!-- Text to show in warning dialog on the tablet when the app source is not trusted [CHAR LIMIT=NONE] -->
|
||||
<string name="untrusted_external_source_warning" product="tablet">For your security, your tablet is not allowed to install unknown apps from this source.</string>
|
||||
<string name="untrusted_external_source_warning" product="tablet">For your security, your tablet currently isn’t allowed to install unknown apps from this source. You can change this in Settings.</string>
|
||||
|
||||
<!-- Text to show in warning dialog on the tv when the app source is not trusted [CHAR LIMIT=NONE] -->
|
||||
<string name="untrusted_external_source_warning" product="tv">For your security, your TV is not allowed to install unknown apps from this source.</string>
|
||||
<string name="untrusted_external_source_warning" product="tv">For your security, your TV currently isn’t allowed to install unknown apps from this source. You can change this in Settings.</string>
|
||||
|
||||
<!-- Text to show in warning dialog on the phone when the app source is not trusted [CHAR LIMIT=NONE] -->
|
||||
<string name="untrusted_external_source_warning" product="default">For your security, your phone is not allowed to install unknown apps from this source.</string>
|
||||
<string name="untrusted_external_source_warning" product="default">For your security, your phone currently isn’t allowed to install unknown apps from this source. You can change this in Settings.</string>
|
||||
|
||||
<!-- Text to show in warning dialog on the phone when the app source cannot be identified [CHAR LIMIT=NONE] -->
|
||||
<string name="anonymous_source_warning" product="default">
|
||||
|
||||
@@ -123,9 +123,8 @@ public class PackageInstallerActivity extends AlertActivity {
|
||||
View viewToEnable;
|
||||
|
||||
if (mAppInfo != null) {
|
||||
viewToEnable = (mAppInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0
|
||||
? requireViewById(R.id.install_confirm_question_update_system)
|
||||
: requireViewById(R.id.install_confirm_question_update);
|
||||
viewToEnable = requireViewById(R.id.install_confirm_question_update);
|
||||
mOk.setText(R.string.update);
|
||||
} else {
|
||||
// This is a new application with no permissions.
|
||||
viewToEnable = requireViewById(R.id.install_confirm_question);
|
||||
|
||||
Reference in New Issue
Block a user