Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7677cfc5 authored by Sumedh Sen's avatar Sumedh Sen Committed by Automerger Merge Worker
Browse files

Merge "Re-land "Show failure dialog when app can't be installed due to...

Merge "Re-land "Show failure dialog when app can't be installed due to secureFRP"" into main am: 9f331baa

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2848474



Change-Id: I14e9558256ffd8d671c45ce4d545004ce2af8e38
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents b25af6fa 9f331baa
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -290,7 +290,14 @@ public class InstallInstalling extends AlertActivity {
                        broadcastIntent,
                        PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);

                try {
                    session.commit(pendingIntent.getIntentSender());
                } catch (Exception e) {
                    Log.e(LOG_TAG, "Cannot install package: ", e);
                    launchFailure(PackageInstaller.STATUS_FAILURE,
                        PackageManager.INSTALL_FAILED_INTERNAL_ERROR, null);
                    return;
                }
                mCancelButton.setEnabled(false);
                setFinishOnTouchOutside(false);
            } else {