// Path: licencesDialog/src/main/java/de/psdev/licensesdialog/model/Notice.java
// public class Notice implements Serializable {
//     private static final long serialVersionUID = -6257913944601445939L;
// 
//     private String mName;
//     private String mUrl;
//     private String mCopyright;
//     private License mLicense;
// 
//     //
// 
//     public Notice() {
//     }
// 
//     public Notice(final String name, final String url, final String copyright, final License license) {
//         mName = name;
//         mUrl = url;
//         mCopyright = copyright;
//         mLicense = license;
//     }
// 
//     // Setter / Getter
// 
//     public void setName(final String name) {
//         mName = name;
//     }
// 
//     public void setUrl(final String url) {
//         mUrl = url;
//     }
// 
//     public void setCopyright(final String copyright) {
//         mCopyright = copyright;
//     }
// 
//     public void setLicense(final License license) {
//         mLicense = license;
//     }
// 
//     public String getName() {
//         return mName;
//     }
// 
//     public String getUrl() {
//         return mUrl;
//     }
// 
//     public String getCopyright() {
//         return mCopyright;
//     }
// 
//     public License getLicense() {
//         return mLicense;
//     }
// }


import android.app.Dialog;
import android.content.DialogInterface;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import de.psdev.licensesdialog.model.Notice;
/*
 * Copyright 2013 Philip Schiffer
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

package de.psdev.licensesdialog;


public class SingleLicenseDialogFragment extends DialogFragment {

    private static final String ARGUMENT_NOTICE = "ARGUMENT_NOTICE";
    private static final String STATE_LICENSE_TEXT = "license_text";
    private static final String STATE_TITLE_TEXT = "title_text";
    private static final String STATE_CLOSE_TEXT = "close_text";

    //
    private String mTitleText;
    private String mCloseButtonText;
    private String mLicenseText;

    //
    private boolean mShowFullLicenseText;
    private DialogInterface.OnDismissListener mOnDismissListener;

// Path: licencesDialog/src/main/java/de/psdev/licensesdialog/model/Notice.java
// public class Notice implements Serializable {
//     private static final long serialVersionUID = -6257913944601445939L;
// 
//     private String mName;
//     private String mUrl;
//     private String mCopyright;
//     private License mLicense;
// 
//     //
// 
//     public Notice() {
//     }
// 
//     public Notice(final String name, final String url, final String copyright, final License license) {
//         mName = name;
//         mUrl = url;
//         mCopyright = copyright;
//         mLicense = license;
//     }
// 
//     // Setter / Getter
// 
//     public void setName(final String name) {
//         mName = name;
//     }
// 
//     public void setUrl(final String url) {
//         mUrl = url;
//     }
// 
//     public void setCopyright(final String copyright) {
//         mCopyright = copyright;
//     }
// 
//     public void setLicense(final License license) {
//         mLicense = license;
//     }
// 
//     public String getName() {
//         return mName;
//     }
// 
//     public String getUrl() {
//         return mUrl;
//     }
// 
//     public String getCopyright() {
//         return mCopyright;
//     }
// 
//     public License getLicense() {
//         return mLicense;
//     }
// }


// Path: licencesDialog/src/main/java/de/psdev/licensesdialog/SingleLicenseDialogFragment.java
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import de.psdev.licensesdialog.model.Notice;

/*
 * Copyright 2013 Philip Schiffer
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

package de.psdev.licensesdialog;


public class SingleLicenseDialogFragment extends DialogFragment {

    private static final String ARGUMENT_NOTICE = "ARGUMENT_NOTICE";
    private static final String STATE_LICENSE_TEXT = "license_text";
    private static final String STATE_TITLE_TEXT = "title_text";
    private static final String STATE_CLOSE_TEXT = "close_text";

    //
    private String mTitleText;
    private String mCloseButtonText;
    private String mLicenseText;

    //
    private boolean mShowFullLicenseText;
    private DialogInterface.OnDismissListener mOnDismissListener;

    public static SingleLicenseDialogFragment newInstance(final Notice notice) {