// Path: lib-core/src/main/java/xdroid/core/Global.java
// public static Context getContext() {
//     if (sContext == null) {
//         sContext = CurrentApplicationHolder.INSTANCE;
//     }
// 
//     return notNull(sContext);
// }
// 
// Path: lib-core/src/main/java/xdroid/core/Global.java
// public static Handler getUiHandler() {
//     return UiHandlerHolder.INSTANCE;
// }
// 
// Path: lib-core/src/main/java/xdroid/core/ThreadUtils.java
// public static Handler newHandler(Handler original, Handler.Callback callback) {
//     return new Handler(original.getLooper(), callback);
// }


import android.os.Handler;
import android.os.Message;
import android.widget.Toast;
import static xdroid.core.Global.getContext;
import static xdroid.core.Global.getUiHandler;
import static xdroid.core.ThreadUtils.newHandler;
package xdroid.toaster;



/**
 * @author Oleksii Kropachov (o.kropachov@shamanland.com)
 */
@SuppressWarnings("unused")
public final class Toaster implements Handler.Callback {
    private static final Handler sHandler = newHandler(getUiHandler(), new Toaster());

    private Toaster() {
        // disallow public access
    }

    @Override
    public boolean handleMessage(Message msg) {
// Path: lib-core/src/main/java/xdroid/core/Global.java
// public static Context getContext() {
//     if (sContext == null) {
//         sContext = CurrentApplicationHolder.INSTANCE;
//     }
// 
//     return notNull(sContext);
// }
// 
// Path: lib-core/src/main/java/xdroid/core/Global.java
// public static Handler getUiHandler() {
//     return UiHandlerHolder.INSTANCE;
// }
// 
// Path: lib-core/src/main/java/xdroid/core/ThreadUtils.java
// public static Handler newHandler(Handler original, Handler.Callback callback) {
//     return new Handler(original.getLooper(), callback);
// }


// Path: lib-toaster/src/main/java/xdroid/toaster/Toaster.java
import android.os.Handler;
import android.os.Message;
import android.widget.Toast;
import static xdroid.core.Global.getContext;
import static xdroid.core.Global.getUiHandler;
import static xdroid.core.ThreadUtils.newHandler;

package xdroid.toaster;



/**
 * @author Oleksii Kropachov (o.kropachov@shamanland.com)
 */
@SuppressWarnings("unused")
public final class Toaster implements Handler.Callback {
    private static final Handler sHandler = newHandler(getUiHandler(), new Toaster());

    private Toaster() {
        // disallow public access
    }

    @Override
    public boolean handleMessage(Message msg) {
        Toast.makeText(getContext(), (CharSequence) msg.obj, msg.what).show();