summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2015-08-13 14:50:03 +0200
committerSteve Kondik <steve@cyngn.com>2016-09-26 02:58:27 -0700
commite4b351fafa3233021f9acfa69eb5d92c8d9ca0d7 (patch)
treeac23246a0f02c34e306e7464494a1ee2c179b483 /src/com
parent0c334452f7e27f7c2841b9666ab26ab60a16f413 (diff)
downloadandroid_packages_apps_Exchange-e4b351fafa3233021f9acfa69eb5d92c8d9ca0d7.tar.gz
android_packages_apps_Exchange-e4b351fafa3233021f9acfa69eb5d92c8d9ca0d7.tar.bz2
android_packages_apps_Exchange-e4b351fafa3233021f9acfa69eb5d92c8d9ca0d7.zip
Fix authentication error notification click handling.
The activity resolved by the implicit intent is not exported by the Email app, so convert the intent to an explicit one pointing at the exported entry point. Change-Id: I6f3ba590680618a0c56d1cb9786767e6a8d94a0e
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/exchange/service/AbstractSyncAdapterService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/exchange/service/AbstractSyncAdapterService.java b/src/com/android/exchange/service/AbstractSyncAdapterService.java
index ae55bc35..6e09de58 100644
--- a/src/com/android/exchange/service/AbstractSyncAdapterService.java
+++ b/src/com/android/exchange/service/AbstractSyncAdapterService.java
@@ -112,7 +112,9 @@ public abstract class AbstractSyncAdapterService extends Service {
IntentUtilities.PATH_SETTINGS);
IntentUtilities.setAccountId(builder, accountId);
IntentUtilities.setAccountName(builder, accountName);
- return new Intent(Intent.ACTION_EDIT, builder.build());
+ ComponentName setupPrefComponent = new ComponentName("com.android.email",
+ "com.android.mail.ui.settings.PublicPreferenceActivity");
+ return new Intent(Intent.ACTION_EDIT, builder.build()).setComponent(setupPrefComponent);
}
protected void showAuthNotification(long accountId, String accountName) {