Merge "Revert "Don't use framework strings for formatting file sizes""

This commit is contained in:
Victor Chang
2018-01-04 17:35:19 +00:00
committed by Android (Google) Code Review
7 changed files with 45 additions and 92 deletions

View File

@@ -92,6 +92,8 @@ public class StorageItemPreferenceControllerTest {
@Before
public void setUp() throws Exception {
MockitoAnnotations.initMocks(this);
SettingsShadowResources.overrideResource("android:string/fileSizeSuffix", "%1$s %2$s");
SettingsShadowResources.overrideResource("android:string/gigabyteShort", "GB");
when(mFragment.getActivity()).thenReturn(mActivity);
when(mFragment.getFragmentManager()).thenReturn(mFragmentManager);
when(mFragmentManager.beginTransaction()).thenReturn(mFragmentTransaction);