diff options
author | Patrick Dubroy <dubroy@google.com> | 2010-09-02 18:33:09 -0700 |
---|---|---|
committer | Patrick Dubroy <dubroy@google.com> | 2010-09-03 15:25:52 -0700 |
commit | 362660b35aec989137b205ce8cb8eb945c19c1a3 (patch) | |
tree | b4396186d44b505424fc3b06717295c50eccefba /src/com/android/packageinstaller/UninstallAppProgress.java | |
parent | a379e13559be314fa9021638e5721df13a2f4ffb (diff) | |
download | packages_apps_packageinstaller-362660b35aec989137b205ce8cb8eb945c19c1a3.zip packages_apps_packageinstaller-362660b35aec989137b205ce8cb8eb945c19c1a3.tar.gz packages_apps_packageinstaller-362660b35aec989137b205ce8cb8eb945c19c1a3.tar.bz2 |
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-x | src/com/android/packageinstaller/UninstallAppProgress.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/packageinstaller/UninstallAppProgress.java b/src/com/android/packageinstaller/UninstallAppProgress.java index 42d9937..ed3c6a4 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); |