aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/miz_hi/smileessence/command/post/CommandInsertText.java
blob: cd4e80d6aa6872784eb96dec9fbb6d79a453bb23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package net.miz_hi.smileessence.command.post;

import net.miz_hi.smileessence.command.MenuCommand;
import net.miz_hi.smileessence.system.PostSystem;

public class CommandInsertText extends MenuCommand
{

    private String text;

    public CommandInsertText(String text)
    {
        this.text = text;
    }

    @Override
    public String getName()
    {
        return text;
    }

    @Override
    public void workOnUiThread()
    {
        PostSystem.insertText(text);
        PostSystem.openPostPage();
    }

}