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

Commit 9ea28552 authored by Brahim Chikhaoui's avatar Brahim Chikhaoui
Browse files

Refactor: Use supportsSwitchTo() in UserManagerService

Switch from `supportsSwitchToByUser()` to `supportsSwitchTo()` for
determining user switchability.

The `supportsSwitchTo()` method is more suitable for framework-level checks as other method supportsSwitchToByUser() description indicates that it should be true if this user can be switched to by the end user through the UI. This aligns better
with the framework's requirements. when I added this logic I didn't pay attention so fixing it now.

Bug: 418022521
Flag: EXEMPT refactoring
Test: manually build and deploy in DUT
Change-Id: I1d4c7db36ecda75a46b28bd687f58740919e2de3
parent 4169cf92
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