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

Skip to content
Commit 2e6b585c authored by Mady Mellor's avatar Mady Mellor
Browse files

If android version is different & app has SAW, auto-grant bubbles

We've had developer feedback around this not applying to all versions
of android.

To address this feedback, this CL adds an attribute to save which
android version was last checked for the bubbles auto-grant. If
the current android version doesn't match whats saved, perform the
check for SAW again.

Additionally checks if the user has locked the field / changed the
bubble preference before, if so, don't modify it.

Adds a test that verifies we don't call app-ops if the version is the
same and adds a test for the versions being different.

Existing tests verify that the pref isn't overridden if it's locked.

Flag: EXEMPT bug fix
Test: atest PreferencesHelperTest
Bug: 372294507
Change-Id: Ic6c879ee4401b122c2bf9680be9dfe22d6baf15f
parent 5e560296
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