Dont disable compose until accounts are added; listen for account chages to update cache

We want this to go to the add account screen instead.

Change-Id: I087deed7462b87dc026d36fa17b232dc312e8525
This commit is contained in:
Mindy Pereira 2012-08-13 09:58:47 -07:00
parent 7d015353a9
commit 9fbb81c9b6
1 changed files with 2 additions and 3 deletions

View File

@ -76,9 +76,7 @@
<activity
android:name="com.android.mail.compose.ComposeActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light"
android:enabled="false"
>
android:theme="@android:style/Theme.Holo.Light">
<intent-filter>
<action
android:name="android.intent.action.VIEW" />
@ -327,6 +325,7 @@
<receiver android:name="com.android.mail.providers.protos.boot.AccountReceiver">
<intent-filter>
<action android:name="com.android.email2.providers.protos.boot.intent.ACTION_PROVIDER_CREATED" />
<action android:name="android.accounts.LOGIN_ACCOUNTS_CHANGED" />
</intent-filter>
</receiver>