package com.example.ghomi.chapter6_1;
import android.content.Context;
import android.widget.Toast;

public class DisplayToast implements Runnable {
    private final Context mContext;
    String mText;

    public DisplayToast(Context mContext, String text){
        this.mContext = mContext;
        mText = text;
    }
    public void run() {
       Toast.makeText(mContext, mText, Toast.LENGTH_SHORT).show();
    }
}
