// Path: app/src/main/java/hu/supercluster/gameoflife/app/rate/event/SuggestDialogNoEvent.java
// public class SuggestDialogNoEvent {
// }
// 
// Path: app/src/main/java/hu/supercluster/gameoflife/app/rate/event/SuggestDialogYesEvent.java
// public class SuggestDialogYesEvent {
// }
// 
// Path: app/src/main/java/hu/supercluster/gameoflife/util/EventBus.java
// public class EventBus extends Bus {
//     private static EventBus instance;
// 
//     private EventBus() {
//         super(ThreadEnforcer.ANY);
//     }
// 
//     public static EventBus getInstance() {
//         if (instance == null) {
//             instance = new EventBus();
//         }
// 
//         return instance;
//     }
// 
//     @Override
//     public void unregister(Object object) {
//         try {
//             super.unregister(object);
// 
//         } catch (IllegalArgumentException e) {
//             e.printStackTrace();
//         }
//     }
// }


import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import org.androidannotations.annotations.EFragment;
import hu.supercluster.gameoflife.R;
import hu.supercluster.gameoflife.app.rate.event.SuggestDialogNoEvent;
import hu.supercluster.gameoflife.app.rate.event.SuggestDialogYesEvent;
import hu.supercluster.gameoflife.util.EventBus;
package hu.supercluster.gameoflife.app.rate.dialog;




@EFragment
public class SuggestDialog extends DialogFragment {
    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());

        builder
                .setCancelable(false)
                .setTitle(R.string.dialog_suggest_title)
                .setMessage(R.string.dialog_suggest_body)
                .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
// Path: app/src/main/java/hu/supercluster/gameoflife/app/rate/event/SuggestDialogNoEvent.java
// public class SuggestDialogNoEvent {
// }
// 
// Path: app/src/main/java/hu/supercluster/gameoflife/app/rate/event/SuggestDialogYesEvent.java
// public class SuggestDialogYesEvent {
// }
// 
// Path: app/src/main/java/hu/supercluster/gameoflife/util/EventBus.java
// public class EventBus extends Bus {
//     private static EventBus instance;
// 
//     private EventBus() {
//         super(ThreadEnforcer.ANY);
//     }
// 
//     public static EventBus getInstance() {
//         if (instance == null) {
//             instance = new EventBus();
//         }
// 
//         return instance;
//     }
// 
//     @Override
//     public void unregister(Object object) {
//         try {
//             super.unregister(object);
// 
//         } catch (IllegalArgumentException e) {
//             e.printStackTrace();
//         }
//     }
// }


// Path: app/src/main/java/hu/supercluster/gameoflife/app/rate/dialog/SuggestDialog.java
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import org.androidannotations.annotations.EFragment;
import hu.supercluster.gameoflife.R;
import hu.supercluster.gameoflife.app.rate.event.SuggestDialogNoEvent;
import hu.supercluster.gameoflife.app.rate.event.SuggestDialogYesEvent;
import hu.supercluster.gameoflife.util.EventBus;

package hu.supercluster.gameoflife.app.rate.dialog;




@EFragment
public class SuggestDialog extends DialogFragment {
    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());

        builder
                .setCancelable(false)
                .setTitle(R.string.dialog_suggest_title)
                .setMessage(R.string.dialog_suggest_body)
                .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                        EventBus.getInstance().post(new SuggestDialogYesEvent());