diff options
-rwxr-xr-x | src/com/android/packageinstaller/UninstallAppProgress.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/packageinstaller/UninstallAppProgress.java b/src/com/android/packageinstaller/UninstallAppProgress.java index 3dfa80f..92822b8 100755 --- a/src/com/android/packageinstaller/UninstallAppProgress.java +++ b/src/com/android/packageinstaller/UninstallAppProgress.java @@ -17,6 +17,7 @@ package com.android.packageinstaller; import android.app.Activity; +import android.content.Context; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.content.pm.IPackageDeleteObserver; @@ -31,6 +32,7 @@ import android.view.View.OnClickListener; import android.widget.Button; import android.widget.ProgressBar; import android.widget.TextView; +import android.widget.Toast; /** * This activity corresponds to a download progress screen that is displayed @@ -74,7 +76,11 @@ public class UninstallAppProgress extends Activity implements OnClickListener { switch (msg.arg1) { case PackageManager.DELETE_SUCCEEDED: statusText = R.string.uninstall_done; - break; + // Show a Toast and finish the activity + Context ctx = getBaseContext(); + Toast.makeText(ctx, statusText, Toast.LENGTH_LONG).show(); + setResultAndFinish(mResultCode); + return; case PackageManager.DELETE_FAILED_DEVICE_POLICY_MANAGER: Log.d(TAG, "Uninstall failed because " + packageName + " is a device admin"); |