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

Commit 6f43ab93 authored by bkchoi's avatar bkchoi Committed by Xiang Wang
Browse files

Fix NPE in UiModeManagerServiceTest

Replace enforceValidCallingUser() in UiModeMaangerService with
UserManagerService#enforceCurrentUserIfVisibleBackgroundEnabled().
This fixes the NPE in UiModeManagerServiceTest that was caused by
UserManagerService not being instantiated in unit tests.
Also remove redundant UiModeManagerService#enforceValidCallingUser
method.

Bug: 360925919
Flag: EXEMPT bugfix
Test: atest FrameworksUiServicesTests:com.android.server.UiModeManagerServiceTest

Change-Id: I6c6b23c55835c535dd8d140b21332a8f141eeba1
parent 1cedcfea
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