Revert "Fixes 'no ripple effect' issue for screen attention setting"
This reverts commit20d1da2b62. Reason for revert: Based on bisection, this is the likely root cause of b/186904496 Bug: 186904496 Change-Id: I0eaa026b52610d7ef4543c32791531971e68f8e6 (cherry picked from commit30e9ba1e52)
This commit is contained in:
committed by
android-build-team Robot
parent
def508fa6f
commit
5307941cd4
@@ -60,6 +60,8 @@ public class ScreenTimeoutSettingsTest {
|
||||
private ScreenTimeoutSettings mSettings;
|
||||
private Context mContext;
|
||||
private ContentResolver mContentResolver;
|
||||
|
||||
@Mock
|
||||
private Resources mResources;
|
||||
|
||||
@Mock
|
||||
@@ -83,9 +85,7 @@ public class ScreenTimeoutSettingsTest {
|
||||
FakeFeatureFactory.setupForTest();
|
||||
mContext = spy(getApplicationContext());
|
||||
mSettings = spy(new ScreenTimeoutSettings());
|
||||
mSettings.mContext = mContext;
|
||||
mContentResolver = mContext.getContentResolver();
|
||||
mResources = spy(mContext.getResources());
|
||||
|
||||
doReturn(TIMEOUT_ENTRIES).when(mResources).getStringArray(R.array.screen_timeout_entries);
|
||||
doReturn(TIMEOUT_VALUES).when(mResources).getStringArray(R.array.screen_timeout_entries);
|
||||
|
||||
Reference in New Issue
Block a user