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

Commit cf9139df authored by Alex Buynytskyy's avatar Alex Buynytskyy
Browse files

Always persist the last app state changer.

Bug: 273282505
Test: manual
Change-Id: I3d1ce0924b9aa4e621829b14af879eb3f59d84d4
parent 5308553f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2217,11 +2217,11 @@ public final class Settings implements Watchable, Snappable, ResilientAtomicFile
                        }
                        if (ustate.getEnabledState() != COMPONENT_ENABLED_STATE_DEFAULT) {
                            serializer.attributeInt(null, ATTR_ENABLED, ustate.getEnabledState());
                        }
                        if (ustate.getLastDisableAppCaller() != null) {
                            serializer.attribute(null, ATTR_ENABLED_CALLER,
                                    ustate.getLastDisableAppCaller());
                        }
                        }
                        if (ustate.getInstallReason() != PackageManager.INSTALL_REASON_UNKNOWN) {
                            serializer.attributeInt(null, ATTR_INSTALL_REASON,
                                    ustate.getInstallReason());