Fix DeviceDefault theme/style bugs where parent styles were

incorrectly specified.

This affected search bars and alert dialogs spawned from activities
using Theme.DeviceDefault.Light as a base.

Change-Id: I219d38d486498db5b4b283560256afd7d6051535
This commit is contained in:
Adam Powell
2012-01-17 12:51:39 -08:00
parent 3938e4fbaa
commit c8fcde2b6b
2 changed files with 4 additions and 4 deletions

View File

@@ -687,7 +687,7 @@ easier.
<style name="AlertDialog.DeviceDefault" parent="AlertDialog.Holo">
</style>
<style name="AlertDialog.DeviceDefault.Light" parent="AlertDialog.DeviceDefault.Light" >
<style name="AlertDialog.DeviceDefault.Light" parent="AlertDialog.Holo.Light" >
</style>

View File

@@ -411,13 +411,13 @@ easier.
<style name="Theme.DeviceDefault.Dialog.Alert" parent="Theme.Holo.Dialog.Alert">
<item name="windowTitleStyle">@android:style/DialogWindowTitle.DeviceDefault</item>
</style>
<style name="Theme.DeviceDefault.Light.Dialog.Alert" parent="Theme.DeviceDefault.Light.Dialog.Alert">
<style name="Theme.DeviceDefault.Light.Dialog.Alert" parent="Theme.Holo.Light.Dialog.Alert">
<item name="windowTitleStyle">@android:style/DialogWindowTitle.DeviceDefault.Light</item>
</style>
<style name="Theme.DeviceDefault.SearchBar" parent="Theme.DeviceDefault.SearchBar">
<style name="Theme.DeviceDefault.SearchBar" parent="Theme.Holo.SearchBar">
</style>
<style name="Theme.DeviceDefault.Light.SearchBar" parent="Theme.DeviceDefault.Light.SearchBar">
<style name="Theme.DeviceDefault.Light.SearchBar" parent="Theme.Holo.Light.SearchBar">
</style>