forked from organicmaps/organicmaps
Twitter fix.
This commit is contained in:
parent
f466e1c144
commit
1d8634232a
1 changed files with 1 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue