@Override public boolean canShow(final ShareContent shareContent, boolean isBestEffort) { return shareContent != null && MessageDialog.canShow(shareContent.getClass()); }
public void shareUsingMessengerDialog() { if (playerChoice == INVALID_CHOICE || computerChoice == INVALID_CHOICE) { ShareContent content = getLinkContent(); // share the app if (messageDialog.canShow(content)) { messageDialog.show(content); } else { showInstallMessengerAppInGooglePlay(); } } else { ShareContent content = getThrowActionContent(); if (messageDialog.canShow(content)) { messageDialog.show(content); } else { showInstallMessengerAppInGooglePlay(); } } }
announceProgressDialog.setMessage(getString(R.string.progress_dialog_text)); if (MessageDialog.canShow(ShareOpenGraphContent.class)) { messageButton.setVisibility(View.VISIBLE);