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

Commit ea38c4fa authored by Dario Freni's avatar Dario Freni Committed by Android (Google) Code Review
Browse files

Merge "Preserve active staged sessions." into qt-dev

parents b5cf2675 7f5a695b
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;