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

Commit 5993afc4 authored by Dario Freni's avatar Dario Freni Committed by android-build-merger
Browse files

Merge "Preserve active staged sessions." into qt-dev am: ea38c4fa

am: a5e21f02

Change-Id: I2f937e2f063169fe1c976da59d70084fcdeb9206
parents 18a28dec a5e21f02
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -363,7 +363,8 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
                                System.currentTimeMillis() - session.getUpdatedMillis();
                        final boolean valid;
                        if (session.isStaged()) {
                            if (timeSinceUpdate >= MAX_TIME_SINCE_UPDATE_MILLIS) {
                            if (timeSinceUpdate >= MAX_TIME_SINCE_UPDATE_MILLIS
                                    && session.isStagedAndInTerminalState()) {
                                valid = false;
                            } else {
                                valid = true;