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

Skip to content
Commit 1e7d8779 authored by Winson Chiu's avatar Winson Chiu Committed by Winson
Browse files

Only send SUSPENSION_CHANGED for changed packages

Additional fix follow up to Ie06df12ff3da6cf209fb3149e6aa80b0e63ce56e.

With the write commit refactor, this was sending unnecessary changed broadcasts.
This fixes it using a real old vs. new equality check, taking into account both
presence and deep object equality. This restricts the broadcasts to only being
sent if the package SuspendParams metadata has actually changed.

Bug: 245426112

Test: atest SuspendPackagesTest
Test: atest android.suspendapps.cts

Change-Id: Ic4287d2a7b1b8ae0779b234e5ccd8a7a0787f265
parent e775b14d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment