// Path: compass/src/main/gen/org/tndata/android/compass/R.java
// public final class R {
// }


import android.app.Dialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.DialogPreference;
import android.preference.PreferenceManager;
import android.support.annotation.IdRes;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.widget.ToggleButton;
import org.tndata.android.compass.R;
package org.tndata.android.compass.ui;




/**
 * Preference used to select a set of hours when the app should go silent.
 *
 * @author Ismael Alonso
 * @version 1.0.0
 */
public class QuietHoursPreference extends DialogPreference implements View.OnClickListener{
    private static final String TAG = "QuietHoursPreference";


    //Data holders
    private boolean mAM[];
    private boolean mPM[];


    /**
     * Constructor.
     *
     * @param context the context.
     * @param attrs the attribute set.
     */
    public QuietHoursPreference(Context context, AttributeSet attrs){
        super(context, attrs);
        init();
    }

    /**
     * Constructor.
     *
     * @param context the context.
     * @param attrs the attribute set.
     * @param defStyleAttr the style id.
     */
    public QuietHoursPreference(Context context, AttributeSet attrs, int defStyleAttr){
        super(context, attrs, defStyleAttr);
        init();
    }

    /**
     * Initialises the preference.
     */
    private void init(){
        mAM = new boolean[12];
        mPM = new boolean[12];

        setDialogLayoutResource(R.layout.dialog_quiet_hours);
// Path: compass/src/main/gen/org/tndata/android/compass/R.java
// public final class R {
// }


// Path: compass/src/main/java/org/tndata/android/compass/ui/QuietHoursPreference.java
import android.app.Dialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.DialogPreference;
import android.preference.PreferenceManager;
import android.support.annotation.IdRes;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.widget.ToggleButton;
import org.tndata.android.compass.R;

package org.tndata.android.compass.ui;




/**
 * Preference used to select a set of hours when the app should go silent.
 *
 * @author Ismael Alonso
 * @version 1.0.0
 */
public class QuietHoursPreference extends DialogPreference implements View.OnClickListener{
    private static final String TAG = "QuietHoursPreference";


    //Data holders
    private boolean mAM[];
    private boolean mPM[];


    /**
     * Constructor.
     *
     * @param context the context.
     * @param attrs the attribute set.
     */
    public QuietHoursPreference(Context context, AttributeSet attrs){
        super(context, attrs);
        init();
    }

    /**
     * Constructor.
     *
     * @param context the context.
     * @param attrs the attribute set.
     * @param defStyleAttr the style id.
     */
    public QuietHoursPreference(Context context, AttributeSet attrs, int defStyleAttr){
        super(context, attrs, defStyleAttr);
        init();
    }

    /**
     * Initialises the preference.
     */
    private void init(){
        mAM = new boolean[12];
        mPM = new boolean[12];

        setDialogLayoutResource(R.layout.dialog_quiet_hours);
        setPositiveButtonText(android.R.string.ok);