package net.miz_hi.smileessence.command.status.impl;

import android.app.Activity;
import net.miz_hi.smileessence.command.CommandOpenUrl;
import net.miz_hi.smileessence.command.status.StatusCommand;
import net.miz_hi.smileessence.model.status.tweet.TweetModel;

public class StatusCommandOpenUrl extends StatusCommand
{

    private Activity activity;

    public StatusCommandOpenUrl(TweetModel status, Activity activity)
    {
        super(status);
        this.activity = activity;
    }

    @Override
    public void workOnUiThread()
    {
        new CommandOpenUrl(activity, String.format("https://twitter.com/%s/status/%s", status.getOriginal().user.screenName, status.getOriginal().statusId)).run();
    }

    @Override
    public String getName()
    {
        return "ブラウザで開く";
    }
}

@@ -253,16 +253,68 @@
 etModel;
+%0Aimport net.miz_hi.smileessence.twitter.TwitterUtil;
 %0A%0Apublic
@@ -632,125 +632,38 @@
 ty, 
-String.format(%22https://twitter.com/%25s/status/%25s%22, status.getOriginal().user.screenName, status.getOriginal().
+TwitterUtil.getTweetURL(
 status
-Id
 )).r

Change to use util