// Path: app/src/main/java/am/project/x/utils/AlertDialogUtils.java
// public class AlertDialogUtils {
// 
//     private AlertDialogUtils() {
//         //no instance
//     }
// 
//     /**
//      * 获取警告对话框主题
//      *
//      * @param context Context
//      * @return 主题
//      */
//     public static int getAlertDialogTheme(Context context) {
//         final TypedValue outValue = new TypedValue();
//         context.getTheme().resolveAttribute(androidx.appcompat.R.attr.alertDialogTheme,
//                 outValue, true);
//         return outValue.resourceId;
//     }
// }


import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import java.util.Locale;
import am.project.x.R;
import am.project.x.utils.AlertDialogUtils;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatDialog;
import androidx.core.widget.NestedScrollView;
/*
 * Copyright (C) 2018 AlexMofer
 *
 * 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 am.project.x.business.others.printer;




/**
 * 打印信息对话框
 */
class PrinterStateDialog extends AppCompatDialog implements View.OnLayoutChangeListener,
        View.OnClickListener {

    private final OnDialogListener mListener;
    private NestedScrollView mVContent;
    private TextView mVState;
    private View mVNegative;
    private View mVPositive;

    PrinterStateDialog(@NonNull Context context, @NonNull OnDialogListener listener) {
// Path: app/src/main/java/am/project/x/utils/AlertDialogUtils.java
// public class AlertDialogUtils {
// 
//     private AlertDialogUtils() {
//         //no instance
//     }
// 
//     /**
//      * 获取警告对话框主题
//      *
//      * @param context Context
//      * @return 主题
//      */
//     public static int getAlertDialogTheme(Context context) {
//         final TypedValue outValue = new TypedValue();
//         context.getTheme().resolveAttribute(androidx.appcompat.R.attr.alertDialogTheme,
//                 outValue, true);
//         return outValue.resourceId;
//     }
// }


// Path: app/src/main/java/am/project/x/business/others/printer/PrinterStateDialog.java
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import java.util.Locale;
import am.project.x.R;
import am.project.x.utils.AlertDialogUtils;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatDialog;
import androidx.core.widget.NestedScrollView;

/*
 * Copyright (C) 2018 AlexMofer
 *
 * 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 am.project.x.business.others.printer;




/**
 * 打印信息对话框
 */
class PrinterStateDialog extends AppCompatDialog implements View.OnLayoutChangeListener,
        View.OnClickListener {

    private final OnDialogListener mListener;
    private NestedScrollView mVContent;
    private TextView mVState;
    private View mVNegative;
    private View mVPositive;

    PrinterStateDialog(@NonNull Context context, @NonNull OnDialogListener listener) {
        super(context, AlertDialogUtils.getAlertDialogTheme(context));