Explicitly set theme to all activities.

The default theme change to Holo caused a crash in MessageCompose,
because Holo has actionbar, which MessageCompose doesn't expect at
this point.  Explicitly set theme to prevent crashes.

Bug 2945294.

Change-Id: Ic5f833690eeb1048e8c4c3ac7a42c2d454c61876
This commit is contained in:
Makoto Onuki 2010-08-24 13:29:00 -07:00
parent bf37f67e6d
commit 5d1e32a7da
1 changed files with 9 additions and 1 deletions

View File

@ -56,8 +56,16 @@
android:description="@string/permission_access_provider_desc"/>
<uses-permission android:name="com.android.email.permission.ACCESS_PROVIDER"/>
<!--
Regarding android:theme
Some of the activities can't handle ActionBar, which comes with the new
default theme "Holo". Explicitly set the traditional default theme.
TODO This should go away. (Or make Light.Holo default)
-->
<application android:icon="@drawable/icon" android:label="@string/app_name"
android:name="Email">
android:name="Email"
android:theme="@android:style/Theme"
>
<activity
android:name=".activity.Welcome"
android:theme="@android:style/Theme.WithActionBar" >