Merge "Makes screen attention unsearchable on the devices that don't have the feature" into sc-dev am: e47e8ec5dd

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13460155

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7ff069f3482e4cf162ce1dcbd97de599ad8453be
This commit is contained in:
Yi Jiang
2021-02-02 23:16:37 +00:00
committed by Automerger Merge Worker
2 changed files with 10 additions and 7 deletions

View File

@@ -87,6 +87,7 @@ public class ScreenTimeoutSettingsTest {
com.android.internal.R.bool.config_adaptive_sleep_available);
doReturn(null).when(mContext).getSystemService(DevicePolicyManager.class);
doReturn(mResources).when(mContext).getResources();
doReturn(mResources).when(mSettings).getResources();
doReturn(mContext).when(mSettings).getContext();