OSDN Git Service

Fix build
authorFan Zhang <zhfan@google.com>
Mon, 10 Jul 2017 17:21:23 +0000 (10:21 -0700)
committerFan Zhang <zhfan@google.com>
Mon, 10 Jul 2017 17:23:07 +0000 (10:23 -0700)
Change-Id: I0accc5b7c753ff85a56f5dfc17f7d9aa8eb7cd9a
Fix: 63525553
Test: RunSettingsRoboTests

tests/robotests/src/com/android/settings/applications/RecentAppsPreferenceControllerTest.java

index f7beaf7..2510f20 100644 (file)
@@ -184,8 +184,6 @@ public class RecentAppsPreferenceControllerTest {
         final Configuration configuration = new Configuration();
         configuration.locale = Locale.US;
         when(mMockContext.getResources().getConfiguration()).thenReturn(configuration);
-        when(mMockContext.getString(eq(R.string.battery_history_minutes_no_seconds), anyInt()))
-            .thenReturn(mContext.getString(R.string.battery_history_minutes_no_seconds, 45));
 
         mController = new RecentAppsPreferenceController(mMockContext, mAppState, null);
         mController.displayPreference(mScreen);