Merge "Fix robolectric tests"

This commit is contained in:
TreeHugger Robot
2017-11-29 22:51:27 +00:00
committed by Android (Google) Code Review
5 changed files with 9 additions and 7 deletions

View File

@@ -65,7 +65,7 @@
android:orientation="vertical">
<Button
android:id="@android:id/text1"
style="@style/SupportPrimaryButton"
style="@style/ActionPrimaryButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"/>
@@ -86,7 +86,7 @@
android:orientation="vertical">
<Button
android:id="@android:id/text2"
style="@style/SupportPrimaryButton"
style="@style/ActionPrimaryButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"/>

View File

@@ -56,7 +56,7 @@
</LinearLayout>
<Button
android:id="@android:id/text1"
style="@style/SupportPrimaryButton"
style="@style/ActionPrimaryButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"

View File

@@ -38,7 +38,7 @@
android:textColor="?android:attr/textColorSecondary"/>
<Button
android:id="@android:id/text1"
style="@style/SupportPrimaryButton"
style="@style/ActionPrimaryButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"/>

View File

@@ -338,8 +338,6 @@
<style name="TextAppearance.SupportSummary" parent="TextAppearance.CategoryTitle"/>
<style name="SupportPrimaryButton" parent="android:Widget.DeviceDefault.Button.Colored"/>
<style name="SupportSecondaryButton"
parent="android:Widget.DeviceDefault.Button.Borderless.Colored">
<item name="android:textSize">12sp</item>

View File

@@ -1,3 +1,7 @@
<resources>
<style name="Theme.Settings" parent="@android:style/Theme.DeviceDefault.Settings"/>
<style name="Theme.Settings" parent="@android:style/Theme.DeviceDefault.Settings" />
<!-- Override the main app's style for ActionPrimaryButton to get around lack of new style
support in robolectric -->
<style name="ActionPrimaryButton" parent="android:Widget.DeviceDefault.Button" />
</resources>