- AndroiX AlertDialog needs to use Theme.AppCompat. - Create a ShadowAlertDialogCompat which can be compatible with AndroidX AlertDialog. Fix: 111247403 Test: make RunSettingsRoboTests -j56 ROBOTEST_FILTER=com.android.settings.password.ChooseLockTypeDialogFragmentTest Change-Id: I3e4bca285ecaefa5705c8d170050c21d1bc649e0
11 lines
477 B
XML
11 lines
477 B
XML
<resources>
|
|
<style name="Theme.Settings" parent="@android:style/Theme.DeviceDefault.Settings">
|
|
<!-- For AndroidX AlertDialogs -->
|
|
<item name="alertDialogTheme">@style/Theme.AppCompat.DayNight.Dialog.Alert</item>
|
|
</style>
|
|
|
|
<!-- 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>
|