diff options
author | Suchi Amalapurapu <asuchitra@google.com> | 2009-06-24 15:48:58 -0700 |
---|---|---|
committer | Suchi Amalapurapu <asuchitra@google.com> | 2009-06-24 16:45:00 -0700 |
commit | 3d8cab3e3e7884d628a4b799a93155c6efcab95a (patch) | |
tree | 4432ce3aa0d3d573b15ef273dfe22433d9abf5e3 /src/com/android | |
parent | b123ff94f917533f1507abcb5199fb52c830d8d1 (diff) | |
download | packages_apps_packageinstaller-3d8cab3e3e7884d628a4b799a93155c6efcab95a.zip packages_apps_packageinstaller-3d8cab3e3e7884d628a4b799a93155c6efcab95a.tar.gz packages_apps_packageinstaller-3d8cab3e3e7884d628a4b799a93155c6efcab95a.tar.bz2 |
Rename strings when uninstalling updates for system apps
Add new strings
Diffstat (limited to 'src/com/android')
-rwxr-xr-x | src/com/android/packageinstaller/UninstallAppDone.java | 1 | ||||
-rwxr-xr-x | src/com/android/packageinstaller/UninstallerActivity.java | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/com/android/packageinstaller/UninstallAppDone.java b/src/com/android/packageinstaller/UninstallAppDone.java index 73dffe3..3a9e149 100755 --- a/src/com/android/packageinstaller/UninstallAppDone.java +++ b/src/com/android/packageinstaller/UninstallAppDone.java @@ -51,7 +51,6 @@ public class UninstallAppDone extends Activity implements View.OnClickListener public void initView() { String unknown = getString(R.string.unknown); - requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.uninstall_done); TextView centerText = (TextView)findViewById(R.id.center_text); if(uninstallFlag) { diff --git a/src/com/android/packageinstaller/UninstallerActivity.java b/src/com/android/packageinstaller/UninstallerActivity.java index 0065824..bbc89e8 100755 --- a/src/com/android/packageinstaller/UninstallerActivity.java +++ b/src/com/android/packageinstaller/UninstallerActivity.java @@ -31,6 +31,7 @@ import android.view.View; import android.view.Window; import android.view.View.OnClickListener; import android.widget.Button; +import android.widget.TextView; import android.content.pm.PackageManager.NameNotFoundException; /* @@ -138,6 +139,15 @@ public class UninstallerActivity extends Activity implements OnClickListener { requestWindowFeature(Window.FEATURE_NO_TITLE); //set view setContentView(R.layout.uninstall_confirm); + TextView question = (TextView) findViewById(R.id.uninstall_question); + TextView confirm = (TextView) findViewById(R.id.uninstall_confirm_text); + if ((mAppInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0) { + question.setText(R.string.uninstall_update_question); + confirm.setText(R.string.uninstall_update_text); + } else { + question.setText(R.string.uninstall_application_question); + confirm.setText(R.string.uninstall_application_text); + } PackageUtil.initSnippetForInstalledApp(this, mAppInfo, R.id.app_snippet); //initialize ui elements mOk = (Button)findViewById(R.id.ok_button); |