Fix non-unique keys for location settings
Bug: 74104689 Test: Robo Change-Id: I54ead73b69a6c62897d6b99e14fa5b6627163052
This commit is contained in:
@@ -86,7 +86,7 @@ public class RecentLocationRequestPreferenceControllerTest {
|
||||
mController = spy(new RecentLocationRequestPreferenceController(
|
||||
mContext, mFragment, mLifecycle, mRecentLocationApps));
|
||||
when(mScreen.findPreference(mController.getPreferenceKey())).thenReturn(mCategory);
|
||||
when(mScreen.findPreference(mController.KEY_SEE_ALL)).thenReturn(mSeeAllButton);
|
||||
when(mScreen.findPreference(mController.KEY_SEE_ALL_BUTTON)).thenReturn(mSeeAllButton);
|
||||
final String key = mController.getPreferenceKey();
|
||||
when(mCategory.getKey()).thenReturn(key);
|
||||
when(mCategory.getContext()).thenReturn(mContext);
|
||||
|
Reference in New Issue
Block a user