diff --git a/res/layout/battery_usage_graph.xml b/res/layout/battery_usage_graph.xml index 40a0322bf25..1ab848edcf6 100644 --- a/res/layout/battery_usage_graph.xml +++ b/res/layout/battery_usage_graph.xml @@ -28,6 +28,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="16dp" + android:fontFamily="@*android:string/config_headlineFontFamily" android:textAppearance="?android:attr/textAppearanceLarge" android:textSize="36sp" android:textColor="?android:attr/colorAccent" /> diff --git a/tests/robotests/src/com/android/settings/fuelgauge/BatteryHistoryPreferenceTest.java b/tests/robotests/src/com/android/settings/fuelgauge/BatteryHistoryPreferenceTest.java index dd3feff818d..5a5e28db2f8 100644 --- a/tests/robotests/src/com/android/settings/fuelgauge/BatteryHistoryPreferenceTest.java +++ b/tests/robotests/src/com/android/settings/fuelgauge/BatteryHistoryPreferenceTest.java @@ -31,6 +31,7 @@ import com.android.settings.R; import com.android.settings.testutils.SettingsRobolectricTestRunner; import com.android.settings.TestConfig; import com.android.settings.graph.UsageView; +import com.android.settings.testutils.shadow.SettingsShadowResources; import org.junit.Before; import org.junit.Test; @@ -42,7 +43,11 @@ import org.robolectric.annotation.Config; @RunWith(SettingsRobolectricTestRunner.class) -@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION) +@Config(manifest = TestConfig.MANIFEST_PATH, sdk = TestConfig.SDK_VERSION, + shadows = { + SettingsShadowResources.class, + SettingsShadowResources.SettingsShadowTheme.class + }) public class BatteryHistoryPreferenceTest { @Mock private PreferenceViewHolder mViewHolder;