// Path: lib/src/main/java/com/joxad/easydatabinding/activity/IPermission.java
// public interface IPermission {
//     /***
//      * @param requestCode
//      * @param permissions
//      * @param grantResults
//      */
//     void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults);
// }
// 
// Path: lib/src/main/java/com/joxad/easydatabinding/activity/IResult.java
// public interface IResult {
// 
//     /**
//      *
//      * @param requestCode
//      * @param resultCode
//      * @param data
//      */
//     void onActivityResult(int requestCode, int resultCode, Intent data);
// 
// 
// }


import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.databinding.ViewDataBinding;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.joxad.easydatabinding.activity.IPermission;
import com.joxad.easydatabinding.activity.IResult;
    @Override
    public void onResume() {
        super.onResume();
        if (vm != null)
            vm.onResume();
    }

    @Override
    public void onPause() {
        if (vm != null)
            vm.onPause();
        super.onPause();
    }

    @Override
    public void onDestroy() {
        if (vm != null)
            vm.onDestroy();
        super.onDestroy();
    }

    /***
     * Handle the permission and give it to the activity
     *
     * @param requestCode
     * @param permissions
     * @param grantResults
     */
    @Override
    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
// Path: lib/src/main/java/com/joxad/easydatabinding/activity/IPermission.java
// public interface IPermission {
//     /***
//      * @param requestCode
//      * @param permissions
//      * @param grantResults
//      */
//     void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults);
// }
// 
// Path: lib/src/main/java/com/joxad/easydatabinding/activity/IResult.java
// public interface IResult {
// 
//     /**
//      *
//      * @param requestCode
//      * @param resultCode
//      * @param data
//      */
//     void onActivityResult(int requestCode, int resultCode, Intent data);
// 
// 
// }


// Path: lib/src/main/java/com/joxad/easydatabinding/fragment/DialogFragmentBase.java
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.databinding.ViewDataBinding;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.joxad.easydatabinding.activity.IPermission;
import com.joxad.easydatabinding.activity.IResult;

    @Override
    public void onResume() {
        super.onResume();
        if (vm != null)
            vm.onResume();
    }

    @Override
    public void onPause() {
        if (vm != null)
            vm.onPause();
        super.onPause();
    }

    @Override
    public void onDestroy() {
        if (vm != null)
            vm.onDestroy();
        super.onDestroy();
    }

    /***
     * Handle the permission and give it to the activity
     *
     * @param requestCode
     * @param permissions
     * @param grantResults
     */
    @Override
    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);