package epson.support;

import android.bluetooth.BluetoothAdapter;
import android.content.Context;
import android.net.wifi.WifiManager;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.epson.memcardacc.DirectorySelecterActivity;
import com.epson.mobilephone.common.EpLog;
import com.epson.mobilephone.common.maintain2.MaintainPrinter2;
import com.epson.mobilephone.common.wifidirect.ManageDefaultNetwork;
import com.epson.mobilephone.common.wifidirect.WiFiControl;
import com.epson.mobilephone.common.wifidirect.WiFiDirectManager;
import com.epson.mobilephone.common.wifidirect.WifiP2pUtils;
import epson.common.Constants;
import epson.common.IPAddressUtils;
import epson.common.Utils;
import epson.print.ActivityIACommon;
import epson.print.C2135R;
import epson.print.MyPrinter;
import epson.print.Util.EPLog;
import java.lang.ref.WeakReference;
import java.math.BigInteger;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.UnknownHostException;
import java.nio.ByteOrder;
import java.util.Collections;

public class DeviceInformationActivity extends ActivityIACommon {
    private static final int EPS_COMM_BID = 2;
    private static final int EPS_ERR_PRINTER_NOT_FOUND = -1300;
    private static final int EPS_PRNERR_COMM = 102;
    private static final int PROBE_ERROR = 1;
    private static final int STATUS_ERROR = 2;
    private static final int UPDATE_PRINTER_STATUS = 0;
    TextView PrinterIPInfo;
    ProgressBar PrinterProbeProgress;
    TextView PrinterStatusInfo;
    /* access modifiers changed from: private */
    public String TAG = "Device Information";
    TextView TextBluetoothStatus;
    TextView TextIPAddress;
    TextView TextOSVersion;
    TextView TextPrinterIP;
    TextView TextPrinterName;
    TextView TextPrinterStatus;
    TextView TextWiFiName;
    TextView TextWiFiState;
    Handler mHandler = new Handler(new Handler.Callback() {
        public boolean handleMessage(Message message) {
            String str;
            String str2;
            EPLog.m313i("IprintHome", "HandlerCallback");
            int i = message.getData().getInt(Constants.PRINTER_LOCATION);
            EpLog.m69d("printerLocation " + i);
            boolean z = false;
            switch (message.what) {
                case 0:
                    EPLog.m313i(DeviceInformationActivity.this.TAG, "UPDATE_PRINTER_STATUS");
                    int[] mStatus = DeviceInformationActivity.this.mPrinter.getMPrinterInfor().getMStatus();
                    EpLog.m69d("status " + mStatus[0]);
                    if (i == 1 && WiFiDirectManager.getConnectInfo(DeviceInformationActivity.this.getApplicationContext(), WiFiDirectManager.DEVICE_TYPE_PRINTER) != null) {
                        str = DeviceInformationActivity.this.getString(C2135R.string.wifi_direct_status);
                        z = true;
                    } else if (i == 1 || (i == 3 && Utils.isConnectedWifi(DeviceInformationActivity.this.getApplicationContext()))) {
                        str = DeviceInformationActivity.this.getString(C2135R.string.printer_ready);
                        z = true;
                    } else if (i != 2 && (i != 3 || Utils.isConnectedWifi(DeviceInformationActivity.this.getApplicationContext()))) {
                        str = DeviceInformationActivity.this.getString(C2135R.string.not_select_status);
                    } else if (!Utils.isOnline(DeviceInformationActivity.this.getApplicationContext())) {
                        str = DeviceInformationActivity.this.getString(C2135R.string.cannot_connect);
                    } else {
                        str = DeviceInformationActivity.this.getString(C2135R.string.remote_can_connect);
                    }
                    DeviceInformationActivity.this.setPrinterInfo(str, z);
                    String access$000 = DeviceInformationActivity.this.TAG;
                    EPLog.m313i(access$000, "Stt title: " + str);
                    break;
                case 1:
                    EPLog.m313i(DeviceInformationActivity.this.TAG, "PROBE_ERROR");
                    if (i != 1 || WiFiDirectManager.getConnectInfo(DeviceInformationActivity.this.getApplicationContext(), WiFiDirectManager.DEVICE_TYPE_PRINTER) == null) {
                        str2 = DeviceInformationActivity.this.getString(C2135R.string.comm_error);
                    } else {
                        str2 = DeviceInformationActivity.this.getString(C2135R.string.wifi_direct_status);
                    }
                    DeviceInformationActivity.this.setPrinterInfo(str2, false);
                    String access$0002 = DeviceInformationActivity.this.TAG;
                    EPLog.m313i(access$0002, "Stt title: " + str2);
                    break;
                case 2:
                    EPLog.m313i(DeviceInformationActivity.this.TAG, "STATUS_ERROR");
                    int[] intArray = message.getData().getIntArray("STATUS_ERROR");
                    if (i != 1 || WiFiDirectManager.getConnectInfo(DeviceInformationActivity.this.getApplicationContext(), WiFiDirectManager.DEVICE_TYPE_PRINTER) == null) {
                        if (intArray == null) {
                            DeviceInformationActivity deviceInformationActivity = DeviceInformationActivity.this;
                            deviceInformationActivity.setPrinterInfo(deviceInformationActivity.getString(C2135R.string.upon_error), true);
                            String access$0003 = DeviceInformationActivity.this.TAG;
                            EPLog.m313i(access$0003, "Stt titlef: " + DeviceInformationActivity.this.getString(C2135R.string.upon_error));
                            break;
                        } else {
                            String access$0004 = DeviceInformationActivity.this.TAG;
                            EPLog.m313i(access$0004, "statusError[0] : " + intArray[0]);
                            String access$0005 = DeviceInformationActivity.this.TAG;
                            EPLog.m313i(access$0005, "statusError[1] : " + intArray[1]);
                            if (intArray[0] != 2 && intArray[0] != 1 && intArray[0] != 3) {
                                if (intArray[0] != 4 || (intArray[1] != 102 && intArray[1] != -1300)) {
                                    DeviceInformationActivity deviceInformationActivity2 = DeviceInformationActivity.this;
                                    deviceInformationActivity2.setPrinterInfo(deviceInformationActivity2.getString(C2135R.string.upon_error), true);
                                    String access$0006 = DeviceInformationActivity.this.TAG;
                                    EPLog.m313i(access$0006, "Stt title: " + DeviceInformationActivity.this.getString(C2135R.string.upon_error));
                                    break;
                                } else {
                                    DeviceInformationActivity deviceInformationActivity3 = DeviceInformationActivity.this;
                                    deviceInformationActivity3.setPrinterInfo(deviceInformationActivity3.getString(C2135R.string.comm_error), false);
                                    String access$0007 = DeviceInformationActivity.this.TAG;
                                    EPLog.m313i(access$0007, "Stt title: " + DeviceInformationActivity.this.getString(C2135R.string.comm_error));
                                    break;
                                }
                            } else {
                                DeviceInformationActivity deviceInformationActivity4 = DeviceInformationActivity.this;
                                deviceInformationActivity4.setPrinterInfo(deviceInformationActivity4.getString(C2135R.string.printer_ready), true);
                                String access$0008 = DeviceInformationActivity.this.TAG;
                                EPLog.m313i(access$0008, "Stt title: " + DeviceInformationActivity.this.getString(C2135R.string.printer_ready));
                                break;
                            }
                        }
                    } else {
                        DeviceInformationActivity deviceInformationActivity5 = DeviceInformationActivity.this;
                        deviceInformationActivity5.setPrinterInfo(deviceInformationActivity5.getString(C2135R.string.wifi_direct_status), true);
                        String access$0009 = DeviceInformationActivity.this.TAG;
                        EPLog.m313i(access$0009, "Stt title: " + DeviceInformationActivity.this.getString(C2135R.string.printer_ready));
                        break;
                    }
                    break;
                default:
                    EPLog.m313i("IprintHome", DirectorySelecterActivity.PARAM_DEFAULT_DIR);
                    DeviceInformationActivity deviceInformationActivity6 = DeviceInformationActivity.this;
                    deviceInformationActivity6.setPrinterInfo(deviceInformationActivity6.getString(C2135R.string.printer_not_select), false);
                    break;
            }
            DeviceInformationActivity.this.hideLoadProgressBar();
            return true;
        }
    });
    /* access modifiers changed from: private */
    public MaintainPrinter2 mPrinter = MaintainPrinter2.getInstance();
    private ProbePrinter task;

    /* access modifiers changed from: protected */
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView((int) C2135R.layout.device_information);
        setActionBar((int) C2135R.string.str_deviceInformation_Info, true);
        checkSmartPhoneInfo();
        checkPrinterInfo();
        checkWiFiInfo();
    }

    public void onBackPressed() {
        super.onBackPressed();
        stopProbePrinter();
    }

    public void onDestroy() {
        stopProbePrinter();
        super.onDestroy();
    }

    private void stopProbePrinter() {
        if (this.task != null) {
            EPLog.m313i(this.TAG, "stopProbePrinter");
            this.mPrinter.doCancelFindPrinter();
            this.task.cancel(true);
            this.task = null;
        }
    }

    private void checkPrinterInfo() {
        this.TextPrinterName = (TextView) findViewById(C2135R.C2137id.tv_devicePrinterName);
        MyPrinter curPrinter = MyPrinter.getCurPrinter(getApplicationContext());
        int location = curPrinter.getLocation();
        if (curPrinter.getName() != null) {
            this.TextPrinterName.setText(curPrinter.getName());
            showLoadProgressBar();
            if (location == 1 || (location == 3 && Utils.isConnectedWifi(getApplicationContext()))) {
                ManageDefaultNetwork.getInstance(this).setDefaultNetworkSimpleAp();
                EpLog.m70d("IprintHome", "Update printer status after execute Probing");
                this.task = new ProbePrinter(curPrinter, this.mPrinter, this.mHandler);
                this.task.execute(new Context[]{this});
                return;
            }
            EpLog.m70d("IprintHome", "Update printer status without execute Probing ");
            sendUpdatePrinterStatus(this.mHandler, location);
        }
    }

    /* access modifiers changed from: private */
    public void setPrinterInfo(String str, boolean z) {
        this.TextPrinterStatus = (TextView) findViewById(C2135R.C2137id.tv_devicePrinterStatus);
        this.TextPrinterIP = (TextView) findViewById(C2135R.C2137id.tv_devicePrinterIPAddress);
        this.TextPrinterStatus.setText(str);
        if (z) {
            this.TextPrinterIP.setText(MyPrinter.getCurPrinter(getApplicationContext()).getIp());
        }
    }

    private void checkSmartPhoneInfo() {
        StringBuilder sb = new StringBuilder();
        this.TextBluetoothStatus = (TextView) findViewById(C2135R.C2137id.tv_deviceBluetoothStatus);
        this.TextOSVersion = (TextView) findViewById(C2135R.C2137id.tv_deviceOSVersion);
        sb.append("Android ");
        sb.append(Build.VERSION.RELEASE);
        this.TextOSVersion.setText(sb.toString());
        BluetoothAdapter defaultAdapter = BluetoothAdapter.getDefaultAdapter();
        if (defaultAdapter == null) {
            this.TextBluetoothStatus.setText(C2135R.string.str_deviceInformation_BluetoothOFF);
        } else if (!defaultAdapter.isEnabled()) {
            this.TextBluetoothStatus.setText(C2135R.string.str_deviceInformation_BluetoothOFF);
        } else {
            this.TextBluetoothStatus.setText(C2135R.string.str_deviceInformation_BluetoothON);
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:11:0x009e  */
    /* JADX WARNING: Removed duplicated region for block: B:15:0x00b5  */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    private void checkWiFiInfo() {
        /*
            r4 = this;
            android.content.Context r0 = r4.getApplicationContext()
            epson.print.MyPrinter r0 = epson.print.MyPrinter.getCurPrinter(r0)
            java.lang.String r0 = r0.getPrinterId()
            r1 = 2131231595(0x7f08036b, float:1.8079275E38)
            android.view.View r1 = r4.findViewById(r1)
            android.widget.TextView r1 = (android.widget.TextView) r1
            r4.TextWiFiState = r1
            r1 = 2131231594(0x7f08036a, float:1.8079273E38)
            android.view.View r1 = r4.findViewById(r1)
            android.widget.TextView r1 = (android.widget.TextView) r1
            r4.TextWiFiName = r1
            r1 = 2131231586(0x7f080362, float:1.8079257E38)
            android.view.View r1 = r4.findViewById(r1)
            android.widget.TextView r1 = (android.widget.TextView) r1
            r4.TextIPAddress = r1
            android.content.Context r1 = r4.getApplicationContext()
            java.lang.String r2 = "printer"
            java.lang.String r1 = com.epson.mobilephone.common.wifidirect.WiFiDirectManager.getConnectInfo(r1, r2)
            android.content.Context r2 = r4.getApplicationContext()
            com.epson.mobilephone.common.wifidirect.WiFiControl$ConnectType r2 = com.epson.mobilephone.common.wifidirect.WiFiDirectManager.getConnectType(r2, r1)
            int[] r3 = epson.support.DeviceInformationActivity.C24682.f415x793e0ec3
            int r2 = r2.ordinal()
            r2 = r3[r2]
            r3 = 1
            if (r2 == r3) goto L_0x004b
            goto L_0x0088
        L_0x004b:
            android.content.Context r2 = r4.getApplicationContext()
            com.epson.mobilephone.common.wifidirect.WifiP2pUtils r2 = com.epson.mobilephone.common.wifidirect.WifiP2pUtils.getInstance(r2)
            com.epson.mobilephone.common.wifidirect.WifiP2pUtils$ConnectionInfo r2 = r2.getConnectionInfo()
            android.content.Context r3 = r4.getApplicationContext()
            java.lang.String r0 = com.epson.mobilephone.common.wifidirect.MacAddrUtils.getMacAddressFromPrinterId(r0)
            java.lang.String r0 = com.epson.mobilephone.common.wifidirect.WiFiDirectManager.getCurConnectInfo(r3, r0)
            if (r2 == 0) goto L_0x0088
            if (r1 == 0) goto L_0x0088
            boolean r0 = r1.equals(r0)
            if (r0 == 0) goto L_0x0088
            android.content.Context r0 = r4.getApplicationContext()
            com.epson.mobilephone.common.wifidirect.WiFiControl r0 = com.epson.mobilephone.common.wifidirect.WiFiControl.getInstance(r0)
            java.lang.String r2 = r2.p2PMacAdder
            java.lang.String r2 = com.epson.mobilephone.common.wifidirect.MacAddrUtils.p2pAddr2MacAddrStr(r2)
            java.lang.String r0 = r0.getEstimateSSID(r1, r2)
            android.content.Context r1 = r4.getApplicationContext()
            java.lang.String r1 = getIpAddressFromP2P(r1)
            goto L_0x0094
        L_0x0088:
            android.content.Context r0 = r4.getApplicationContext()
            java.lang.String r0 = com.epson.mobilephone.common.wifidirect.WiFiDirectManager.getCurSSID(r0)
            java.lang.String r1 = r4.getIpAddressFromWiFi()
        L_0x0094:
            android.content.Context r2 = r4.getApplicationContext()
            boolean r2 = com.epson.mobilephone.common.wifidirect.WiFiDirectManager.isWifiEnabled(r2)
            if (r2 == 0) goto L_0x00b5
            android.widget.TextView r2 = r4.TextWiFiState
            r3 = 2131625113(0x7f0e0499, float:1.8877425E38)
            r2.setText(r3)
            if (r0 == 0) goto L_0x00bd
            if (r1 == 0) goto L_0x00bd
            android.widget.TextView r2 = r4.TextWiFiName
            r2.setText(r0)
            android.widget.TextView r0 = r4.TextIPAddress
            r0.setText(r1)
            goto L_0x00bd
        L_0x00b5:
            android.widget.TextView r0 = r4.TextWiFiState
            r1 = 2131625112(0x7f0e0498, float:1.8877423E38)
            r0.setText(r1)
        L_0x00bd:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: epson.support.DeviceInformationActivity.checkWiFiInfo():void");
    }

    /* renamed from: epson.support.DeviceInformationActivity$2 */
    static /* synthetic */ class C24682 {

        /* renamed from: $SwitchMap$com$epson$mobilephone$common$wifidirect$WiFiControl$ConnectType */
        static final /* synthetic */ int[] f415x793e0ec3 = new int[WiFiControl.ConnectType.values().length];

        /* JADX WARNING: Can't wrap try/catch for region: R(8:0|1|2|3|4|5|6|8) */
        /* JADX WARNING: Failed to process nested try/catch */
        /* JADX WARNING: Missing exception handler attribute for start block: B:3:0x0014 */
        /* JADX WARNING: Missing exception handler attribute for start block: B:5:0x001f */
        static {
            /*
                com.epson.mobilephone.common.wifidirect.WiFiControl$ConnectType[] r0 = com.epson.mobilephone.common.wifidirect.WiFiControl.ConnectType.values()
                int r0 = r0.length
                int[] r0 = new int[r0]
                f415x793e0ec3 = r0
                int[] r0 = f415x793e0ec3     // Catch:{ NoSuchFieldError -> 0x0014 }
                com.epson.mobilephone.common.wifidirect.WiFiControl$ConnectType r1 = com.epson.mobilephone.common.wifidirect.WiFiControl.ConnectType.WiFiP2P     // Catch:{ NoSuchFieldError -> 0x0014 }
                int r1 = r1.ordinal()     // Catch:{ NoSuchFieldError -> 0x0014 }
                r2 = 1
                r0[r1] = r2     // Catch:{ NoSuchFieldError -> 0x0014 }
            L_0x0014:
                int[] r0 = f415x793e0ec3     // Catch:{ NoSuchFieldError -> 0x001f }
                com.epson.mobilephone.common.wifidirect.WiFiControl$ConnectType r1 = com.epson.mobilephone.common.wifidirect.WiFiControl.ConnectType.SimpleAP     // Catch:{ NoSuchFieldError -> 0x001f }
                int r1 = r1.ordinal()     // Catch:{ NoSuchFieldError -> 0x001f }
                r2 = 2
                r0[r1] = r2     // Catch:{ NoSuchFieldError -> 0x001f }
            L_0x001f:
                int[] r0 = f415x793e0ec3     // Catch:{ NoSuchFieldError -> 0x002a }
                com.epson.mobilephone.common.wifidirect.WiFiControl$ConnectType r1 = com.epson.mobilephone.common.wifidirect.WiFiControl.ConnectType.NONE     // Catch:{ NoSuchFieldError -> 0x002a }
                int r1 = r1.ordinal()     // Catch:{ NoSuchFieldError -> 0x002a }
                r2 = 3
                r0[r1] = r2     // Catch:{ NoSuchFieldError -> 0x002a }
            L_0x002a:
                return
            */
            throw new UnsupportedOperationException("Method not decompiled: epson.support.DeviceInformationActivity.C24682.<clinit>():void");
        }
    }

    private String getIpAddressFromWiFi() {
        int ipAddress = ((WifiManager) getApplicationContext().getSystemService("wifi")).getConnectionInfo().getIpAddress();
        if (ByteOrder.nativeOrder().equals(ByteOrder.LITTLE_ENDIAN)) {
            ipAddress = Integer.reverseBytes(ipAddress);
        }
        try {
            return InetAddress.getByAddress(BigInteger.valueOf((long) ipAddress).toByteArray()).getHostAddress();
        } catch (UnknownHostException unused) {
            EpLog.m72e(this.TAG, "Unable to get host address.");
            return null;
        }
    }

    public static String getIpAddressFromP2P(Context context) {
        try {
            NetworkInterface p2PInterfaceInfo = WifiP2pUtils.getInstance(context).getP2PInterfaceInfo();
            if (p2PInterfaceInfo == null) {
                return null;
            }
            for (T t : Collections.list(p2PInterfaceInfo.getInetAddresses())) {
                if (!t.isLoopbackAddress()) {
                    String upperCase = t.getHostAddress().toUpperCase();
                    if (IPAddressUtils.isIPv4Address(upperCase)) {
                        return upperCase;
                    }
                }
            }
            return null;
        } catch (Exception unused) {
        }
    }

    /* access modifiers changed from: private */
    public static void sendUpdatePrinterStatus(@Nullable Handler handler, int i) {
        if (handler != null) {
            Message obtainMessage = handler.obtainMessage();
            obtainMessage.what = 0;
            Bundle bundle = new Bundle();
            bundle.putInt(Constants.PRINTER_LOCATION, i);
            obtainMessage.setData(bundle);
            handler.sendMessage(obtainMessage);
        }
    }

    private static class ProbePrinter extends AsyncTask<Context, Void, Boolean> {
        private final WeakReference<Handler> mHandlerReference;
        private final MyPrinter mMyPrinter;
        private MaintainPrinter2 mPrinter;
        private int mPrinterLocation;

        /* access modifiers changed from: protected */
        public void onPreExecute() {
        }

        public ProbePrinter(@NonNull MyPrinter myPrinter, @NonNull MaintainPrinter2 maintainPrinter2, @Nullable Handler handler) {
            this.mHandlerReference = new WeakReference<>(handler);
            this.mPrinter = maintainPrinter2;
            this.mMyPrinter = myPrinter;
        }

        /* access modifiers changed from: protected */
        public Boolean doInBackground(Context... contextArr) {
            EpLog.m77i("ProbePrinter doInBackground");
            this.mPrinter.doInitDriver(contextArr[0], 2);
            this.mPrinterLocation = this.mMyPrinter.getLocation();
            int i = this.mPrinterLocation;
            if (i == 1 || i == 3) {
                if (this.mMyPrinter.getPrinterId() == null) {
                    this.mPrinterLocation = 0;
                } else if (this.mPrinter.doProbePrinter(60, this.mMyPrinter.getPrinterId(), this.mMyPrinter.getIp(), this.mPrinterLocation) != 0) {
                    localSendMessage(1);
                    return false;
                } else {
                    int doSetPrinter = this.mPrinter.doSetPrinter();
                    EpLog.m77i("Set Printer result: " + doSetPrinter);
                    if (doSetPrinter != 0) {
                        localSendMessage(1);
                        return false;
                    }
                    int doGetStatus = this.mPrinter.doGetStatus();
                    EpLog.m77i("Printer Status result: " + doGetStatus);
                    if (doGetStatus != 0) {
                        localSendMessage(1);
                        return false;
                    }
                    int[] mStatus = this.mPrinter.getMPrinterInfor().getMStatus();
                    if (mStatus[0] != 0) {
                        sendStatusError(mStatus);
                        return false;
                    }
                }
            }
            return true;
        }

        private void sendStatusError(int[] iArr) {
            Handler handler = (Handler) this.mHandlerReference.get();
            if (handler != null) {
                Message obtainMessage = handler.obtainMessage();
                obtainMessage.what = 2;
                Bundle bundle = new Bundle();
                bundle.putIntArray("STATUS_ERROR", iArr);
                bundle.putInt(Constants.PRINTER_LOCATION, this.mPrinterLocation);
                obtainMessage.setData(bundle);
                handler.sendMessage(obtainMessage);
            }
        }

        private void localSendMessage(int i) {
            Handler handler = (Handler) this.mHandlerReference.get();
            if (handler != null) {
                Message obtainMessage = handler.obtainMessage();
                obtainMessage.what = i;
                Bundle bundle = new Bundle();
                bundle.putInt(Constants.PRINTER_LOCATION, this.mPrinterLocation);
                obtainMessage.setData(bundle);
                handler.sendMessage(obtainMessage);
            }
        }

        /* access modifiers changed from: protected */
        public void onCancelled() {
            EpLog.m77i("ProbePrinter onCancelled");
            super.onCancelled();
        }

        /* access modifiers changed from: protected */
        public void onPostExecute(Boolean bool) {
            EpLog.m77i("ProbePrinter onPostExecute");
            if (bool.booleanValue()) {
                DeviceInformationActivity.sendUpdatePrinterStatus((Handler) this.mHandlerReference.get(), this.mPrinterLocation);
            }
        }
    }

    private void showLoadProgressBar() {
        this.PrinterProbeProgress = (ProgressBar) findViewById(C2135R.C2137id.progress_status);
        this.PrinterStatusInfo = (TextView) findViewById(C2135R.C2137id.tv_devicePrinterStatusInfo);
        this.PrinterIPInfo = (TextView) findViewById(C2135R.C2137id.tv_devicePrinterIPAddressInfo);
        this.PrinterProbeProgress.setVisibility(0);
        this.PrinterStatusInfo.setTextColor(getApplicationContext().getResources().getColor(C2135R.color.light_gray));
        this.PrinterIPInfo.setTextColor(getApplicationContext().getResources().getColor(C2135R.color.light_gray));
    }

    /* access modifiers changed from: private */
    public void hideLoadProgressBar() {
        this.PrinterProbeProgress.setVisibility(8);
        this.PrinterStatusInfo.setTextColor(getApplicationContext().getResources().getColor(C2135R.color.black));
        this.PrinterIPInfo.setTextColor(getApplicationContext().getResources().getColor(C2135R.color.black));
    }
}
