summaryrefslogtreecommitdiff
path: root/services/appfunctions/java
diff options
context:
space:
mode:
author bkchoi <bkchoi@google.com> 2024-09-18 03:29:41 +0000
committer Xiang Wang <xiangw@google.com> 2024-09-18 03:41:21 +0000
commit6f43ab936024415418349e97f074525b16eeb10d (patch)
tree20bd894775fb448c3b317667cee85fa172ce3851 /services/appfunctions/java
parent1cedcfeabcb37c6d88b32cd4f88f1f6c9e123cf4 (diff)
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
Diffstat (limited to 'services/appfunctions/java')
0 files changed, 0 insertions, 0 deletions