// Path: app/src/main/java/link/anyauto/smartkey/demo/App.java
// @SmartManifest(manifestPath = "app/src/main/AndroidManifest.xml")
// public class App extends Application {
// 
//     protected static App instance;
// 
//     public static App getInstance() {
//         return instance;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         instance = this;
//         MyAppPreferencesSPBuilder.setApp(this);
//         checkVersion();
//     }
// 
//     void checkVersion() {
// 
//     }
// 
//     public static String getStr(int resId) {
//         return instance.getString(resId);
//     }
// 
//     public static String getStr(int resId, Object ...args) {
//         return instance.getString(resId, args);
//     }
// }


import android.view.LayoutInflater;
import android.widget.Toast;
import link.anyauto.smartkey.demo.App;
import link.anyauto.smartkey.demo.databinding.ToastLayoutBinding;
package link.anyauto.smartkey.demo.util;



/**
 * Created by discotek on 17-1-22.
 */

public class ToastUtil {
    static Toast toast;
    static ToastLayoutBinding binding;

    public static void toast(int resId) {
        binding.toast.setText(resId);
        toast.show();
    }

    public static void toast(String str) {
        binding.toast.setText(str);
        toast.show();
    }

    static void makeToast() {
        if(toast == null) {
// Path: app/src/main/java/link/anyauto/smartkey/demo/App.java
// @SmartManifest(manifestPath = "app/src/main/AndroidManifest.xml")
// public class App extends Application {
// 
//     protected static App instance;
// 
//     public static App getInstance() {
//         return instance;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         instance = this;
//         MyAppPreferencesSPBuilder.setApp(this);
//         checkVersion();
//     }
// 
//     void checkVersion() {
// 
//     }
// 
//     public static String getStr(int resId) {
//         return instance.getString(resId);
//     }
// 
//     public static String getStr(int resId, Object ...args) {
//         return instance.getString(resId, args);
//     }
// }


// Path: app/src/main/java/link/anyauto/smartkey/demo/util/ToastUtil.java
import android.view.LayoutInflater;
import android.widget.Toast;
import link.anyauto.smartkey.demo.App;
import link.anyauto.smartkey.demo.databinding.ToastLayoutBinding;

package link.anyauto.smartkey.demo.util;



/**
 * Created by discotek on 17-1-22.
 */

public class ToastUtil {
    static Toast toast;
    static ToastLayoutBinding binding;

    public static void toast(int resId) {
        binding.toast.setText(resId);
        toast.show();
    }

    public static void toast(String str) {
        binding.toast.setText(str);
        toast.show();
    }

    static void makeToast() {
        if(toast == null) {
            toast = new Toast(App.getInstance());