// Path: library/src/main/java/com/wada811/android/dialogfragments/interfaces/DialogFragmentInterface.java
// public interface DialogFragmentInterface {
// 
//     String getTag();
// 
//     void show(FragmentManager manager, String tag);
// 
//     int show(FragmentTransaction transaction, String tag);
// 
//     void dismiss();
// 
//     void dismissAllowingStateLoss();
// 
//     Dialog getDialog();
// 
//     DialogFragmentInterface setExtra(Bundle extra);
// 
//     Bundle getExtra();
// 
// }


import android.annotation.TargetApi;
import android.app.Dialog;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.util.Log;
import android.widget.NumberPicker;
import com.wada811.android.dialogfragments.traditional.NumberPickerDialogInterface.OnNumberSetListener;
import com.wada811.android.dialogfragments.interfaces.DialogFragmentCallback;
import com.wada811.android.dialogfragments.interfaces.DialogFragmentCallbackProvider;
import com.wada811.android.dialogfragments.interfaces.DialogFragmentInterface;
        final int minValue = args.getInt(MIN_VALUE);
        final int maxValue = args.getInt(MAX_VALUE);

        if(theme == VALUE_NULL){
            numberPickerDialog = new NumberPickerDialog(getActivity(), this, value, minValue, maxValue);
        }else{
            numberPickerDialog = new NumberPickerDialog(getActivity(), theme, this, value, minValue, maxValue);
        }
        if(iconId != VALUE_NULL){
            setIcon(iconId);
        }
        if(title != null){
            setTitle(title);
        }
        if(titleId != VALUE_NULL){
            setTitle(titleId);
        }
        return numberPickerDialog;
    }

    @Override
    public void onSaveInstanceState(Bundle outState){
        super.onSaveInstanceState(outState);
        Log.w(TAG, "onSaveInstanceState");
    }

    @Override
    public void onDestroyView(){
        super.onDestroyView();
        Log.w(TAG, "onDestroyView");
// Path: library/src/main/java/com/wada811/android/dialogfragments/interfaces/DialogFragmentInterface.java
// public interface DialogFragmentInterface {
// 
//     String getTag();
// 
//     void show(FragmentManager manager, String tag);
// 
//     int show(FragmentTransaction transaction, String tag);
// 
//     void dismiss();
// 
//     void dismissAllowingStateLoss();
// 
//     Dialog getDialog();
// 
//     DialogFragmentInterface setExtra(Bundle extra);
// 
//     Bundle getExtra();
// 
// }


// Path: library/src/main/java/com/wada811/android/dialogfragments/traditional/NumberPickerDialogFragment.java
import android.annotation.TargetApi;
import android.app.Dialog;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.util.Log;
import android.widget.NumberPicker;
import com.wada811.android.dialogfragments.traditional.NumberPickerDialogInterface.OnNumberSetListener;
import com.wada811.android.dialogfragments.interfaces.DialogFragmentCallback;
import com.wada811.android.dialogfragments.interfaces.DialogFragmentCallbackProvider;
import com.wada811.android.dialogfragments.interfaces.DialogFragmentInterface;

        final int minValue = args.getInt(MIN_VALUE);
        final int maxValue = args.getInt(MAX_VALUE);

        if(theme == VALUE_NULL){
            numberPickerDialog = new NumberPickerDialog(getActivity(), this, value, minValue, maxValue);
        }else{
            numberPickerDialog = new NumberPickerDialog(getActivity(), theme, this, value, minValue, maxValue);
        }
        if(iconId != VALUE_NULL){
            setIcon(iconId);
        }
        if(title != null){
            setTitle(title);
        }
        if(titleId != VALUE_NULL){
            setTitle(titleId);
        }
        return numberPickerDialog;
    }

    @Override
    public void onSaveInstanceState(Bundle outState){
        super.onSaveInstanceState(outState);
        Log.w(TAG, "onSaveInstanceState");
    }

    @Override
    public void onDestroyView(){
        super.onDestroyView();
        Log.w(TAG, "onDestroyView");
        numberPickerDialog = null;