From 053d3ddd400a13838c132129a03e56dae0db93d8 Mon Sep 17 00:00:00 2001 From: Sander Alewijnse Date: Mon, 9 Mar 2015 15:31:10 +0000 Subject: Do not show toast when forwarding from resolver activity to itself. Bug:19540802 Change-Id: I99409aab42bdbf187c07a345ca5c404e88a4c918 --- core/java/com/android/internal/app/ResolverActivity.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') diff --git a/core/java/com/android/internal/app/ResolverActivity.java b/core/java/com/android/internal/app/ResolverActivity.java index a410e45..3ceea9d 100644 --- a/core/java/com/android/internal/app/ResolverActivity.java +++ b/core/java/com/android/internal/app/ResolverActivity.java @@ -342,6 +342,9 @@ public class ResolverActivity extends Activity implements AdapterView.OnItemClic return; } + // Do not show the profile switch message anymore. + mProfileSwitchMessageId = -1; + final Intent intent = intentForDisplayResolveInfo(dri); onIntentSelected(dri.ri, intent, false); finish(); -- cgit v1.1