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

Commit 111f02ac authored by Bharat Singh's avatar Bharat Singh
Browse files

[SysUI][Floaty] Fix logic for saving invocation effect preferences

* Set all preferences in a single "SharedPreferences.edit" call to
  preserve atomicity
* Change data in SharedPreference only if it's different from currently
  saved data in the preference to prevent callback calls on key change
* Allow assistant to change any parameter for invocation effect config
  if the active and saved user as well as assistant is same
* If the saved assistant and user differs from active user and
  assistant, set all params related to invocation effect (set default if
  not param value not shared in setUiHints API call)

Bug: 412616963
Bug: 418685731
Test: Manual, changes work as expected with test assistant
Test: atest InvocationEffectPreferencesTest
Flag: com.android.systemui.shared.enable_lpp_assist_invocation_effect

Change-Id: I7eb20442ab1e5383ce9d368ea727e2d171ba39ef
parent 57758ae0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment