diff options
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); |