Remove hardcoded package name.

Removed the hardcoded package name in account_preferences.xml.  Now we launch
the PreferenceScreen with only the action.  Added an intent-filter to the
preference screen to catch it.

Bug 2447903
This commit is contained in:
Makoto Onuki 2010-02-16 14:04:25 -08:00
parent 105c1786f7
commit 0fef1f14b3
2 changed files with 5 additions and 2 deletions

View File

@ -123,6 +123,10 @@
android:name=".activity.setup.AccountSettings"
android:label="@string/account_settings_action"
>
<intent-filter>
<action android:name="com.android.email.activity.setup.ACCOUNT_MANAGER_ENTRY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".activity.setup.AccountSecurity"

View File

@ -27,8 +27,7 @@
android:summary="@string/account_settings_exchange_summary">
<intent
android:action="com.android.email.activity.setup.ACCOUNT_MANAGER_ENTRY"
android:targetPackage="com.android.email"
android:targetClass="com.android.email.activity.setup.AccountSettings" />
/>
</PreferenceScreen>
</PreferenceScreen>