From 362660b35aec989137b205ce8cb8eb945c19c1a3 Mon Sep 17 00:00:00 2001 From: Patrick Dubroy Date: Thu, 2 Sep 2010 18:33:09 -0700 Subject: Check for activity info when uninstalling. Also, switch to using standard fat title bar. --- src/com/android/packageinstaller/UninstallAppProgress.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/com/android/packageinstaller/UninstallAppProgress.java') diff --git a/src/com/android/packageinstaller/UninstallAppProgress.java b/src/com/android/packageinstaller/UninstallAppProgress.java index 42d9937d..ed3c6a46 100755 --- a/src/com/android/packageinstaller/UninstallAppProgress.java +++ b/src/com/android/packageinstaller/UninstallAppProgress.java @@ -94,10 +94,13 @@ public class UninstallAppProgress extends Activity implements OnClickListener { } public void initView() { - requestWindowFeature(Window.FEATURE_NO_TITLE); + boolean isUpdate = ((mAppInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0); + setTitle(isUpdate ? R.string.uninstall_update_title : R.string.uninstall_application_title); + setContentView(R.layout.uninstall_progress); // Initialize views - PackageUtil.initSnippetForInstalledApp(this, mAppInfo, R.id.app_snippet); + View snippetView = findViewById(R.id.app_snippet); + PackageUtil.initSnippetForInstalledApp(this, mAppInfo, snippetView); mStatusTextView = (TextView)findViewById(R.id.center_text); mStatusTextView.setText(R.string.uninstalling); mProgressBar = (ProgressBar) findViewById(R.id.progress_bar); -- cgit v1.2.3