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
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 51176fb..331f452 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -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>