summaryrefslogtreecommitdiffstats
path: root/src/com/android/packageinstaller/UninstallAppProgress.java
diff options
context:
space:
mode:
authorPatrick Dubroy <dubroy@google.com>2010-09-02 18:33:09 -0700
committerPatrick Dubroy <dubroy@google.com>2010-09-03 15:25:52 -0700
commit362660b35aec989137b205ce8cb8eb945c19c1a3 (patch)
treeb4396186d44b505424fc3b06717295c50eccefba /src/com/android/packageinstaller/UninstallAppProgress.java
parenta379e13559be314fa9021638e5721df13a2f4ffb (diff)
downloadandroid_packages_apps_PackageInstaller-362660b35aec989137b205ce8cb8eb945c19c1a3.tar.gz
android_packages_apps_PackageInstaller-362660b35aec989137b205ce8cb8eb945c19c1a3.tar.bz2
android_packages_apps_PackageInstaller-362660b35aec989137b205ce8cb8eb945c19c1a3.zip
Check for activity info when uninstalling.
Also, switch to using standard fat title bar.
Diffstat (limited to 'src/com/android/packageinstaller/UninstallAppProgress.java')
-rwxr-xr-xsrc/com/android/packageinstaller/UninstallAppProgress.java7
1 files changed, 5 insertions, 2 deletions
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);