diff options
-rw-r--r-- | src/com/android/mail/browse/MessageAttachmentBar.java | 2 | ||||
-rw-r--r-- | src/com/android/mail/ui/AccountFeedbackActivity.java | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/mail/browse/MessageAttachmentBar.java b/src/com/android/mail/browse/MessageAttachmentBar.java index c7121b2e0..91c63ba1d 100644 --- a/src/com/android/mail/browse/MessageAttachmentBar.java +++ b/src/com/android/mail/browse/MessageAttachmentBar.java @@ -343,7 +343,7 @@ public class MessageAttachmentBar extends FrameLayout implements OnClickListener // For EML files, we want to open our dedicated // viewer rather than let any activity open it. if (MimeType.isEmlMimeType(contentType)) { - intent.setClass(getContext().getApplicationContext(), EmlViewerActivity.class); + intent.setPackage(getContext().getPackageName()); intent.putExtra(AccountFeedbackActivity.EXTRA_ACCOUNT_URI, mAccount != null ? mAccount.uri : null); } diff --git a/src/com/android/mail/ui/AccountFeedbackActivity.java b/src/com/android/mail/ui/AccountFeedbackActivity.java index 1567b4b20..89a736d37 100644 --- a/src/com/android/mail/ui/AccountFeedbackActivity.java +++ b/src/com/android/mail/ui/AccountFeedbackActivity.java @@ -114,7 +114,7 @@ public abstract class AccountFeedbackActivity extends ActionBarActivity } else if (itemId == R.id.settings) { Utils.showSettings(this, mAccount); } else if (itemId == R.id.help_info_menu_item) { - Utils.showHelp(this, mAccount, getString(R.string.main_help_context)); + showHelp(getString(R.string.main_help_context)); } else { return super.onOptionsItemSelected(item); } @@ -126,4 +126,8 @@ public abstract class AccountFeedbackActivity extends ActionBarActivity public Account getAccount() { return mAccount; } + + protected void showHelp(String helpContext) { + Utils.showHelp(this, mAccount, helpContext); + } } |