|
@@ -1731,11 +1731,10 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
return i;
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onCreate(Bundle bundle) {
|
|
|
+ protected void onCreate(Bundle bundle) {
|
|
|
super.onCreate(bundle);
|
|
|
- setContentView((int) C2135R.layout.setting_layout);
|
|
|
- setActionBar((int) C2135R.string.str_btn_printer_settings, true);
|
|
|
+ setContentView((int) R.layout.setting_layout);
|
|
|
+ setActionBar((int) R.string.str_btn_printer_settings, true);
|
|
|
bindEpsonService();
|
|
|
this.mContext = this;
|
|
|
this.mRemoteSrcType = 2;
|
|
@@ -1747,31 +1746,31 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
}
|
|
|
this.sheets = 1;
|
|
|
this.mRemoteSrcType = 2;
|
|
|
- this.printerName = (TextView) findViewById(C2135R.C2137id.printer_name);
|
|
|
- this.paperSizeInfo = (TextView) findViewById(C2135R.C2137id.paper_size_info);
|
|
|
- this.paperTypeInfo = (TextView) findViewById(C2135R.C2137id.paper_type_info);
|
|
|
- this.layoutInfo = (TextView) findViewById(C2135R.C2137id.layout_info);
|
|
|
- this.qualityInfo = (TextView) findViewById(C2135R.C2137id.quality_info);
|
|
|
- this.paperSourceInfo = (TextView) findViewById(C2135R.C2137id.paper_source_info);
|
|
|
- this.copies = (TextView) findViewById(C2135R.C2137id.copies);
|
|
|
- this.copiesMinus = (Button) findViewById(C2135R.C2137id.copies_minus_button);
|
|
|
- this.copiesPlus = (Button) findViewById(C2135R.C2137id.copies_plus_button);
|
|
|
+ this.printerName = (TextView) findViewById(R.C2137id.printer_name);
|
|
|
+ this.paperSizeInfo = (TextView) findViewById(R.C2137id.paper_size_info);
|
|
|
+ this.paperTypeInfo = (TextView) findViewById(R.C2137id.paper_type_info);
|
|
|
+ this.layoutInfo = (TextView) findViewById(R.C2137id.layout_info);
|
|
|
+ this.qualityInfo = (TextView) findViewById(R.C2137id.quality_info);
|
|
|
+ this.paperSourceInfo = (TextView) findViewById(R.C2137id.paper_source_info);
|
|
|
+ this.copies = (TextView) findViewById(R.C2137id.copies);
|
|
|
+ this.copiesMinus = (Button) findViewById(R.C2137id.copies_minus_button);
|
|
|
+ this.copiesPlus = (Button) findViewById(R.C2137id.copies_plus_button);
|
|
|
LongTapRepeatAdapter.bless(this.copiesMinus);
|
|
|
LongTapRepeatAdapter.bless(this.copiesPlus);
|
|
|
- this.colorInfo = (TextView) findViewById(C2135R.C2137id.color_info);
|
|
|
- this.duplexInfo = (TextView) findViewById(C2135R.C2137id.duplex_info);
|
|
|
- this.feedDirectionInfo = (TextView) findViewById(C2135R.C2137id.feed_direction_info);
|
|
|
- this.printDateInfo = (TextView) findViewById(C2135R.C2137id.printdate_info);
|
|
|
- this.brightness = (TextView) findViewById(C2135R.C2137id.brightness);
|
|
|
- this.brightnessMinus = (Button) findViewById(C2135R.C2137id.brightness_minus_button);
|
|
|
- this.brightnessPlus = (Button) findViewById(C2135R.C2137id.brightness_plus_button);
|
|
|
- this.contrast = (TextView) findViewById(C2135R.C2137id.contrast);
|
|
|
- this.contrastMinus = (Button) findViewById(C2135R.C2137id.contrast_minus_button);
|
|
|
- this.contrastPlus = (Button) findViewById(C2135R.C2137id.contrast_plus_button);
|
|
|
- this.saturation = (TextView) findViewById(C2135R.C2137id.saturation);
|
|
|
- this.saturationMinus = (Button) findViewById(C2135R.C2137id.saturation_minus_button);
|
|
|
- this.saturationPlus = (Button) findViewById(C2135R.C2137id.saturation_plus_button);
|
|
|
- this.progressGetOption = findViewById(C2135R.C2137id.progressGetOption);
|
|
|
+ this.colorInfo = (TextView) findViewById(R.C2137id.color_info);
|
|
|
+ this.duplexInfo = (TextView) findViewById(R.C2137id.duplex_info);
|
|
|
+ this.feedDirectionInfo = (TextView) findViewById(R.C2137id.feed_direction_info);
|
|
|
+ this.printDateInfo = (TextView) findViewById(R.C2137id.printdate_info);
|
|
|
+ this.brightness = (TextView) findViewById(R.C2137id.brightness);
|
|
|
+ this.brightnessMinus = (Button) findViewById(R.C2137id.brightness_minus_button);
|
|
|
+ this.brightnessPlus = (Button) findViewById(R.C2137id.brightness_plus_button);
|
|
|
+ this.contrast = (TextView) findViewById(R.C2137id.contrast);
|
|
|
+ this.contrastMinus = (Button) findViewById(R.C2137id.contrast_minus_button);
|
|
|
+ this.contrastPlus = (Button) findViewById(R.C2137id.contrast_plus_button);
|
|
|
+ this.saturation = (TextView) findViewById(R.C2137id.saturation);
|
|
|
+ this.saturationMinus = (Button) findViewById(R.C2137id.saturation_minus_button);
|
|
|
+ this.saturationPlus = (Button) findViewById(R.C2137id.saturation_plus_button);
|
|
|
+ this.progressGetOption = findViewById(R.C2137id.progressGetOption);
|
|
|
this.enableShowPreview = getSharedPreferences(Constants.PREFS_EPSON_CONNECT, 0).getBoolean(Constants.ENABLE_SHOW_PREVIEW, true);
|
|
|
loadConfig();
|
|
|
setClickListener();
|
|
@@ -1789,20 +1788,20 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
}
|
|
|
|
|
|
private void updatePrinterIcon() {
|
|
|
- if (this.printerName.getText().equals(getString(C2135R.string.str_lbl_title_scan))) {
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.imageViewPrinterLocation)).setVisibility(8);
|
|
|
+ if (this.printerName.getText().equals(getString(R.string.str_lbl_title_scan))) {
|
|
|
+ ((ImageView) findViewById(R.C2137id.imageViewPrinterLocation)).setVisibility(8);
|
|
|
return;
|
|
|
}
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.imageViewPrinterLocation)).setVisibility(0);
|
|
|
+ ((ImageView) findViewById(R.C2137id.imageViewPrinterLocation)).setVisibility(0);
|
|
|
switch (this.printerLocation) {
|
|
|
case 1:
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.imageViewPrinterLocation)).setImageResource(C2135R.C2136drawable.print_local);
|
|
|
+ ((ImageView) findViewById(R.C2137id.imageViewPrinterLocation)).setImageResource(R.C2136drawable.print_local);
|
|
|
return;
|
|
|
case 2:
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.imageViewPrinterLocation)).setImageResource(C2135R.C2136drawable.print_remote);
|
|
|
+ ((ImageView) findViewById(R.C2137id.imageViewPrinterLocation)).setImageResource(R.C2136drawable.print_remote);
|
|
|
return;
|
|
|
case 3:
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.imageViewPrinterLocation)).setImageResource(C2135R.C2136drawable.print_ip);
|
|
|
+ ((ImageView) findViewById(R.C2137id.imageViewPrinterLocation)).setImageResource(R.C2136drawable.print_ip);
|
|
|
return;
|
|
|
default:
|
|
|
return;
|
|
@@ -1819,24 +1818,24 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.saturationMinus.setOnClickListener(this);
|
|
|
this.saturationPlus.setOnClickListener(this);
|
|
|
if (this.isDocumentSetting) {
|
|
|
- findViewById(C2135R.C2137id.page_range_setting).setOnClickListener(this);
|
|
|
+ findViewById(R.C2137id.page_range_setting).setOnClickListener(this);
|
|
|
}
|
|
|
- findViewById(C2135R.C2137id.printer).setOnClickListener(this);
|
|
|
- findViewById(C2135R.C2137id.paper_size).setOnClickListener(this);
|
|
|
- findViewById(C2135R.C2137id.paper_type).setOnClickListener(this);
|
|
|
- findViewById(C2135R.C2137id.layout).setOnClickListener(this);
|
|
|
- findViewById(C2135R.C2137id.quality).setOnClickListener(this);
|
|
|
- findViewById(C2135R.C2137id.paper_source).setOnClickListener(this);
|
|
|
- findViewById(C2135R.C2137id.color).setOnClickListener(this);
|
|
|
- findViewById(C2135R.C2137id.duplex).setOnClickListener(this);
|
|
|
- findViewById(C2135R.C2137id.feed_direction).setOnClickListener(this);
|
|
|
- findViewById(C2135R.C2137id.printdate).setOnClickListener(this);
|
|
|
+ findViewById(R.C2137id.printer).setOnClickListener(this);
|
|
|
+ findViewById(R.C2137id.paper_size).setOnClickListener(this);
|
|
|
+ findViewById(R.C2137id.paper_type).setOnClickListener(this);
|
|
|
+ findViewById(R.C2137id.layout).setOnClickListener(this);
|
|
|
+ findViewById(R.C2137id.quality).setOnClickListener(this);
|
|
|
+ findViewById(R.C2137id.paper_source).setOnClickListener(this);
|
|
|
+ findViewById(R.C2137id.color).setOnClickListener(this);
|
|
|
+ findViewById(R.C2137id.duplex).setOnClickListener(this);
|
|
|
+ findViewById(R.C2137id.feed_direction).setOnClickListener(this);
|
|
|
+ findViewById(R.C2137id.printdate).setOnClickListener(this);
|
|
|
}
|
|
|
|
|
|
private void loadConfig() {
|
|
|
MyPrinter curPrinter = MyPrinter.getCurPrinter(this);
|
|
|
if (curPrinter == null || curPrinter.getName() == null) {
|
|
|
- this.printerName.setText(getString(C2135R.string.str_lbl_title_scan));
|
|
|
+ this.printerName.setText(getString(R.string.str_lbl_title_scan));
|
|
|
} else {
|
|
|
this.printerName.setText(curPrinter.getUserDefName(this));
|
|
|
}
|
|
@@ -1903,7 +1902,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.printAll = printSetting.printAll;
|
|
|
this.startValue = printSetting.startValue;
|
|
|
this.endValue = printSetting.endValue;
|
|
|
- ((TextView) findViewById(C2135R.C2137id.page_range_value)).setText(this.startValue + ".." + this.endValue);
|
|
|
+ ((TextView) findViewById(R.C2137id.page_range_value)).setText(this.startValue + ".." + this.endValue);
|
|
|
return;
|
|
|
}
|
|
|
this.mLookupTable = new MediaInfo.PrintDate();
|
|
@@ -2073,8 +2072,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onDestroy() {
|
|
|
+ protected void onDestroy() {
|
|
|
super.onDestroy();
|
|
|
unbindEpsonService();
|
|
|
EPLog.m313i("SettingScr", "onDestroy");
|
|
@@ -2113,7 +2111,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
}
|
|
|
}
|
|
|
switch (view.getId()) {
|
|
|
- case C2135R.C2137id.brightness_minus_button /*2131230848*/:
|
|
|
+ case R.C2137id.brightness_minus_button /*2131230848*/:
|
|
|
this.brightnessValue--;
|
|
|
if (this.brightnessValue <= -50) {
|
|
|
this.brightnessValue = -50;
|
|
@@ -2124,7 +2122,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.brightnessPlus.setEnabled(true);
|
|
|
this.brightness.setText(String.valueOf(this.brightnessValue));
|
|
|
return;
|
|
|
- case C2135R.C2137id.brightness_plus_button /*2131230850*/:
|
|
|
+ case R.C2137id.brightness_plus_button /*2131230850*/:
|
|
|
this.brightnessValue++;
|
|
|
if (this.brightnessValue >= 50) {
|
|
|
this.brightnessValue = 50;
|
|
@@ -2135,10 +2133,10 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.brightnessMinus.setEnabled(true);
|
|
|
this.brightness.setText(String.valueOf(this.brightnessValue));
|
|
|
return;
|
|
|
- case C2135R.C2137id.color /*2131230930*/:
|
|
|
- launchDetailScreen(this.color, C2135R.C2137id.color);
|
|
|
+ case R.C2137id.color /*2131230930*/:
|
|
|
+ launchDetailScreen(this.color, R.C2137id.color);
|
|
|
return;
|
|
|
- case C2135R.C2137id.contrast_minus_button /*2131230942*/:
|
|
|
+ case R.C2137id.contrast_minus_button /*2131230942*/:
|
|
|
this.contrastValue--;
|
|
|
if (this.contrastValue <= -50) {
|
|
|
this.contrastValue = -50;
|
|
@@ -2149,7 +2147,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.contrastPlus.setEnabled(true);
|
|
|
this.contrast.setText(String.valueOf(this.contrastValue));
|
|
|
return;
|
|
|
- case C2135R.C2137id.contrast_plus_button /*2131230943*/:
|
|
|
+ case R.C2137id.contrast_plus_button /*2131230943*/:
|
|
|
this.contrastValue++;
|
|
|
if (this.contrastValue >= 50) {
|
|
|
this.contrastValue = 50;
|
|
@@ -2160,7 +2158,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.contrastMinus.setEnabled(true);
|
|
|
this.contrast.setText(String.valueOf(this.contrastValue));
|
|
|
return;
|
|
|
- case C2135R.C2137id.copies_minus_button /*2131230945*/:
|
|
|
+ case R.C2137id.copies_minus_button /*2131230945*/:
|
|
|
this.copiesValue--;
|
|
|
if (this.copiesValue <= 1) {
|
|
|
this.copiesValue = 1;
|
|
@@ -2171,7 +2169,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.copiesPlus.setEnabled(true);
|
|
|
this.copies.setText(String.valueOf(this.copiesValue));
|
|
|
return;
|
|
|
- case C2135R.C2137id.copies_plus_button /*2131230946*/:
|
|
|
+ case R.C2137id.copies_plus_button /*2131230946*/:
|
|
|
this.copiesValue++;
|
|
|
if (this.copiesValue >= 30) {
|
|
|
this.copiesValue = 30;
|
|
@@ -2182,16 +2180,16 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.copiesMinus.setEnabled(true);
|
|
|
this.copies.setText(String.valueOf(this.copiesValue));
|
|
|
return;
|
|
|
- case C2135R.C2137id.duplex /*2131231005*/:
|
|
|
- launchDetailScreen(this.duplex, C2135R.C2137id.duplex);
|
|
|
+ case R.C2137id.duplex /*2131231005*/:
|
|
|
+ launchDetailScreen(this.duplex, R.C2137id.duplex);
|
|
|
return;
|
|
|
- case C2135R.C2137id.feed_direction /*2131231037*/:
|
|
|
- launchDetailScreen(this.feedDirection, C2135R.C2137id.feed_direction);
|
|
|
+ case R.C2137id.feed_direction /*2131231037*/:
|
|
|
+ launchDetailScreen(this.feedDirection, R.C2137id.feed_direction);
|
|
|
return;
|
|
|
- case C2135R.C2137id.layout /*2131231158*/:
|
|
|
- launchDetailScreen(this.layout, C2135R.C2137id.layout);
|
|
|
+ case R.C2137id.layout /*2131231158*/:
|
|
|
+ launchDetailScreen(this.layout, R.C2137id.layout);
|
|
|
return;
|
|
|
- case C2135R.C2137id.page_range_setting /*2131231300*/:
|
|
|
+ case R.C2137id.page_range_setting /*2131231300*/:
|
|
|
Intent intent = new Intent(this, PageRangeSetting.class);
|
|
|
intent.putExtra("SHEETS", this.sheets);
|
|
|
intent.putExtra("printAll", this.printAll);
|
|
@@ -2199,33 +2197,31 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
intent.putExtra("endValue", this.endValue);
|
|
|
startActivityForResult(intent, 2);
|
|
|
return;
|
|
|
- case C2135R.C2137id.paper_size /*2131231306*/:
|
|
|
- launchDetailScreen(this.paperSize, C2135R.C2137id.paper_size);
|
|
|
+ case R.C2137id.paper_size /*2131231306*/:
|
|
|
+ launchDetailScreen(this.paperSize, R.C2137id.paper_size);
|
|
|
return;
|
|
|
- case C2135R.C2137id.paper_source /*2131231311*/:
|
|
|
+ case R.C2137id.paper_source /*2131231311*/:
|
|
|
int i = this.paperSource;
|
|
|
int[] iArr = this.paper_source_info;
|
|
|
if (iArr != null && iArr.length <= 1) {
|
|
|
i = 128;
|
|
|
}
|
|
|
- launchDetailScreen(i, C2135R.C2137id.paper_source);
|
|
|
+ launchDetailScreen(i, R.C2137id.paper_source);
|
|
|
return;
|
|
|
- case C2135R.C2137id.paper_type /*2131231314*/:
|
|
|
- launchDetailScreen(this.paperType, C2135R.C2137id.paper_type);
|
|
|
+ case R.C2137id.paper_type /*2131231314*/:
|
|
|
+ launchDetailScreen(this.paperType, R.C2137id.paper_type);
|
|
|
return;
|
|
|
- case C2135R.C2137id.printdate /*2131231355*/:
|
|
|
- launchDetailScreen(this.printdate, C2135R.C2137id.printdate);
|
|
|
+ case R.C2137id.printdate /*2131231355*/:
|
|
|
+ launchDetailScreen(this.printdate, R.C2137id.printdate);
|
|
|
return;
|
|
|
- case C2135R.C2137id.printer /*2131231358*/:
|
|
|
+ case R.C2137id.printer /*2131231358*/:
|
|
|
unbindEpsonService();
|
|
|
new AsyncTask<Void, Void, Void>() {
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onPreExecute() {
|
|
|
- CameraPrintSettingActivity.this.findViewById(C2135R.C2137id.printer).setClickable(false);
|
|
|
+ protected void onPreExecute() {
|
|
|
+ CameraPrintSettingActivity.this.findViewById(R.C2137id.printer).setClickable(false);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public Void doInBackground(Void... voidArr) {
|
|
|
+ protected Void doInBackground(Void... voidArr) {
|
|
|
CameraPrintSettingActivity cameraPrintSettingActivity = CameraPrintSettingActivity.this;
|
|
|
WiFiDirectManager.disconnect(cameraPrintSettingActivity, WiFiDirectManager.DEVICE_TYPE_PRINTER, cameraPrintSettingActivity.printerIp);
|
|
|
CameraPrintSettingActivity cameraPrintSettingActivity2 = CameraPrintSettingActivity.this;
|
|
@@ -2233,8 +2229,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onPostExecute(Void voidR) {
|
|
|
+ protected void onPostExecute(Void voidR) {
|
|
|
Intent intent = new Intent(CameraPrintSettingActivity.this, SearchPrinterScr.class);
|
|
|
Bundle bundle = new Bundle();
|
|
|
bundle.putString(Constants.PRINTER_ID, CameraPrintSettingActivity.this.printerId);
|
|
@@ -2244,14 +2239,14 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
bundle.putString(CameraPrintSettingActivity.EXTRA_SIMPLEAP, CameraPrintSettingActivity.this.autoConnectSsid);
|
|
|
intent.putExtras(bundle);
|
|
|
CameraPrintSettingActivity.this.startActivityForResult(intent, 0);
|
|
|
- CameraPrintSettingActivity.this.findViewById(C2135R.C2137id.printer).setClickable(true);
|
|
|
+ CameraPrintSettingActivity.this.findViewById(R.C2137id.printer).setClickable(true);
|
|
|
}
|
|
|
}.execute(new Void[0]);
|
|
|
return;
|
|
|
- case C2135R.C2137id.quality /*2131231392*/:
|
|
|
- launchDetailScreen(this.quality, C2135R.C2137id.quality);
|
|
|
+ case R.C2137id.quality /*2131231392*/:
|
|
|
+ launchDetailScreen(this.quality, R.C2137id.quality);
|
|
|
return;
|
|
|
- case C2135R.C2137id.saturation_minus_button /*2131231425*/:
|
|
|
+ case R.C2137id.saturation_minus_button /*2131231425*/:
|
|
|
this.saturationValue--;
|
|
|
if (this.saturationValue <= -50) {
|
|
|
this.saturationValue = -50;
|
|
@@ -2262,7 +2257,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.saturationPlus.setEnabled(true);
|
|
|
this.saturation.setText(String.valueOf(this.saturationValue));
|
|
|
return;
|
|
|
- case C2135R.C2137id.saturation_plus_button /*2131231426*/:
|
|
|
+ case R.C2137id.saturation_plus_button /*2131231426*/:
|
|
|
this.saturationValue++;
|
|
|
if (this.saturationValue >= 50) {
|
|
|
this.saturationValue = 50;
|
|
@@ -2279,8 +2274,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: package-private */
|
|
|
- public void launchDetailScreen(int i, int i2) {
|
|
|
+ private void launchDetailScreen(int i, int i2) {
|
|
|
Intent intent = new Intent(this, PrinterInfoDetail.class);
|
|
|
Bundle bundle = new Bundle();
|
|
|
bundle.putInt("ID", i2);
|
|
@@ -2289,26 +2283,26 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
bundle.putInt("curValue", i);
|
|
|
bundle.putBoolean("isDocumentSetting", this.isDocumentSetting);
|
|
|
switch (i2) {
|
|
|
- case C2135R.C2137id.color /*2131230930*/:
|
|
|
+ case R.C2137id.color /*2131230930*/:
|
|
|
bundle.putIntArray(Constants.COLOR_INFO, this.color_info);
|
|
|
break;
|
|
|
- case C2135R.C2137id.duplex /*2131231005*/:
|
|
|
+ case R.C2137id.duplex /*2131231005*/:
|
|
|
bundle.putIntArray(Constants.DUPLEX_INFO, this.duplex_info);
|
|
|
break;
|
|
|
- case C2135R.C2137id.layout /*2131231158*/:
|
|
|
+ case R.C2137id.layout /*2131231158*/:
|
|
|
bundle.putIntArray(Constants.LAYOUT_INFO, this.layout_info);
|
|
|
break;
|
|
|
- case C2135R.C2137id.paper_size /*2131231306*/:
|
|
|
+ case R.C2137id.paper_size /*2131231306*/:
|
|
|
bundle.putIntArray(Constants.PAPER_SIZE_INFO, this.paper_size_info);
|
|
|
break;
|
|
|
- case C2135R.C2137id.paper_source /*2131231311*/:
|
|
|
+ case R.C2137id.paper_source /*2131231311*/:
|
|
|
int[] iArr = this.paper_source_info;
|
|
|
bundle.putIntArray(Constants.PAPER_SOURCE_INFO, (iArr == null || iArr.length > 1) ? this.paper_source_info : new int[]{128});
|
|
|
break;
|
|
|
- case C2135R.C2137id.paper_type /*2131231314*/:
|
|
|
+ case R.C2137id.paper_type /*2131231314*/:
|
|
|
bundle.putIntArray(Constants.PAPER_TYPE_INFO, this.paper_type_info);
|
|
|
break;
|
|
|
- case C2135R.C2137id.quality /*2131231392*/:
|
|
|
+ case R.C2137id.quality /*2131231392*/:
|
|
|
bundle.putIntArray(Constants.PRINT_QUALITY_INFO, this.quality_info);
|
|
|
break;
|
|
|
}
|
|
@@ -2316,8 +2310,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
startActivityForResult(intent, 1);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onActivityResult(int i, int i2, Intent intent) {
|
|
|
+ protected void onActivityResult(int i, int i2, Intent intent) {
|
|
|
super.onActivityResult(i, i2, intent);
|
|
|
String callingPackage = getCallingPackage();
|
|
|
EPLog.m313i(callingPackage, "requestCode = " + i + " resultCode = " + i2);
|
|
@@ -2327,25 +2320,25 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
if (i == 1 && i2 == -1) {
|
|
|
int i3 = intent.getExtras().getInt("curValue");
|
|
|
switch (intent.getExtras().getInt("ID")) {
|
|
|
- case C2135R.C2137id.color /*2131230930*/:
|
|
|
+ case R.C2137id.color /*2131230930*/:
|
|
|
this.mLookupTable = new MediaInfo.Color();
|
|
|
this.colorInfo.setText(getString(this.mLookupTable.getStringId(i3)));
|
|
|
this.mLookupTable.destructor();
|
|
|
this.color = i3;
|
|
|
break;
|
|
|
- case C2135R.C2137id.duplex /*2131231005*/:
|
|
|
+ case R.C2137id.duplex /*2131231005*/:
|
|
|
this.mLookupTable = new MediaInfo.Duplex();
|
|
|
this.duplexInfo.setText(getString(this.mLookupTable.getStringId(i3)));
|
|
|
this.mLookupTable.destructor();
|
|
|
this.duplex = i3;
|
|
|
break;
|
|
|
- case C2135R.C2137id.feed_direction /*2131231037*/:
|
|
|
+ case R.C2137id.feed_direction /*2131231037*/:
|
|
|
this.mLookupTable = new MediaInfo.FeedDirection();
|
|
|
this.feedDirectionInfo.setText(getString(this.mLookupTable.getStringId(i3)));
|
|
|
this.mLookupTable.destructor();
|
|
|
this.feedDirection = i3;
|
|
|
break;
|
|
|
- case C2135R.C2137id.layout /*2131231158*/:
|
|
|
+ case R.C2137id.layout /*2131231158*/:
|
|
|
this.mLookupTable = new MediaInfo.Layout();
|
|
|
this.layoutInfo.setText(getString(this.mLookupTable.getStringId(i3)));
|
|
|
this.mLookupTable.destructor();
|
|
@@ -2353,7 +2346,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.undoFlag = false;
|
|
|
this.mHandler.sendEmptyMessage(32);
|
|
|
break;
|
|
|
- case C2135R.C2137id.paper_size /*2131231306*/:
|
|
|
+ case R.C2137id.paper_size /*2131231306*/:
|
|
|
this.sizeIndex = intent.getExtras().getInt("INDEX");
|
|
|
this.mLookupTable = new MediaInfo.PaperSize();
|
|
|
this.paperSizeInfo.setText(getString(this.mLookupTable.getStringId(i3)));
|
|
@@ -2363,7 +2356,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.undoFlag = false;
|
|
|
this.mHandler.sendEmptyMessage(2);
|
|
|
break;
|
|
|
- case C2135R.C2137id.paper_source /*2131231311*/:
|
|
|
+ case R.C2137id.paper_source /*2131231311*/:
|
|
|
this.mLookupTable = new MediaInfo.PaperSource();
|
|
|
this.paperSourceInfo.setText(getString(this.mLookupTable.getStringId(i3)));
|
|
|
this.mLookupTable.destructor();
|
|
@@ -2374,7 +2367,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.undoFlag = false;
|
|
|
this.mHandler.sendEmptyMessage(32);
|
|
|
break;
|
|
|
- case C2135R.C2137id.paper_type /*2131231314*/:
|
|
|
+ case R.C2137id.paper_type /*2131231314*/:
|
|
|
this.typeIndex = intent.getExtras().getInt("INDEX");
|
|
|
this.mLookupTable = new MediaInfo.PaperType();
|
|
|
this.paperTypeInfo.setText(getString(this.mLookupTable.getStringId(i3)));
|
|
@@ -2384,13 +2377,13 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.undoFlag = false;
|
|
|
this.mHandler.sendEmptyMessage(3);
|
|
|
break;
|
|
|
- case C2135R.C2137id.printdate /*2131231355*/:
|
|
|
+ case R.C2137id.printdate /*2131231355*/:
|
|
|
this.mLookupTable = new MediaInfo.PrintDate();
|
|
|
this.printDateInfo.setText(getString(this.mLookupTable.getStringId(i3)));
|
|
|
this.mLookupTable.destructor();
|
|
|
this.printdate = i3;
|
|
|
break;
|
|
|
- case C2135R.C2137id.quality /*2131231392*/:
|
|
|
+ case R.C2137id.quality /*2131231392*/:
|
|
|
this.mLookupTable = new MediaInfo.Quality();
|
|
|
this.qualityInfo.setText(getString(this.mLookupTable.getStringId(i3)));
|
|
|
this.mLookupTable.destructor();
|
|
@@ -2560,40 +2553,38 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.mHandler.sendEmptyMessageDelayed(17, 100);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: package-private */
|
|
|
- public void updateSettingView() {
|
|
|
+ private void updateSettingView() {
|
|
|
boolean z = this.isDocumentSetting;
|
|
|
setVisibilityPageRange(false);
|
|
|
int[] iArr = this.color_info;
|
|
|
if (iArr == null) {
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.color_next_screen_imv)).setVisibility(8);
|
|
|
+ ((ImageView) findViewById(R.C2137id.color_next_screen_imv)).setVisibility(8);
|
|
|
} else if (iArr.length <= 1) {
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.color_next_screen_imv)).setVisibility(8);
|
|
|
+ ((ImageView) findViewById(R.C2137id.color_next_screen_imv)).setVisibility(8);
|
|
|
} else {
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.color_next_screen_imv)).setVisibility(0);
|
|
|
+ ((ImageView) findViewById(R.C2137id.color_next_screen_imv)).setVisibility(0);
|
|
|
}
|
|
|
int[] iArr2 = this.duplex_info;
|
|
|
- findViewById(C2135R.C2137id.duplex_view).setVisibility(8);
|
|
|
- ((LinearLayout) findViewById(C2135R.C2137id.duplex)).setVisibility(8);
|
|
|
+ findViewById(R.C2137id.duplex_view).setVisibility(8);
|
|
|
+ ((LinearLayout) findViewById(R.C2137id.duplex)).setVisibility(8);
|
|
|
switch (this.lang) {
|
|
|
case 2:
|
|
|
case 3:
|
|
|
- findViewById(C2135R.C2137id.feed_direction_view).setVisibility(0);
|
|
|
- findViewById(C2135R.C2137id.feed_direction).setVisibility(0);
|
|
|
+ findViewById(R.C2137id.feed_direction_view).setVisibility(0);
|
|
|
+ findViewById(R.C2137id.feed_direction).setVisibility(0);
|
|
|
break;
|
|
|
default:
|
|
|
- findViewById(C2135R.C2137id.feed_direction_view).setVisibility(8);
|
|
|
- findViewById(C2135R.C2137id.feed_direction).setVisibility(8);
|
|
|
+ findViewById(R.C2137id.feed_direction_view).setVisibility(8);
|
|
|
+ findViewById(R.C2137id.feed_direction).setVisibility(8);
|
|
|
break;
|
|
|
}
|
|
|
if (!this.isDocumentSetting) {
|
|
|
int i = this.printerLocation;
|
|
|
}
|
|
|
- findViewById(C2135R.C2137id.printdate).setVisibility(8);
|
|
|
+ findViewById(R.C2137id.printdate).setVisibility(8);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: package-private */
|
|
|
- public int getPrinterLang() {
|
|
|
+ private int getPrinterLang() {
|
|
|
int i;
|
|
|
IEpsonService iEpsonService;
|
|
|
if (!(this.printerLocation == 2 || (iEpsonService = this.mEpsonService) == null)) {
|
|
@@ -2610,31 +2601,28 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
return i;
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: package-private */
|
|
|
- public void setVisibilityPageRange(boolean z) {
|
|
|
+ private void setVisibilityPageRange(boolean z) {
|
|
|
int i = 0;
|
|
|
- findViewById(C2135R.C2137id.page_range_setting).setVisibility(z ? 0 : 8);
|
|
|
- View findViewById = findViewById(C2135R.C2137id.page_range_separator);
|
|
|
+ findViewById(R.C2137id.page_range_setting).setVisibility(z ? 0 : 8);
|
|
|
+ View findViewById = findViewById(R.C2137id.page_range_separator);
|
|
|
if (!z) {
|
|
|
i = 8;
|
|
|
}
|
|
|
findViewById.setVisibility(i);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: package-private */
|
|
|
- public void setClickablePageRange(boolean z) {
|
|
|
- findViewById(C2135R.C2137id.page_range_setting).setClickable(z);
|
|
|
+ private void setClickablePageRange(boolean z) {
|
|
|
+ findViewById(R.C2137id.page_range_setting).setClickable(z);
|
|
|
int i = 0;
|
|
|
- findViewById(C2135R.C2137id.page_range_next_screen_imv).setVisibility(z ? 0 : 8);
|
|
|
- View findViewById = findViewById(C2135R.C2137id.page_range_value);
|
|
|
+ findViewById(R.C2137id.page_range_next_screen_imv).setVisibility(z ? 0 : 8);
|
|
|
+ View findViewById = findViewById(R.C2137id.page_range_value);
|
|
|
if (!z) {
|
|
|
i = 8;
|
|
|
}
|
|
|
findViewById.setVisibility(i);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: package-private */
|
|
|
- public void resetSettings() {
|
|
|
+ private void resetSettings() {
|
|
|
this.printerDeviceId = null;
|
|
|
this.printerId = null;
|
|
|
this.printerEmailAddress = null;
|
|
@@ -2649,8 +2637,8 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
this.quality_info = null;
|
|
|
this.duplex_info = null;
|
|
|
this.autoConnectSsid = "";
|
|
|
- this.printerName.setText(getString(C2135R.string.str_lbl_title_scan));
|
|
|
- ((ImageView) findViewById(C2135R.C2137id.imageViewPrinterLocation)).setVisibility(8);
|
|
|
+ this.printerName.setText(getString(R.string.str_lbl_title_scan));
|
|
|
+ ((ImageView) findViewById(R.C2137id.imageViewPrinterLocation)).setVisibility(8);
|
|
|
updateSettingView();
|
|
|
setScreenState(true);
|
|
|
}
|
|
@@ -2679,20 +2667,20 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
} else {
|
|
|
this.progressGetOption.setVisibility(0);
|
|
|
}
|
|
|
- findViewById(C2135R.C2137id.printer).setClickable(bool.booleanValue());
|
|
|
- findViewById(C2135R.C2137id.paper_size).setClickable(bool.booleanValue());
|
|
|
- findViewById(C2135R.C2137id.paper_type).setClickable(bool.booleanValue());
|
|
|
- findViewById(C2135R.C2137id.layout).setClickable(bool.booleanValue());
|
|
|
- findViewById(C2135R.C2137id.quality).setClickable(bool.booleanValue());
|
|
|
- findViewById(C2135R.C2137id.paper_source).setClickable(bool.booleanValue());
|
|
|
- findViewById(C2135R.C2137id.color).setClickable(bool.booleanValue());
|
|
|
- findViewById(C2135R.C2137id.duplex).setClickable(bool.booleanValue());
|
|
|
- findViewById(C2135R.C2137id.feed_direction).setClickable(bool.booleanValue());
|
|
|
- findViewById(C2135R.C2137id.printdate).setClickable(bool.booleanValue());
|
|
|
+ findViewById(R.C2137id.printer).setClickable(bool.booleanValue());
|
|
|
+ findViewById(R.C2137id.paper_size).setClickable(bool.booleanValue());
|
|
|
+ findViewById(R.C2137id.paper_type).setClickable(bool.booleanValue());
|
|
|
+ findViewById(R.C2137id.layout).setClickable(bool.booleanValue());
|
|
|
+ findViewById(R.C2137id.quality).setClickable(bool.booleanValue());
|
|
|
+ findViewById(R.C2137id.paper_source).setClickable(bool.booleanValue());
|
|
|
+ findViewById(R.C2137id.color).setClickable(bool.booleanValue());
|
|
|
+ findViewById(R.C2137id.duplex).setClickable(bool.booleanValue());
|
|
|
+ findViewById(R.C2137id.feed_direction).setClickable(bool.booleanValue());
|
|
|
+ findViewById(R.C2137id.printdate).setClickable(bool.booleanValue());
|
|
|
}
|
|
|
|
|
|
public void showErrorDialog(String str, String str2) {
|
|
|
- new CustomTitleAlertDialogBuilder(this).setCancelable(false).setTitle(str).setMessage(str2).setNegativeButton(getString(C2135R.string.ok_button), new DialogInterface.OnClickListener() {
|
|
|
+ new CustomTitleAlertDialogBuilder(this).setCancelable(false).setTitle(str).setMessage(str2).setNegativeButton(getString(R.string.ok_button), new DialogInterface.OnClickListener() {
|
|
|
public void onClick(DialogInterface dialogInterface, int i) {
|
|
|
CameraPrintSettingActivity.this.setScreenState(true);
|
|
|
dialogInterface.cancel();
|
|
@@ -2701,8 +2689,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
updateSupportedMediaFile(true);
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onResume() {
|
|
|
+ protected void onResume() {
|
|
|
super.onResume();
|
|
|
EPLog.m307e("SettingScr", "onResume()");
|
|
|
if (this.printerId != null && this.printerLocation == 1 && this.isRetryAfterConnectSimpleAp) {
|
|
@@ -2715,8 +2702,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void onPause() {
|
|
|
+ protected void onPause() {
|
|
|
EPLog.m305d("SettingScr", "onPause");
|
|
|
super.onPause();
|
|
|
if (isFinishing()) {
|
|
@@ -2727,12 +2713,12 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
}
|
|
|
|
|
|
public boolean onCreateOptionsMenu(Menu menu) {
|
|
|
- getMenuInflater().inflate(C2135R.C2138menu.menu_done, menu);
|
|
|
+ getMenuInflater().inflate(R.C2138menu.menu_done, menu);
|
|
|
return super.onCreateOptionsMenu(menu);
|
|
|
}
|
|
|
|
|
|
public boolean onOptionsItemSelected(MenuItem menuItem) {
|
|
|
- if (menuItem.getItemId() != C2135R.C2137id.menuSettingsDone) {
|
|
|
+ if (menuItem.getItemId() != R.C2137id.menuSettingsDone) {
|
|
|
return super.onOptionsItemSelected(menuItem);
|
|
|
}
|
|
|
saveChanged();
|
|
@@ -2741,8 +2727,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- /* access modifiers changed from: protected */
|
|
|
- public void deleteLongTapMessage() {
|
|
|
+ protected void deleteLongTapMessage() {
|
|
|
MotionEvent obtain = MotionEvent.obtain(SystemClock.uptimeMillis(), SystemClock.uptimeMillis() + 10, 1, 0.0f, 0.0f, 0);
|
|
|
this.copiesMinus.dispatchTouchEvent(obtain);
|
|
|
this.copiesPlus.dispatchTouchEvent(obtain);
|