|
@@ -21,7 +21,7 @@ import android.os.IBinder;
|
|
|
import android.os.Message;
|
|
|
import android.os.RemoteException;
|
|
|
import android.support.annotation.ColorRes;
|
|
|
-import android.support.annotation.NonNull;
|
|
|
+
|
|
|
import android.support.p000v4.app.DialogFragment;
|
|
|
import android.support.p000v4.app.FragmentActivity;
|
|
|
import android.support.p000v4.content.ContextCompat;
|
|
@@ -52,7 +52,7 @@ import epson.common.Utils;
|
|
|
import epson.epsonconnectregistration.ActivityECConfiguration;
|
|
|
import epson.maintain.BatteryInfoAdapter;
|
|
|
import epson.print.ActivityIACommon;
|
|
|
-import epson.print.C2135R;
|
|
|
+import epson.print.R;
|
|
|
import epson.print.CommonDefine;
|
|
|
import epson.print.MyPrinter;
|
|
|
import epson.print.Util.AsyncTaskExecutor;
|
|
@@ -112,20 +112,14 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
private static final int UPDATE_STT = 2;
|
|
|
private static boolean isMessageScreenShowing = false;
|
|
|
private Switch btnToggleAlert;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public Switch btnTogglePreview;
|
|
|
+ private Switch btnTogglePreview;
|
|
|
private Dialog customPro;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public int escprSetPrinterSuccessed = -1;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public boolean isGotError = false;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public boolean isKeepSimpleAPConnection = false;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public boolean isRemotePrinter = false;
|
|
|
+ private int escprSetPrinterSuccessed = -1;
|
|
|
+ private boolean isGotError = false;
|
|
|
+ private boolean isKeepSimpleAPConnection = false;
|
|
|
+ private boolean isRemotePrinter = false;
|
|
|
boolean isResearchScanner = false;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public boolean isTryConnectSimpleAp = false;
|
|
|
+ private boolean isTryConnectSimpleAp = false;
|
|
|
private View mAlertMesseageSeparater;
|
|
|
private LinearLayout mAlertMesseageView;
|
|
|
private Thread mBackGround;
|
|
@@ -133,8 +127,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
private int mBuyInkGroupVisibility;
|
|
|
private View mBuyInkSeparator;
|
|
|
private LinearLayout mBuyInkView;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public IEpsonServiceCallback mCallback = new IEpsonServiceCallback.Stub() {
|
|
|
+ private IEpsonServiceCallback mCallback = new IEpsonServiceCallback.Stub() {
|
|
|
public void onFindPrinterResult(String str, String str2, String str3, String str4, String str5) throws RemoteException {
|
|
|
}
|
|
|
|
|
@@ -182,8 +175,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public IEpsonService mEpsonService = null;
|
|
|
+ private IEpsonService mEpsonService = null;
|
|
|
private TextView mFWUpdateText;
|
|
|
private LinearLayout mFWUpdateView;
|
|
|
boolean mHavePrinter = false;
|
|
@@ -191,11 +183,9 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
private LinearLayout mHeadCleanView;
|
|
|
private LinearLayout mInkDsView;
|
|
|
private LinearLayout mInkView;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public volatile boolean mIsCancelProbe = false;
|
|
|
+ private volatile boolean mIsCancelProbe = false;
|
|
|
private Boolean mIsNozzleCheckEnable = true;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public volatile boolean mIsStillUpdate = true;
|
|
|
+ private volatile boolean mIsStillUpdate = true;
|
|
|
boolean mIsStop = false;
|
|
|
private LinearLayout mLLSerialNo;
|
|
|
private View mLoadConPro;
|
|
@@ -209,21 +199,17 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
private View mPrintHistorySeparator;
|
|
|
private LinearLayout mPrintHistoryView;
|
|
|
private LinearLayout mPrintPreviewView;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public MaintainPrinter2 mPrinter = MaintainPrinter2.getInstance();
|
|
|
+ private MaintainPrinter2 mPrinter = MaintainPrinter2.getInstance();
|
|
|
private View mPrinterSettingSeparator;
|
|
|
private LinearLayout mPrinterSettingView;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public int[] mPrinterStatus;
|
|
|
+ private int[] mPrinterStatus;
|
|
|
boolean mStartSearch = false;
|
|
|
private TextView mTextMaintenance;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public TextView mTvPrinterName;
|
|
|
+ private TextView mTvPrinterName;
|
|
|
private TextView mTvPrinterStatus;
|
|
|
private TextView mTvPrinterStatusDetail;
|
|
|
private TextView mTvSerialNo;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public Handler mUiHandler = new Handler(new Handler.Callback() {
|
|
|
+ private Handler mUiHandler = new Handler(new Handler.Callback() {
|
|
|
public boolean handleMessage(Message message) {
|
|
|
switch (message.what) {
|
|
|
case 0:
|
|
@@ -258,20 +244,20 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
MaintainActivity.this.mTvPrinterName.setText(MaintainActivity.this.printerName);
|
|
|
switch (MaintainActivity.this.printerLocation) {
|
|
|
case 2:
|
|
|
- ((ImageView) MaintainActivity.this.findViewById(C2135R.C2137id.imageViewPrinterLocation)).setVisibility(0);
|
|
|
- ((ImageView) MaintainActivity.this.findViewById(C2135R.C2137id.imageViewPrinterLocation)).setImageResource(C2135R.C2136drawable.print_remote);
|
|
|
+ ((ImageView) MaintainActivity.this.findViewById(R.id.imageViewPrinterLocation)).setVisibility(0);
|
|
|
+ ((ImageView) MaintainActivity.this.findViewById(R.id.imageViewPrinterLocation)).setImageResource(R.C2136drawable.print_remote);
|
|
|
break;
|
|
|
case 3:
|
|
|
- ((ImageView) MaintainActivity.this.findViewById(C2135R.C2137id.imageViewPrinterLocation)).setVisibility(0);
|
|
|
- ((ImageView) MaintainActivity.this.findViewById(C2135R.C2137id.imageViewPrinterLocation)).setImageResource(C2135R.C2136drawable.print_ip);
|
|
|
+ ((ImageView) MaintainActivity.this.findViewById(R.id.imageViewPrinterLocation)).setVisibility(0);
|
|
|
+ ((ImageView) MaintainActivity.this.findViewById(R.id.imageViewPrinterLocation)).setImageResource(R.C2136drawable.print_ip);
|
|
|
break;
|
|
|
default:
|
|
|
if (!MaintainActivity.this.printerName.equals("")) {
|
|
|
- ((ImageView) MaintainActivity.this.findViewById(C2135R.C2137id.imageViewPrinterLocation)).setVisibility(0);
|
|
|
- ((ImageView) MaintainActivity.this.findViewById(C2135R.C2137id.imageViewPrinterLocation)).setImageResource(C2135R.C2136drawable.print_local);
|
|
|
+ ((ImageView) MaintainActivity.this.findViewById(R.id.imageViewPrinterLocation)).setVisibility(0);
|
|
|
+ ((ImageView) MaintainActivity.this.findViewById(R.id.imageViewPrinterLocation)).setImageResource(R.C2136drawable.print_local);
|
|
|
break;
|
|
|
} else {
|
|
|
- ((ImageView) MaintainActivity.this.findViewById(C2135R.C2137id.imageViewPrinterLocation)).setVisibility(8);
|
|
|
+ ((ImageView) MaintainActivity.this.findViewById(R.id.imageViewPrinterLocation)).setVisibility(8);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -303,16 +289,11 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
private View mVSerialSeparator;
|
|
|
private boolean mWaiteInkDsDialog;
|
|
|
private MaintainBuyInkOnlineRegTask modelBuyInkOnlineRegTask;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public String printerId = "";
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public String printerIp = "";
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public int printerLocation = 1;
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public String printerName = "";
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public int serverLoginStatus = -2;
|
|
|
+ private String printerId = "";
|
|
|
+ private String printerIp = "";
|
|
|
+ private int printerLocation = 1;
|
|
|
+ private String printerName = "";
|
|
|
+ private int serverLoginStatus = -2;
|
|
|
|
|
|
private static int calcInkWidth(int i, float f) {
|
|
|
if (i <= 0) {
|
|
@@ -337,66 +318,65 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onCreate(Bundle bundle) {
|
|
|
+ protected void onCreate(Bundle bundle) {
|
|
|
EpLog.m78i(TAG, "onCreate IN");
|
|
|
super.onCreate(bundle);
|
|
|
- setContentView((int) C2135R.layout.maintain);
|
|
|
+ setContentView((int) R.layout.maintain);
|
|
|
this.mContext = this;
|
|
|
this.mBuyInkGroupVisibility = 0;
|
|
|
- setActionBar((int) C2135R.string.str_maintenance, true);
|
|
|
+ setActionBar((int) R.string.str_maintenance, true);
|
|
|
if (this.mEpsonService == null) {
|
|
|
bindService(new Intent(this, EpsonService.class), this.mEpsonConnection, 1);
|
|
|
}
|
|
|
this.mDisplay = getWindowManager().getDefaultDisplay();
|
|
|
- findViewById(C2135R.C2137id.printer).setOnClickListener(this);
|
|
|
- this.mTvPrinterName = (TextView) findViewById(C2135R.C2137id.printer_name);
|
|
|
- this.mVSerialSeparator = findViewById(C2135R.C2137id.serial_separator);
|
|
|
- this.mLLSerialNo = (LinearLayout) findViewById(C2135R.C2137id.serial);
|
|
|
- this.mTvSerialNo = (TextView) findViewById(C2135R.C2137id.serial_no);
|
|
|
- this.mTvPrinterStatus = (TextView) findViewById(C2135R.C2137id.printer_status);
|
|
|
- this.mTvPrinterStatusDetail = (TextView) findViewById(C2135R.C2137id.printer_status_detail);
|
|
|
- this.mTextMaintenance = (TextView) findViewById(C2135R.C2137id.text_maintenance);
|
|
|
- this.mInkView = (LinearLayout) findViewById(C2135R.C2137id.ink_view_ln);
|
|
|
- this.mMaintenanceBoxText = (TextView) findViewById(C2135R.C2137id.maintenance_box_text);
|
|
|
- this.mMaintenanceBoxView = (LinearLayout) findViewById(C2135R.C2137id.maintenance_box_info_layout);
|
|
|
- this.mCleanCheckView = (LinearLayout) findViewById(C2135R.C2137id.clean_check);
|
|
|
- this.mHeadCleanView = (LinearLayout) findViewById(C2135R.C2137id.head_clean_view);
|
|
|
+ findViewById(R.id.printer).setOnClickListener(this);
|
|
|
+ this.mTvPrinterName = (TextView) findViewById(R.id.printer_name);
|
|
|
+ this.mVSerialSeparator = findViewById(R.id.serial_separator);
|
|
|
+ this.mLLSerialNo = (LinearLayout) findViewById(R.id.serial);
|
|
|
+ this.mTvSerialNo = (TextView) findViewById(R.id.serial_no);
|
|
|
+ this.mTvPrinterStatus = (TextView) findViewById(R.id.printer_status);
|
|
|
+ this.mTvPrinterStatusDetail = (TextView) findViewById(R.id.printer_status_detail);
|
|
|
+ this.mTextMaintenance = (TextView) findViewById(R.id.text_maintenance);
|
|
|
+ this.mInkView = (LinearLayout) findViewById(R.id.ink_view_ln);
|
|
|
+ this.mMaintenanceBoxText = (TextView) findViewById(R.id.maintenance_box_text);
|
|
|
+ this.mMaintenanceBoxView = (LinearLayout) findViewById(R.id.maintenance_box_info_layout);
|
|
|
+ this.mCleanCheckView = (LinearLayout) findViewById(R.id.clean_check);
|
|
|
+ this.mHeadCleanView = (LinearLayout) findViewById(R.id.head_clean_view);
|
|
|
this.mHeadCleanView.setOnClickListener(this);
|
|
|
- this.mHeadCleanText = (TextView) findViewById(C2135R.C2137id.head_clean_text);
|
|
|
- this.mNozzleCheckView = (LinearLayout) findViewById(C2135R.C2137id.nozzle_check_view);
|
|
|
+ this.mHeadCleanText = (TextView) findViewById(R.id.head_clean_text);
|
|
|
+ this.mNozzleCheckView = (LinearLayout) findViewById(R.id.nozzle_check_view);
|
|
|
this.mNozzleCheckView.setOnClickListener(this);
|
|
|
- this.mNozzleCheckText = (TextView) findViewById(C2135R.C2137id.nozzle_check_text);
|
|
|
- this.mFWUpdateView = (LinearLayout) findViewById(C2135R.C2137id.fwupdate_view);
|
|
|
+ this.mNozzleCheckText = (TextView) findViewById(R.id.nozzle_check_text);
|
|
|
+ this.mFWUpdateView = (LinearLayout) findViewById(R.id.fwupdate_view);
|
|
|
this.mFWUpdateView.setOnClickListener(this);
|
|
|
- this.mFWUpdateText = (TextView) findViewById(C2135R.C2137id.fwupdate_text);
|
|
|
- this.btnTogglePreview = (Switch) findViewById(C2135R.C2137id.togglePreview);
|
|
|
+ this.mFWUpdateText = (TextView) findViewById(R.id.fwupdate_text);
|
|
|
+ this.btnTogglePreview = (Switch) findViewById(R.id.togglePreview);
|
|
|
this.btnTogglePreview.setOnClickListener(this);
|
|
|
- this.btnToggleAlert = (Switch) findViewById(C2135R.C2137id.toggleAlert);
|
|
|
+ this.btnToggleAlert = (Switch) findViewById(R.id.toggleAlert);
|
|
|
this.btnToggleAlert.setOnClickListener(this);
|
|
|
- this.mPrinterSettingView = (LinearLayout) findViewById(C2135R.C2137id.printer_setting);
|
|
|
+ this.mPrinterSettingView = (LinearLayout) findViewById(R.id.printer_setting);
|
|
|
this.mPrinterSettingView.setOnClickListener(this);
|
|
|
- this.mEpsonConnectView = (LinearLayout) findViewById(C2135R.C2137id.epsonconnect_option);
|
|
|
+ this.mEpsonConnectView = (LinearLayout) findViewById(R.id.epsonconnect_option);
|
|
|
this.mEpsonConnectView.setOnClickListener(this);
|
|
|
- this.mPrintHistoryView = (LinearLayout) findViewById(C2135R.C2137id.print_history);
|
|
|
+ this.mPrintHistoryView = (LinearLayout) findViewById(R.id.print_history);
|
|
|
this.mPrintHistoryView.setOnClickListener(this);
|
|
|
- this.mOnlineRegistrationView = (LinearLayout) findViewById(C2135R.C2137id.online_registration);
|
|
|
+ this.mOnlineRegistrationView = (LinearLayout) findViewById(R.id.online_registration);
|
|
|
this.mOnlineRegistrationView.setOnClickListener(this);
|
|
|
- this.mBuyInkGroup = (LinearLayout) findViewById(C2135R.C2137id.mentenance_buy_ink_frame);
|
|
|
- this.mBuyInkView = (LinearLayout) findViewById(C2135R.C2137id.mentenance_buy_ink);
|
|
|
+ this.mBuyInkGroup = (LinearLayout) findViewById(R.id.mentenance_buy_ink_frame);
|
|
|
+ this.mBuyInkView = (LinearLayout) findViewById(R.id.mentenance_buy_ink);
|
|
|
this.mBuyInkView.setOnClickListener(this);
|
|
|
- this.mBuyInkSeparator = findViewById(C2135R.C2137id.buy_ink_separator);
|
|
|
- this.mInkDsView = (LinearLayout) findViewById(C2135R.C2137id.maintenance_inkds);
|
|
|
+ this.mBuyInkSeparator = findViewById(R.id.buy_ink_separator);
|
|
|
+ this.mInkDsView = (LinearLayout) findViewById(R.id.maintenance_inkds);
|
|
|
this.mInkDsView.setOnClickListener(this);
|
|
|
- this.mPrintPreviewView = (LinearLayout) findViewById(C2135R.C2137id.print_preview);
|
|
|
- this.mAlertMesseageView = (LinearLayout) findViewById(C2135R.C2137id.alert_messeage);
|
|
|
- this.mPrinterSettingSeparator = findViewById(C2135R.C2137id.printer_setting_separator);
|
|
|
- this.mPrintHistorySeparator = findViewById(C2135R.C2137id.print_history_separator);
|
|
|
- this.mOnlineRegistrationSeparator = findViewById(C2135R.C2137id.online_registration_separator);
|
|
|
- this.mAlertMesseageSeparater = findViewById(C2135R.C2137id.comm_messeage_separator);
|
|
|
+ this.mPrintPreviewView = (LinearLayout) findViewById(R.id.print_preview);
|
|
|
+ this.mAlertMesseageView = (LinearLayout) findViewById(R.id.alert_messeage);
|
|
|
+ this.mPrinterSettingSeparator = findViewById(R.id.printer_setting_separator);
|
|
|
+ this.mPrintHistorySeparator = findViewById(R.id.print_history_separator);
|
|
|
+ this.mOnlineRegistrationSeparator = findViewById(R.id.online_registration_separator);
|
|
|
+ this.mAlertMesseageSeparater = findViewById(R.id.comm_messeage_separator);
|
|
|
this.mPrinterSettingView.setEnabled(false);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.printer_setting_arrow)).setVisibility(8);
|
|
|
+ ((TextView) findViewById(R.id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
+ ((ImageView) findViewById(R.id.printer_setting_arrow)).setVisibility(8);
|
|
|
this.mVSerialSeparator.setVisibility(8);
|
|
|
this.mLLSerialNo.setVisibility(8);
|
|
|
EpLog.m78i(TAG, "onCreate :: doInitDriver");
|
|
@@ -671,14 +651,13 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
this.mLoadConfigThread.start();
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void updateButton() {
|
|
|
+ private void updateButton() {
|
|
|
switch (this.printerLocation) {
|
|
|
case 0:
|
|
|
- this.mTvPrinterName.setText(getString(C2135R.string.str_lbl_title_scan));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.imageViewPrinterLocation)).setVisibility(8);
|
|
|
- this.mTvPrinterStatus.setText(C2135R.string.EPS_PRNERR_NOT_SELECTED_TITTLE);
|
|
|
- this.mTvPrinterStatusDetail.setText(C2135R.string.EPS_PRNERR_NOT_SELECTED);
|
|
|
+ this.mTvPrinterName.setText(getString(R.string.str_lbl_title_scan));
|
|
|
+ ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setVisibility(8);
|
|
|
+ this.mTvPrinterStatus.setText(R.string.EPS_PRNERR_NOT_SELECTED_TITTLE);
|
|
|
+ this.mTvPrinterStatusDetail.setText(R.string.EPS_PRNERR_NOT_SELECTED);
|
|
|
LinearLayout linearLayout = this.mInkView;
|
|
|
if (linearLayout != null) {
|
|
|
linearLayout.removeAllViews();
|
|
@@ -690,8 +669,8 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
this.mNozzleCheckView.setEnabled(false);
|
|
|
this.mFWUpdateView.setEnabled(false);
|
|
|
this.mPrinterSettingView.setEnabled(false);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.printer_setting_arrow)).setVisibility(8);
|
|
|
+ ((TextView) findViewById(R.id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
+ ((ImageView) findViewById(R.id.printer_setting_arrow)).setVisibility(8);
|
|
|
localSetBuyInkGroupVisibility(8);
|
|
|
this.mOnlineRegistrationSeparator.setVisibility(8);
|
|
|
this.mOnlineRegistrationView.setVisibility(8);
|
|
@@ -730,16 +709,16 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
this.mNozzleCheckView.setEnabled(true);
|
|
|
this.mFWUpdateView.setEnabled(true);
|
|
|
this.mPrinterSettingView.setEnabled(true);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(C2135R.color.black));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.printer_setting_arrow)).setVisibility(0);
|
|
|
+ ((TextView) findViewById(R.id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(R.color.black));
|
|
|
+ ((ImageView) findViewById(R.id.printer_setting_arrow)).setVisibility(0);
|
|
|
setEpsonConnectButton(0);
|
|
|
} else {
|
|
|
this.mHeadCleanView.setEnabled(false);
|
|
|
this.mNozzleCheckView.setEnabled(false);
|
|
|
this.mFWUpdateView.setEnabled(false);
|
|
|
this.mPrinterSettingView.setEnabled(false);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.printer_setting_arrow)).setVisibility(8);
|
|
|
+ ((TextView) findViewById(R.id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
+ ((ImageView) findViewById(R.id.printer_setting_arrow)).setVisibility(8);
|
|
|
setEpsonConnectButton(1);
|
|
|
}
|
|
|
if (MyPrinter.PRINTER_USB.equals(this.printerIp)) {
|
|
@@ -765,9 +744,9 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
linearLayout2.removeAllViews();
|
|
|
}
|
|
|
TextView textView = new TextView(this.mContext);
|
|
|
- textView.setTextColor(getResources().getColor(C2135R.color.black));
|
|
|
+ textView.setTextColor(getResources().getColor(R.color.black));
|
|
|
textView.setTextSize(16.0f);
|
|
|
- textView.setText(getString(C2135R.string.epsonconnect_str_status_inkinfo_error));
|
|
|
+ textView.setText(getString(R.string.epsonconnect_str_status_inkinfo_error));
|
|
|
this.mInkView.addView(textView);
|
|
|
SharedPreferences sharedPreferences = getSharedPreferences(Constants.PREFS_EPSON_CONNECT, 0);
|
|
|
boolean z = sharedPreferences.getBoolean(Constants.ENABLE_SHOW_PREVIEW, true);
|
|
@@ -791,34 +770,34 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
this.mMaintenanceBoxView.setVisibility(8);
|
|
|
int i = this.serverLoginStatus;
|
|
|
if (i == 0) {
|
|
|
- this.mTvPrinterStatus.setText(getString(C2135R.string.EPS_PRNST_IDLE_TITLE));
|
|
|
- this.mTvPrinterStatusDetail.setText(getString(C2135R.string.EPS_PRNST_IDLE_MSG));
|
|
|
+ this.mTvPrinterStatus.setText(getString(R.string.EPS_PRNST_IDLE_TITLE));
|
|
|
+ this.mTvPrinterStatusDetail.setText(getString(R.string.EPS_PRNST_IDLE_MSG));
|
|
|
this.mPrintHistoryView.setEnabled(true);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_print_history)).setTextColor(this.mContext.getResources().getColor(C2135R.color.black));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.print_history_arrow)).setVisibility(0);
|
|
|
+ ((TextView) findViewById(R.id.text_print_history)).setTextColor(this.mContext.getResources().getColor(R.color.black));
|
|
|
+ ((ImageView) findViewById(R.id.print_history_arrow)).setVisibility(0);
|
|
|
this.mPrinterSettingView.setEnabled(true);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(C2135R.color.black));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.printer_setting_arrow)).setVisibility(0);
|
|
|
+ ((TextView) findViewById(R.id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(R.color.black));
|
|
|
+ ((ImageView) findViewById(R.id.printer_setting_arrow)).setVisibility(0);
|
|
|
return;
|
|
|
} else if (i == -1) {
|
|
|
- this.mTvPrinterStatus.setText(getString(C2135R.string.EC_ERR_COMM_ERROR_TITLE));
|
|
|
- this.mTvPrinterStatusDetail.setText(getString(C2135R.string.EC_ERR_COMM_ERROR));
|
|
|
+ this.mTvPrinterStatus.setText(getString(R.string.EC_ERR_COMM_ERROR_TITLE));
|
|
|
+ this.mTvPrinterStatusDetail.setText(getString(R.string.EC_ERR_COMM_ERROR));
|
|
|
this.mPrintHistoryView.setEnabled(false);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_print_history)).setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.print_history_arrow)).setVisibility(8);
|
|
|
+ ((TextView) findViewById(R.id.text_print_history)).setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
+ ((ImageView) findViewById(R.id.print_history_arrow)).setVisibility(8);
|
|
|
this.mPrinterSettingView.setEnabled(false);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.printer_setting_arrow)).setVisibility(8);
|
|
|
+ ((TextView) findViewById(R.id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
+ ((ImageView) findViewById(R.id.printer_setting_arrow)).setVisibility(8);
|
|
|
return;
|
|
|
} else {
|
|
|
- this.mTvPrinterStatus.setText(C2135R.string.epsonconnect_str_status_login_error_title);
|
|
|
- this.mTvPrinterStatusDetail.setText(getString(C2135R.string.epsonconnect_str_status_login_error));
|
|
|
+ this.mTvPrinterStatus.setText(R.string.epsonconnect_str_status_login_error_title);
|
|
|
+ this.mTvPrinterStatusDetail.setText(getString(R.string.epsonconnect_str_status_login_error));
|
|
|
this.mPrintHistoryView.setEnabled(false);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_print_history)).setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.print_history_arrow)).setVisibility(8);
|
|
|
+ ((TextView) findViewById(R.id.text_print_history)).setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
+ ((ImageView) findViewById(R.id.print_history_arrow)).setVisibility(8);
|
|
|
this.mPrinterSettingView.setEnabled(false);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.printer_setting_arrow)).setVisibility(8);
|
|
|
+ ((TextView) findViewById(R.id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
+ ((ImageView) findViewById(R.id.printer_setting_arrow)).setVisibility(8);
|
|
|
return;
|
|
|
}
|
|
|
case 3:
|
|
@@ -843,16 +822,16 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
this.mHeadCleanView.setEnabled(true);
|
|
|
this.mNozzleCheckView.setEnabled(true);
|
|
|
this.mPrinterSettingView.setEnabled(true);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(C2135R.color.black));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.printer_setting_arrow)).setVisibility(0);
|
|
|
+ ((TextView) findViewById(R.id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(R.color.black));
|
|
|
+ ((ImageView) findViewById(R.id.printer_setting_arrow)).setVisibility(0);
|
|
|
setEpsonConnectButton(0);
|
|
|
return;
|
|
|
}
|
|
|
this.mHeadCleanView.setEnabled(false);
|
|
|
this.mNozzleCheckView.setEnabled(false);
|
|
|
this.mPrinterSettingView.setEnabled(false);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.printer_setting_arrow)).setVisibility(8);
|
|
|
+ ((TextView) findViewById(R.id.text_printer_setting)).setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
+ ((ImageView) findViewById(R.id.printer_setting_arrow)).setVisibility(8);
|
|
|
setEpsonConnectButton(1);
|
|
|
return;
|
|
|
default:
|
|
@@ -904,21 +883,20 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
this.mBuyInkSeparator.setVisibility(i2);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void setupErrorMessage(int i) {
|
|
|
- Utils.makeMessageBox(this, getString(C2135R.string.EPS_PRNERR_DISABEL_CLEANING_TITLE), getString(C2135R.string.EPS_PRNERR_DISABEL_CLEANING_MSG), getString(C2135R.string.str_cancel)).show();
|
|
|
+ private void setupErrorMessage(int i) {
|
|
|
+ Utils.makeMessageBox(this, getString(R.string.EPS_PRNERR_DISABEL_CLEANING_TITLE), getString(R.string.EPS_PRNERR_DISABEL_CLEANING_MSG), getString(R.string.str_cancel)).show();
|
|
|
}
|
|
|
|
|
|
public void onClick(View view) {
|
|
|
int id = view.getId();
|
|
|
- int i = C2135R.string.str_nozzle_check;
|
|
|
+ int i = R.string.str_nozzle_check;
|
|
|
switch (id) {
|
|
|
- case C2135R.C2137id.epsonconnect_option /*2131231020*/:
|
|
|
+ case R.id.epsonconnect_option /*2131231020*/:
|
|
|
Intent intent = new Intent(this, ActivityECConfiguration.class);
|
|
|
intent.putExtra(ActivityECConfiguration.INTENT_EC_BLE_CONTENT, false);
|
|
|
startActivity(intent);
|
|
|
return;
|
|
|
- case C2135R.C2137id.fwupdate_view /*2131231071*/:
|
|
|
+ case R.id.fwupdate_view /*2131231071*/:
|
|
|
Analytics.sendAction(getApplicationContext(), Analytics.ACTION_ID_MAINTENANCE_FIRMWARE_UPDATE);
|
|
|
Intent intent2 = new Intent(this, FirmwareUpdateActivity.class);
|
|
|
intent2.putExtra(Constants.PRINTER_IP, this.printerIp);
|
|
@@ -926,66 +904,64 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
this.isKeepSimpleAPConnection = true;
|
|
|
startActivity(intent2);
|
|
|
return;
|
|
|
- case C2135R.C2137id.head_clean_view /*2131231097*/:
|
|
|
+ case R.id.head_clean_view /*2131231097*/:
|
|
|
Analytics.sendAction(getApplicationContext(), Analytics.ACTION_ID_MAINTENANCE_HEAD_CLEANING);
|
|
|
- AlertDialog.Builder icon = new AlertDialog.Builder(this).setIcon(C2135R.C2136drawable.ic_action_warning);
|
|
|
- if (view.getId() != C2135R.C2137id.nozzle_check_view) {
|
|
|
- i = C2135R.string.str_head_clean;
|
|
|
+ AlertDialog.Builder icon = new AlertDialog.Builder(this).setIcon(R.C2136drawable.ic_action_warning);
|
|
|
+ if (view.getId() != R.id.nozzle_check_view) {
|
|
|
+ i = R.string.str_head_clean;
|
|
|
}
|
|
|
- icon.setTitle(i).setPositiveButton(C2135R.string.str_yes, new DialogInterface.OnClickListener() {
|
|
|
+ icon.setTitle(i).setPositiveButton(R.string.str_yes, new DialogInterface.OnClickListener() {
|
|
|
public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
MaintainActivity.this.performMaintain(2);
|
|
|
}
|
|
|
- }).setNegativeButton(C2135R.string.str_no, new DialogInterface.OnClickListener() {
|
|
|
+ }).setNegativeButton(R.string.str_no, new DialogInterface.OnClickListener() {
|
|
|
public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
}
|
|
|
}).show();
|
|
|
return;
|
|
|
- case C2135R.C2137id.maintenance_inkds /*2131231241*/:
|
|
|
+ case R.id.maintenance_inkds /*2131231241*/:
|
|
|
Analytics.sendAction(this, Analytics.ACTION_ID_MAINTENANCE_READY_INK);
|
|
|
startBrowsReadyInkUrl();
|
|
|
return;
|
|
|
- case C2135R.C2137id.mentenance_buy_ink /*2131231247*/:
|
|
|
+ case R.id.mentenance_buy_ink /*2131231247*/:
|
|
|
Analytics.sendAction(this, Analytics.ACTION_ID_MAINTENANCE_BUY_INK);
|
|
|
showDialog(DIALOG_PROGRESS);
|
|
|
BuyInkTask(1, this.printerIp);
|
|
|
return;
|
|
|
- case C2135R.C2137id.nozzle_check_view /*2131231280*/:
|
|
|
+ case R.id.nozzle_check_view /*2131231280*/:
|
|
|
Analytics.sendAction(getApplicationContext(), Analytics.ACTION_ID_MAINTENANCE_NOZZLE_CHECK);
|
|
|
- AlertDialog.Builder icon2 = new AlertDialog.Builder(this).setIcon(C2135R.C2136drawable.ic_action_warning);
|
|
|
- if (view.getId() != C2135R.C2137id.nozzle_check_view) {
|
|
|
- i = C2135R.string.str_head_clean;
|
|
|
+ AlertDialog.Builder icon2 = new AlertDialog.Builder(this).setIcon(R.C2136drawable.ic_action_warning);
|
|
|
+ if (view.getId() != R.id.nozzle_check_view) {
|
|
|
+ i = R.string.str_head_clean;
|
|
|
}
|
|
|
- icon2.setTitle(i).setPositiveButton(C2135R.string.str_yes, new DialogInterface.OnClickListener() {
|
|
|
+ icon2.setTitle(i).setPositiveButton(R.string.str_yes, new DialogInterface.OnClickListener() {
|
|
|
public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
new NozzleCheckTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, new Void[0]);
|
|
|
}
|
|
|
- }).setNegativeButton(C2135R.string.str_no, new DialogInterface.OnClickListener() {
|
|
|
+ }).setNegativeButton(R.string.str_no, new DialogInterface.OnClickListener() {
|
|
|
public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
}
|
|
|
}).show();
|
|
|
return;
|
|
|
- case C2135R.C2137id.online_registration /*2131231289*/:
|
|
|
+ case R.id.online_registration /*2131231289*/:
|
|
|
showDialog(DIALOG_PROGRESS);
|
|
|
OnlineRegTask(this.printerIp);
|
|
|
return;
|
|
|
- case C2135R.C2137id.print_history /*2131231348*/:
|
|
|
+ case R.id.print_history /*2131231348*/:
|
|
|
startActivity(new Intent(this, EccPrintLog.class));
|
|
|
return;
|
|
|
- case C2135R.C2137id.printer /*2131231358*/:
|
|
|
+ case R.id.printer /*2131231358*/:
|
|
|
EPLog.m305d(TAG, "onClick() R.id.printer");
|
|
|
new AsyncTask<Void, Void, Void>() {
|
|
|
WorkingDialog dialog = new WorkingDialog(MaintainActivity.this);
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onPreExecute() {
|
|
|
+ protected void onPreExecute() {
|
|
|
super.onPreExecute();
|
|
|
MaintainActivity.this.hideLoadProgressBar();
|
|
|
this.dialog.show();
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public Void doInBackground(Void... voidArr) {
|
|
|
+ protected Void doInBackground(Void... voidArr) {
|
|
|
MaintainActivity.this.stopLoadConfigThread();
|
|
|
MaintainActivity.this.endBackGroundThread();
|
|
|
MaintainActivity maintainActivity = MaintainActivity.this;
|
|
@@ -993,14 +969,13 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onPostExecute(Void voidR) {
|
|
|
+ protected void onPostExecute(Void voidR) {
|
|
|
MaintainActivity.this.startSelectPrinterActivity();
|
|
|
this.dialog.dismiss();
|
|
|
}
|
|
|
}.execute(new Void[0]);
|
|
|
return;
|
|
|
- case C2135R.C2137id.printer_setting /*2131231369*/:
|
|
|
+ case R.id.printer_setting /*2131231369*/:
|
|
|
switch (this.printerLocation) {
|
|
|
case 1:
|
|
|
case 3:
|
|
@@ -1009,7 +984,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
startActivity(new Intent("android.intent.action.VIEW", Uri.parse(IPAddressUtils.buildURL(Analytics.EXTENSION_STRING_WEB, this.printerIp, CommonDefine.SLASH))));
|
|
|
return;
|
|
|
}
|
|
|
- new AlertDialog.Builder(this.mContext).setCancelable(false).setMessage(C2135R.string.str_webconfig_warn_message).setPositiveButton(C2135R.string.str_ok, new DialogInterface.OnClickListener() {
|
|
|
+ new AlertDialog.Builder(this.mContext).setCancelable(false).setMessage(R.string.str_webconfig_warn_message).setPositiveButton(R.string.str_ok, new DialogInterface.OnClickListener() {
|
|
|
public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
boolean unused = MaintainActivity.this.isKeepSimpleAPConnection = true;
|
|
|
MaintainActivity maintainActivity = MaintainActivity.this;
|
|
@@ -1024,7 +999,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
default:
|
|
|
return;
|
|
|
}
|
|
|
- case C2135R.C2137id.toggleAlert /*2131231560*/:
|
|
|
+ case R.id.toggleAlert /*2131231560*/:
|
|
|
if (this.btnToggleAlert.isChecked()) {
|
|
|
SharedPreferences.Editor edit = getSharedPreferences(Constants.PREFS_EPSON_CONNECT, 0).edit();
|
|
|
edit.putBoolean(Constants.ENABLE_SHOW_WARNING, true);
|
|
@@ -1035,7 +1010,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
edit2.putBoolean(Constants.ENABLE_SHOW_WARNING, false);
|
|
|
edit2.commit();
|
|
|
return;
|
|
|
- case C2135R.C2137id.togglePreview /*2131231563*/:
|
|
|
+ case R.id.togglePreview /*2131231563*/:
|
|
|
if (!this.btnTogglePreview.isChecked()) {
|
|
|
SharedPreferences.Editor edit3 = getSharedPreferences(Constants.PREFS_EPSON_CONNECT, 0).edit();
|
|
|
edit3.putBoolean(Constants.ENABLE_SHOW_PREVIEW, false);
|
|
@@ -1055,8 +1030,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void startSelectPrinterActivity() {
|
|
|
+ private void startSelectPrinterActivity() {
|
|
|
this.mWaiteInkDsDialog = true;
|
|
|
Intent intent = new Intent(this, MaintainPrinterSearchActivity.class);
|
|
|
intent.putExtra(Constants.PRINTER_ID, this.printerId);
|
|
@@ -1068,8 +1042,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
startActivity(new Intent(this, JumpUrlProgressActivity.class));
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void showNozzleCheckGuidanceDialog() {
|
|
|
+ private void showNozzleCheckGuidanceDialog() {
|
|
|
if (!checkGaga()) {
|
|
|
new NozzleGuidanceDialog().show(getSupportFragmentManager(), DIALOG_TAG_NOZZLE_GUIDANCE);
|
|
|
}
|
|
@@ -1086,7 +1059,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
private void showMessageDialog() {
|
|
|
isMessageScreenShowing = true;
|
|
|
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
|
|
- builder.setMessage(getString(C2135R.string.epsonconnect_str_preview_warning) + "\n\n" + getString(C2135R.string.epsonconnect_str_preview_warning2));
|
|
|
+ builder.setMessage(getString(R.string.epsonconnect_str_preview_warning) + "\n\n" + getString(R.string.epsonconnect_str_preview_warning2));
|
|
|
C20299 r1 = new DialogInterface.OnClickListener() {
|
|
|
public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
SharedPreferences.Editor edit = MaintainActivity.this.getSharedPreferences(Constants.PREFS_EPSON_CONNECT, 0).edit();
|
|
@@ -1099,23 +1072,21 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
MaintainActivity.this.btnTogglePreview.setChecked(false);
|
|
|
}
|
|
|
};
|
|
|
- builder.setPositiveButton(C2135R.string.str_yes, r1);
|
|
|
- builder.setNegativeButton(C2135R.string.str_no, r2);
|
|
|
+ builder.setPositiveButton(R.string.str_yes, r1);
|
|
|
+ builder.setNegativeButton(R.string.str_no, r2);
|
|
|
builder.setCancelable(false);
|
|
|
builder.show();
|
|
|
isMessageScreenShowing = false;
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void showProDia() {
|
|
|
+ private void showProDia() {
|
|
|
if (this.customPro == null) {
|
|
|
- this.customPro = new CustomProDialog(this, C2135R.style.AppTheme_Translucent, C2135R.layout.maintain_executing_dialog);
|
|
|
+ this.customPro = new CustomProDialog(this, R.style.AppTheme_Translucent, R.layout.maintain_executing_dialog);
|
|
|
}
|
|
|
this.customPro.show();
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void cancelProDia() {
|
|
|
+ private void cancelProDia() {
|
|
|
Dialog dialog = this.customPro;
|
|
|
if (dialog != null && dialog.isShowing()) {
|
|
|
this.customPro.cancel();
|
|
@@ -1123,32 +1094,28 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void showLoadProgressBar() {
|
|
|
+ private void showLoadProgressBar() {
|
|
|
if (this.mLoadConPro == null) {
|
|
|
- this.mLoadConPro = findViewById(C2135R.C2137id.progress_status);
|
|
|
+ this.mLoadConPro = findViewById(R.id.progress_status);
|
|
|
}
|
|
|
this.mLoadConPro.setVisibility(0);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void hideLoadProgressBar() {
|
|
|
+ private void hideLoadProgressBar() {
|
|
|
View view = this.mLoadConPro;
|
|
|
if (view != null) {
|
|
|
view.setVisibility(8);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void stopLoadConfigThread() {
|
|
|
+ private void stopLoadConfigThread() {
|
|
|
this.mIsCancelProbe = true;
|
|
|
Thread thread = this.mLoadConfigThread;
|
|
|
if (thread != null && thread.isAlive()) {
|
|
|
this.mPrinter.doCancelFindPrinter();
|
|
|
if (this.mEpsonService != null) {
|
|
|
new AsyncTaskExecutor<Void, Void, Void>() {
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public Void doInBackground(Void... voidArr) {
|
|
|
+ protected Void doInBackground(Void... voidArr) {
|
|
|
try {
|
|
|
MaintainActivity.this.mEpsonService.EpsonConnectCancel();
|
|
|
return null;
|
|
@@ -1231,14 +1198,12 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
this.mBackGround.start();
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void sendMaintenanceBoxInfoMessage(Handler handler, int[] iArr) {
|
|
|
+ private void sendMaintenanceBoxInfoMessage(Handler handler, int[] iArr) {
|
|
|
this.mUiHandler.removeMessages(16);
|
|
|
handler.sendMessage(handler.obtainMessage(16, 0, 0, iArr));
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void endBackGroundThread() {
|
|
|
+ private void endBackGroundThread() {
|
|
|
this.mIsStillUpdate = false;
|
|
|
Thread thread = this.mBackGround;
|
|
|
if (thread != null && thread.isAlive()) {
|
|
@@ -1256,8 +1221,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
super.onConfigurationChanged(configuration);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onActivityResult(int i, int i2, Intent intent) {
|
|
|
+ protected void onActivityResult(int i, int i2, Intent intent) {
|
|
|
IEpsonService iEpsonService;
|
|
|
super.onActivityResult(i, i2, intent);
|
|
|
switch (i) {
|
|
@@ -1304,8 +1268,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
startActivityForResult(InkRplnProgressDialog.getStartIntent(this), 100);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void updateSelectedPrinter() {
|
|
|
+ private void updateSelectedPrinter() {
|
|
|
hideLoadProgressBar();
|
|
|
stopLoadConfigThread();
|
|
|
this.mIsNozzleCheckEnable = true;
|
|
@@ -1336,8 +1299,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
this.printerIp = this.mPrinter.doGetIp();
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public synchronized void updateStatus(int i) {
|
|
|
+ private synchronized void updateStatus(int i) {
|
|
|
this.mUiHandler.sendEmptyMessage(11);
|
|
|
if (i == 0) {
|
|
|
if (isPrinterReady() != 1) {
|
|
@@ -1397,8 +1359,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
createInkView(this.mPrinter.getMPrinterInfor(), i);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void updateBatteryInfoEx(int i, BatteryInfoEx batteryInfoEx) {
|
|
|
+ private void updateBatteryInfoEx(int i, BatteryInfoEx batteryInfoEx) {
|
|
|
int i2 = batteryInfoEx.number;
|
|
|
int i3 = batteryInfoEx.powerSourceType;
|
|
|
if (i != 0 || i2 <= 0 || i3 == -1) {
|
|
@@ -1411,8 +1372,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
BatteryInfoAdapter.BatteryInfoManager.showBatteryList(this, i2, i3, iArr, iArr2);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void updateMaintenanceBoxInfo(int[] iArr) {
|
|
|
+ private void updateMaintenanceBoxInfo(int[] iArr) {
|
|
|
int i = this.mBuyInkGroupVisibility;
|
|
|
if (iArr == null || iArr.length <= 0) {
|
|
|
this.mMaintenanceBoxText.setVisibility(8);
|
|
@@ -1436,25 +1396,24 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
int i5 = i4 * 2;
|
|
|
int i6 = iArr[i5];
|
|
|
int i7 = iArr[i5 + 1];
|
|
|
- View inflate = from.inflate(C2135R.layout.ink_item, this.mMaintenanceBoxView, false);
|
|
|
- ((TextView) inflate.findViewById(C2135R.C2137id.ink_name)).setVisibility(8);
|
|
|
- ((RelativeLayout) inflate.findViewById(C2135R.C2137id.ink_holder)).getLayoutParams().width = i3;
|
|
|
- ViewGroup viewGroup = (ViewGroup) inflate.findViewById(C2135R.C2137id.ink_level);
|
|
|
+ View inflate = from.inflate(R.layout.ink_item, this.mMaintenanceBoxView, false);
|
|
|
+ ((TextView) inflate.findViewById(R.id.ink_name)).setVisibility(8);
|
|
|
+ ((RelativeLayout) inflate.findViewById(R.id.ink_holder)).getLayoutParams().width = i3;
|
|
|
+ ViewGroup viewGroup = (ViewGroup) inflate.findViewById(R.id.ink_level);
|
|
|
if (i7 <= 0 || isMaintenanceBoxStatusDisplayX(i6)) {
|
|
|
viewGroup.getLayoutParams().width = 0;
|
|
|
- inflate.findViewById(C2135R.C2137id.ink_error).setVisibility(0);
|
|
|
+ inflate.findViewById(R.id.ink_error).setVisibility(0);
|
|
|
viewGroup.setVisibility(4);
|
|
|
} else {
|
|
|
viewGroup.getLayoutParams().width = (int) ((((float) (i3 - 4)) / 100.0f) * ((float) i7));
|
|
|
- viewGroup.setBackgroundResource(C2135R.color.maintenance_box_info);
|
|
|
+ viewGroup.setBackgroundResource(R.color.maintenance_box_info);
|
|
|
viewGroup.setVisibility(0);
|
|
|
}
|
|
|
this.mMaintenanceBoxView.addView(inflate);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void handlerError(int i, boolean z) {
|
|
|
+ private void handlerError(int i, boolean z) {
|
|
|
hideLoadProgressBar();
|
|
|
if (i == -1351 || i == -1100) {
|
|
|
i = -1300;
|
|
@@ -1504,8 +1463,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void interrupMaintainThread() {
|
|
|
+ private void interrupMaintainThread() {
|
|
|
Thread thread = this.mDoMaintainThread;
|
|
|
if (thread != null && thread.isAlive()) {
|
|
|
this.mDoMaintainThread.interrupt();
|
|
@@ -1513,8 +1471,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onDestroy() {
|
|
|
+ protected void onDestroy() {
|
|
|
super.onDestroy();
|
|
|
EPLog.m313i(TAG, "onDestroy");
|
|
|
IEpsonService iEpsonService = this.mEpsonService;
|
|
@@ -1528,8 +1485,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onResume() {
|
|
|
+ protected void onResume() {
|
|
|
EPLog.m307e("MaintainActivity", "onResume()");
|
|
|
super.onResume();
|
|
|
this.isKeepSimpleAPConnection = false;
|
|
@@ -1538,8 +1494,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onPause() {
|
|
|
+ protected void onPause() {
|
|
|
EPLog.m305d("MaintainActivity", "onPause");
|
|
|
this.mIsCancelProbe = true;
|
|
|
hideLoadProgressBar();
|
|
@@ -1554,13 +1509,11 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
super.onPause();
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onStop() {
|
|
|
+ protected void onStop() {
|
|
|
super.onStop();
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void performMaintain(final int i) {
|
|
|
+ private void performMaintain(final int i) {
|
|
|
if (isPrinterReady() == 1) {
|
|
|
this.mUiHandler.sendEmptyMessage(0);
|
|
|
this.mDoMaintainThread = new Thread(new Runnable() {
|
|
@@ -1665,8 +1618,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void loadConfig() {
|
|
|
+ private void loadConfig() {
|
|
|
MyPrinter curPrinter = MyPrinter.getCurPrinter(this);
|
|
|
this.printerName = curPrinter.getUserDefName(this);
|
|
|
if (this.printerName == null) {
|
|
@@ -1695,7 +1647,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
}
|
|
|
int inkNum = maintainPrinterInfo2.getInkNum();
|
|
|
if (inkNum > 0) {
|
|
|
- findViewById(C2135R.C2137id.ink_text).setVisibility(0);
|
|
|
+ findViewById(R.id.ink_text).setVisibility(0);
|
|
|
this.mInkView.setVisibility(0);
|
|
|
this.mBuyInkGroup.setVisibility(this.mBuyInkGroupVisibility);
|
|
|
for (int i3 = 0; i3 < inkNum; i3++) {
|
|
@@ -1713,21 +1665,21 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
} else {
|
|
|
logColorInfo(inkName, colorName);
|
|
|
}
|
|
|
- View inflate = from.inflate(C2135R.layout.ink_item, (ViewGroup) null);
|
|
|
- TextView textView = (TextView) inflate.findViewById(C2135R.C2137id.ink_name);
|
|
|
+ View inflate = from.inflate(R.layout.ink_item, (ViewGroup) null);
|
|
|
+ TextView textView = (TextView) inflate.findViewById(R.id.ink_name);
|
|
|
if (colorName[1].intValue() != 0) {
|
|
|
textView.setText(colorName[1].intValue());
|
|
|
} else {
|
|
|
textView.setText("");
|
|
|
}
|
|
|
- ((RelativeLayout) inflate.findViewById(C2135R.C2137id.ink_holder)).getLayoutParams().width = i2;
|
|
|
- ViewGroup viewGroup = (ViewGroup) inflate.findViewById(C2135R.C2137id.ink_level);
|
|
|
+ ((RelativeLayout) inflate.findViewById(R.id.ink_holder)).getLayoutParams().width = i2;
|
|
|
+ ViewGroup viewGroup = (ViewGroup) inflate.findViewById(R.id.ink_level);
|
|
|
float f = (float) (i2 - 4);
|
|
|
if (maintainPrinterInfo22.getInkStatus(i3) == -4 || i != 0) {
|
|
|
viewGroup.getLayoutParams().width = 0;
|
|
|
viewGroup.setVisibility(4);
|
|
|
if (maintainPrinterInfo22.getInkStatus(i3) != -4) {
|
|
|
- inflate.findViewById(C2135R.C2137id.ink_error).setVisibility(0);
|
|
|
+ inflate.findViewById(R.id.ink_error).setVisibility(0);
|
|
|
}
|
|
|
} else {
|
|
|
viewGroup.getLayoutParams().width = calcInkWidth(inkRemainingAmount, f);
|
|
@@ -1735,7 +1687,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
viewGroup.getLayoutParams().width = 0;
|
|
|
}
|
|
|
if (checkIfWhite(colorName[0].intValue())) {
|
|
|
- View findViewById = inflate.findViewById(C2135R.C2137id.white_ink_level);
|
|
|
+ View findViewById = inflate.findViewById(R.id.white_ink_level);
|
|
|
findViewById.setBackgroundResource(colorName[0].intValue());
|
|
|
findViewById.setVisibility(0);
|
|
|
} else {
|
|
@@ -1743,14 +1695,14 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
}
|
|
|
viewGroup.setVisibility(0);
|
|
|
if (inkRemainingAmount <= 0) {
|
|
|
- inflate.findViewById(C2135R.C2137id.ink_error).setVisibility(0);
|
|
|
+ inflate.findViewById(R.id.ink_error).setVisibility(0);
|
|
|
}
|
|
|
}
|
|
|
this.mInkView.addView(inflate);
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
- findViewById(C2135R.C2137id.ink_text).setVisibility(8);
|
|
|
+ findViewById(R.id.ink_text).setVisibility(8);
|
|
|
this.mInkView.setVisibility(8);
|
|
|
}
|
|
|
|
|
@@ -1805,13 +1757,12 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
setCancelable(false);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onCreate(Bundle bundle) {
|
|
|
+ protected void onCreate(Bundle bundle) {
|
|
|
super.onCreate(bundle);
|
|
|
requestWindowFeature(1);
|
|
|
View inflate = getLayoutInflater().inflate(this.mLayoutId, (ViewGroup) null);
|
|
|
- if (this.mLayoutId == C2135R.layout.maintain_executing_dialog) {
|
|
|
- ((Button) inflate.findViewById(C2135R.C2137id.close_btn)).setOnClickListener(new View.OnClickListener() {
|
|
|
+ if (this.mLayoutId == R.layout.maintain_executing_dialog) {
|
|
|
+ ((Button) inflate.findViewById(R.id.close_btn)).setOnClickListener(new View.OnClickListener() {
|
|
|
public void onClick(View view) {
|
|
|
CustomProDialog.this.cancel();
|
|
|
MaintainActivity.this.interrupMaintainThread();
|
|
@@ -1822,51 +1773,49 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void setButtonClickable(boolean z) {
|
|
|
+ private void setButtonClickable(boolean z) {
|
|
|
this.mNozzleCheckView.setClickable(z);
|
|
|
this.mHeadCleanView.setClickable(z);
|
|
|
this.mFWUpdateView.setClickable(z);
|
|
|
if (z) {
|
|
|
if (!this.mIsNozzleCheckEnable.booleanValue()) {
|
|
|
- this.mNozzleCheckText.setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
+ this.mNozzleCheckText.setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
} else {
|
|
|
- this.mNozzleCheckText.setTextColor(this.mContext.getResources().getColor(C2135R.color.black));
|
|
|
+ this.mNozzleCheckText.setTextColor(this.mContext.getResources().getColor(R.color.black));
|
|
|
}
|
|
|
- this.mHeadCleanText.setTextColor(this.mContext.getResources().getColor(C2135R.color.black));
|
|
|
- this.mFWUpdateText.setTextColor(this.mContext.getResources().getColor(C2135R.color.black));
|
|
|
+ this.mHeadCleanText.setTextColor(this.mContext.getResources().getColor(R.color.black));
|
|
|
+ this.mFWUpdateText.setTextColor(this.mContext.getResources().getColor(R.color.black));
|
|
|
return;
|
|
|
}
|
|
|
- this.mNozzleCheckText.setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
- this.mHeadCleanText.setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
- this.mFWUpdateText.setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
+ this.mNozzleCheckText.setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
+ this.mHeadCleanText.setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
+ this.mFWUpdateText.setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: private */
|
|
|
- public void setEpsonConnectButton(int i) {
|
|
|
+ private void setEpsonConnectButton(int i) {
|
|
|
switch (i) {
|
|
|
case 0:
|
|
|
this.mEpsonConnectView.setClickable(true);
|
|
|
this.mEpsonConnectView.setEnabled(true);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_epson_connect)).setTextColor(this.mContext.getResources().getColor(C2135R.color.black));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.epsonconnect_arrow)).setVisibility(0);
|
|
|
- findViewById(C2135R.C2137id.epsonconnect_separator).setVisibility(0);
|
|
|
+ ((TextView) findViewById(R.id.text_epson_connect)).setTextColor(this.mContext.getResources().getColor(R.color.black));
|
|
|
+ ((ImageView) findViewById(R.id.epsonconnect_arrow)).setVisibility(0);
|
|
|
+ findViewById(R.id.epsonconnect_separator).setVisibility(0);
|
|
|
this.mEpsonConnectView.setVisibility(0);
|
|
|
return;
|
|
|
case 1:
|
|
|
this.mEpsonConnectView.setClickable(false);
|
|
|
this.mEpsonConnectView.setEnabled(false);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_epson_connect)).setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.epsonconnect_arrow)).setVisibility(8);
|
|
|
- findViewById(C2135R.C2137id.epsonconnect_separator).setVisibility(0);
|
|
|
+ ((TextView) findViewById(R.id.text_epson_connect)).setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
+ ((ImageView) findViewById(R.id.epsonconnect_arrow)).setVisibility(8);
|
|
|
+ findViewById(R.id.epsonconnect_separator).setVisibility(0);
|
|
|
this.mEpsonConnectView.setVisibility(0);
|
|
|
return;
|
|
|
case 2:
|
|
|
this.mEpsonConnectView.setClickable(false);
|
|
|
this.mEpsonConnectView.setEnabled(false);
|
|
|
- ((TextView) findViewById(C2135R.C2137id.text_epson_connect)).setTextColor(this.mContext.getResources().getColor(C2135R.color.light_gray));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.epsonconnect_arrow)).setVisibility(8);
|
|
|
- findViewById(C2135R.C2137id.epsonconnect_separator).setVisibility(8);
|
|
|
+ ((TextView) findViewById(R.id.text_epson_connect)).setTextColor(this.mContext.getResources().getColor(R.color.light_gray));
|
|
|
+ ((ImageView) findViewById(R.id.epsonconnect_arrow)).setVisibility(8);
|
|
|
+ findViewById(R.id.epsonconnect_separator).setVisibility(8);
|
|
|
this.mEpsonConnectView.setVisibility(8);
|
|
|
return;
|
|
|
default:
|
|
@@ -1914,7 +1863,7 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
}
|
|
|
|
|
|
private void showDialog(String str) {
|
|
|
- DialogProgress newInstance = DialogProgress.newInstance(str, 0, getString(C2135R.string.str_wait));
|
|
|
+ DialogProgress newInstance = DialogProgress.newInstance(str, 0, getString(R.string.str_wait));
|
|
|
newInstance.setCancelable(false);
|
|
|
newInstance.show(getSupportFragmentManager(), str);
|
|
|
}
|
|
@@ -1930,18 +1879,15 @@ public class MaintainActivity extends ActivityIACommon implements View.OnClickLi
|
|
|
private NozzleCheckTask() {
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onPreExecute() {
|
|
|
+ protected void onPreExecute() {
|
|
|
MaintainActivity.this.showProDia();
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public Integer doInBackground(Void... voidArr) {
|
|
|
+ protected Integer doInBackground(Void... voidArr) {
|
|
|
return Integer.valueOf(MaintainActivity.this.mPrinter.doDoMainteCmd(3));
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onPostExecute(Integer num) {
|
|
|
+ protected void onPostExecute(Integer num) {
|
|
|
MaintainActivity.this.cancelProDia();
|
|
|
if (num.intValue() == 108) {
|
|
|
MaintainActivity.this.setupErrorMessage(10);
|