Twitter fix.

This commit is contained in:
Dmitry Yunitsky 2014-08-15 18:34:41 +03:00 committed by Alex Zolotarev
parent f466e1c144
commit 1d8634232a

View file

@ -295,17 +295,7 @@ public final class UiUtils
public static void showTwitterPage(Activity activity)
{
Intent intent;
try
{
// get the Twitter app if possible
activity.getPackageManager().getPackageInfo(Constants.Package.TWITTER_PACKAGE, 0);
intent = new Intent(Intent.ACTION_VIEW, Uri.parse(Constants.Url.TWITTER_MAPSME_NATIVE));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
} catch (Exception e)
{
// no Twitter app, revert to browser
intent = new Intent(Intent.ACTION_VIEW, Uri.parse(Constants.Url.TWITTER_MAPSME_HTTP));
}
intent = new Intent(Intent.ACTION_VIEW, Uri.parse(Constants.Url.TWITTER_MAPSME_HTTP));
activity.startActivity(intent);
}