// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package com.gesoftoa.common; import android.content.Context; import android.widget.Toast; import com.gesoftoa.base.BaseApplication; public class T { public T() { } public static void show(Context context, String text) { Toast.makeText(context, text, 0).show(); } public static void show(Object msg) { show(BaseApplication.getInstance(), String.valueOf(msg)); } public static void show(Context context, String text, Integer length) { if(length == null) { show(context, text); } else { Toast.makeText(context, text, length.intValue()).show(); } } public static void showAtCenter(Context context, String text) { Toast toast = Toast.makeText(context, text, 0); toast.setGravity(17, 0, 0); toast.show(); } public static void showAtCenter(Context context, String text, Integer length) { if(length == null) { showAtCenter(context, text); } else { Toast toast = Toast.makeText(context, text, length.intValue()); toast.setGravity(17, 0, 0); toast.show(); } } }