diff options
Diffstat (limited to 'core/java/android/app/PackageInstallObserver.java')
-rw-r--r-- | core/java/android/app/PackageInstallObserver.java | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/core/java/android/app/PackageInstallObserver.java b/core/java/android/app/PackageInstallObserver.java index 1b2504e..ff28679 100644 --- a/core/java/android/app/PackageInstallObserver.java +++ b/core/java/android/app/PackageInstallObserver.java @@ -16,6 +16,7 @@ package android.app; +import android.content.Intent; import android.content.pm.IPackageInstallObserver2; import android.os.Bundle; @@ -23,9 +24,15 @@ import android.os.Bundle; public class PackageInstallObserver { private final IPackageInstallObserver2.Stub mBinder = new IPackageInstallObserver2.Stub() { @Override - public void packageInstalled(String basePackageName, Bundle extras, int returnCode, - String msg) { - PackageInstallObserver.this.packageInstalled(basePackageName, extras, returnCode, msg); + public void onUserActionRequired(Intent intent) { + PackageInstallObserver.this.onUserActionRequired(intent); + } + + @Override + public void onPackageInstalled(String basePackageName, int returnCode, + String msg, Bundle extras) { + PackageInstallObserver.this.onPackageInstalled(basePackageName, returnCode, msg, + extras); } }; @@ -34,6 +41,9 @@ public class PackageInstallObserver { return mBinder; } + public void onUserActionRequired(Intent intent) { + } + /** * This method will be called to report the result of the package * installation attempt. @@ -49,11 +59,7 @@ public class PackageInstallObserver { * basic outcome * @hide */ - public void packageInstalled(String basePackageName, Bundle extras, int returnCode) { - } - - public void packageInstalled(String basePackageName, Bundle extras, int returnCode, - String msg) { - packageInstalled(basePackageName, extras, returnCode); + public void onPackageInstalled(String basePackageName, int returnCode, String msg, + Bundle extras) { } } |