|
@@ -264,7 +264,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
mContext = this;
|
|
|
mRemoteSrcType = 2;
|
|
|
isDocumentSetting = getIntent().getBooleanExtra(PrintProgress.PARAM_DOCUMENT_MODE, false);
|
|
|
- if (this.isDocumentSetting) {
|
|
|
+ if (isDocumentSetting) {
|
|
|
sheets = getIntent().getIntExtra("SHEETS", 1);
|
|
|
disablePrintArea = getIntent().getBooleanExtra("PRINTAREA", false);
|
|
|
mRemoteSrcType = 1;
|
|
@@ -280,8 +280,8 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
copies = (TextView) findViewById(R.id.copies);
|
|
|
copiesMinus = (Button) findViewById(R.id.copies_minus_button);
|
|
|
copiesPlus = (Button) findViewById(R.id.copies_plus_button);
|
|
|
- LongTapRepeatAdapter.bless(this.copiesMinus);
|
|
|
- LongTapRepeatAdapter.bless(this.copiesPlus);
|
|
|
+ LongTapRepeatAdapter.bless(copiesMinus);
|
|
|
+ LongTapRepeatAdapter.bless(copiesPlus);
|
|
|
colorInfo = (TextView) findViewById(R.id.color_info);
|
|
|
duplexInfo = (TextView) findViewById(R.id.duplex_info);
|
|
|
feedDirectionInfo = (TextView) findViewById(R.id.feed_direction_info);
|
|
@@ -300,7 +300,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
loadConfig();
|
|
|
setClickListener();
|
|
|
updatePrinterIcon();
|
|
|
- if (this.printerId != null) {
|
|
|
+ if (printerId != null) {
|
|
|
undoFlag = false;
|
|
|
if (loadSupportedMediaFile()) {
|
|
|
mHandler.sendEmptyMessage(1);
|
|
@@ -313,12 +313,12 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
}
|
|
|
|
|
|
private void updatePrinterIcon() {
|
|
|
- if (this.printerName.getText().equals(getString(R.string.str_lbl_title_scan))) {
|
|
|
+ if (printerName.getText().equals(getString(R.string.str_lbl_title_scan))) {
|
|
|
((ImageView) findViewById(R.id.imageViewPrinterLocation)).setVisibility(View.GONE);
|
|
|
return;
|
|
|
}
|
|
|
((ImageView) findViewById(R.id.imageViewPrinterLocation)).setVisibility(View.VISIBLE);
|
|
|
- switch (this.printerLocation) {
|
|
|
+ switch (printerLocation) {
|
|
|
case 1:
|
|
|
((ImageView) findViewById(R.id.imageViewPrinterLocation)).setImageResource(R.drawable.print_local);
|
|
|
return;
|
|
@@ -342,7 +342,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
contrastPlus.setOnClickListener(this);
|
|
|
saturationMinus.setOnClickListener(this);
|
|
|
saturationPlus.setOnClickListener(this);
|
|
|
- if (this.isDocumentSetting) {
|
|
|
+ if (isDocumentSetting) {
|
|
|
findViewById(R.id.page_range_setting).setOnClickListener(this);
|
|
|
}
|
|
|
findViewById(R.id.printer).setOnClickListener(this);
|
|
@@ -371,7 +371,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
printerEmailAddress = curPrinter.getEmailAddress();
|
|
|
printerLocation = curPrinter.getLocation();
|
|
|
boolean z = true;
|
|
|
- if (this.printerLocation == 0) {
|
|
|
+ if (printerLocation == 0) {
|
|
|
printerLocation = 1;
|
|
|
}
|
|
|
autoConnectSsid = WiFiDirectManager.getConnectInfo(this, WiFiDirectManager.DEVICE_TYPE_PRINTER);
|
|
@@ -379,35 +379,35 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
printSetting.loadSettings();
|
|
|
mLookupTable = new MediaInfo.PaperSize();
|
|
|
paperSize = printSetting.paperSizeValue;
|
|
|
- paperSizeInfo.setText(getString(mLookupTable.getStringId(this.paperSize)));
|
|
|
+ paperSizeInfo.setText(getString(mLookupTable.getStringId(paperSize)));
|
|
|
mLookupTable.destructor();
|
|
|
mLookupTable = new MediaInfo.PaperType();
|
|
|
paperType = printSetting.paperTypeValue;
|
|
|
- paperTypeInfo.setText(getString(mLookupTable.getStringId(this.paperType)));
|
|
|
+ paperTypeInfo.setText(getString(mLookupTable.getStringId(paperType)));
|
|
|
mLookupTable.destructor();
|
|
|
mPaperSizeType = printSetting.loadPaperSizeTypePear();
|
|
|
- mPaperSizeType.putID(this.paperSize, paperType);
|
|
|
+ mPaperSizeType.putID(paperSize, paperType);
|
|
|
mLookupTable = new MediaInfo.Layout();
|
|
|
layout = printSetting.layoutValue;
|
|
|
- layoutInfo.setText(getString(mLookupTable.getStringId(this.layout)));
|
|
|
+ layoutInfo.setText(getString(mLookupTable.getStringId(layout)));
|
|
|
mLookupTable.destructor();
|
|
|
mLookupTable = new MediaInfo.Quality();
|
|
|
quality = printSetting.qualityValue;
|
|
|
- qualityInfo.setText(getString(mLookupTable.getStringId(this.quality)));
|
|
|
+ qualityInfo.setText(getString(mLookupTable.getStringId(quality)));
|
|
|
mLookupTable.destructor();
|
|
|
mLookupTable = new MediaInfo.PaperSource();
|
|
|
paperSource = printSetting.paperSourceValue;
|
|
|
- paperSourceInfo.setText(getString(mLookupTable.getStringId(this.paperSource)));
|
|
|
+ paperSourceInfo.setText(getString(mLookupTable.getStringId(paperSource)));
|
|
|
mLookupTable.destructor();
|
|
|
mLookupTable = new MediaInfo.Color();
|
|
|
color = printSetting.colorValue;
|
|
|
- colorInfo.setText(getString(mLookupTable.getStringId(this.color)));
|
|
|
+ colorInfo.setText(getString(mLookupTable.getStringId(color)));
|
|
|
mLookupTable.destructor();
|
|
|
copiesValue = printSetting.copiesValue;
|
|
|
- copies.setText(String.valueOf(this.copiesValue));
|
|
|
- copiesMinus.setEnabled(this.copiesValue != 1);
|
|
|
+ copies.setText(String.valueOf(copiesValue));
|
|
|
+ copiesMinus.setEnabled(copiesValue != 1);
|
|
|
Button button = copiesPlus;
|
|
|
- if (this.copiesValue == 30) {
|
|
|
+ if (copiesValue == 30) {
|
|
|
z = false;
|
|
|
}
|
|
|
button.setEnabled(z);
|
|
@@ -416,23 +416,23 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
saturationValue = printSetting.saturationValue;
|
|
|
mLookupTable = new MediaInfo.Duplex();
|
|
|
duplex = printSetting.duplexValue;
|
|
|
- duplexInfo.setText(getString(mLookupTable.getStringId(this.duplex)));
|
|
|
+ duplexInfo.setText(getString(mLookupTable.getStringId(duplex)));
|
|
|
mLookupTable.destructor();
|
|
|
mLookupTable = new MediaInfo.FeedDirection();
|
|
|
feedDirection = printSetting.feedDirectionValue;
|
|
|
- feedDirectionInfo.setText(getString(mLookupTable.getStringId(this.feedDirection)));
|
|
|
+ feedDirectionInfo.setText(getString(mLookupTable.getStringId(feedDirection)));
|
|
|
mLookupTable.destructor();
|
|
|
lang = curPrinter.getLang();
|
|
|
- if (this.isDocumentSetting) {
|
|
|
+ if (isDocumentSetting) {
|
|
|
printAll = printSetting.printAll;
|
|
|
startValue = printSetting.startValue;
|
|
|
endValue = printSetting.endValue;
|
|
|
- ((TextView) findViewById(R.id.page_range_value)).setText(this.startValue + ".." + endValue);
|
|
|
+ ((TextView) findViewById(R.id.page_range_value)).setText(startValue + ".." + endValue);
|
|
|
return;
|
|
|
}
|
|
|
mLookupTable = new MediaInfo.PrintDate();
|
|
|
printdate = printSetting.printdate;
|
|
|
- printDateInfo.setText(getString(mLookupTable.getStringId(this.printdate)));
|
|
|
+ printDateInfo.setText(getString(mLookupTable.getStringId(printdate)));
|
|
|
mLookupTable.destructor();
|
|
|
}
|
|
|
|
|
@@ -556,8 +556,8 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
SharedPreferences.Editor edit = getSharedPreferences("PrintSetting", 0).edit();
|
|
|
edit.putInt(Constants.PREFS_INFO_PRINT_SAVE, 1);
|
|
|
edit.commit();
|
|
|
- MyPrinter myPrinter = new MyPrinter(this.printerDeviceId, printerIp, printerId, printerSerialNo, printerEmailAddress, printerLocation);
|
|
|
- myPrinter.setLang(this.lang);
|
|
|
+ MyPrinter myPrinter = new MyPrinter(printerDeviceId, printerIp, printerId, printerSerialNo, printerEmailAddress, printerLocation);
|
|
|
+ myPrinter.setLang(lang);
|
|
|
myPrinter.setCurPrinter(this);
|
|
|
PrintSetting printSetting = new PrintSetting(this, PrintSetting.Kind.cameracopy);
|
|
|
printSetting.paperSizeValue = paperSize;
|
|
@@ -572,7 +572,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
printSetting.brightnessValue = brightnessValue;
|
|
|
printSetting.contrastValue = contrastValue;
|
|
|
printSetting.saturationValue = saturationValue;
|
|
|
- if (this.isDocumentSetting) {
|
|
|
+ if (isDocumentSetting) {
|
|
|
printSetting.printAll = printAll;
|
|
|
printSetting.startValue = startValue;
|
|
|
printSetting.endValue = endValue;
|
|
@@ -625,7 +625,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
}
|
|
|
|
|
|
public void onClick(View view) {
|
|
|
- if (this.progressGetOption.getVisibility() == 8) {
|
|
|
+ if (progressGetOption.getVisibility() == 8) {
|
|
|
IEpsonService iEpsonService = mEpsonService;
|
|
|
if (iEpsonService != null) {
|
|
|
try {
|
|
@@ -637,81 +637,81 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
switch (view.getId()) {
|
|
|
case R.id.brightness_minus_button /*2131230848*/:
|
|
|
brightnessValue--;
|
|
|
- if (this.brightnessValue <= -50) {
|
|
|
+ if (brightnessValue <= -50) {
|
|
|
brightnessValue = -50;
|
|
|
brightnessMinus.setEnabled(false);
|
|
|
} else {
|
|
|
brightnessMinus.setEnabled(true);
|
|
|
}
|
|
|
brightnessPlus.setEnabled(true);
|
|
|
- brightness.setText(String.valueOf(this.brightnessValue));
|
|
|
+ brightness.setText(String.valueOf(brightnessValue));
|
|
|
return;
|
|
|
case R.id.brightness_plus_button /*2131230850*/:
|
|
|
brightnessValue++;
|
|
|
- if (this.brightnessValue >= 50) {
|
|
|
+ if (brightnessValue >= 50) {
|
|
|
brightnessValue = 50;
|
|
|
brightnessPlus.setEnabled(false);
|
|
|
} else {
|
|
|
brightnessPlus.setEnabled(true);
|
|
|
}
|
|
|
brightnessMinus.setEnabled(true);
|
|
|
- brightness.setText(String.valueOf(this.brightnessValue));
|
|
|
+ brightness.setText(String.valueOf(brightnessValue));
|
|
|
return;
|
|
|
case R.id.color /*2131230930*/:
|
|
|
- launchDetailScreen(this.color, R.id.color);
|
|
|
+ launchDetailScreen(color, R.id.color);
|
|
|
return;
|
|
|
case R.id.contrast_minus_button /*2131230942*/:
|
|
|
contrastValue--;
|
|
|
- if (this.contrastValue <= -50) {
|
|
|
+ if (contrastValue <= -50) {
|
|
|
contrastValue = -50;
|
|
|
contrastMinus.setEnabled(false);
|
|
|
} else {
|
|
|
contrastMinus.setEnabled(true);
|
|
|
}
|
|
|
contrastPlus.setEnabled(true);
|
|
|
- contrast.setText(String.valueOf(this.contrastValue));
|
|
|
+ contrast.setText(String.valueOf(contrastValue));
|
|
|
return;
|
|
|
case R.id.contrast_plus_button /*2131230943*/:
|
|
|
contrastValue++;
|
|
|
- if (this.contrastValue >= 50) {
|
|
|
+ if (contrastValue >= 50) {
|
|
|
contrastValue = 50;
|
|
|
contrastPlus.setEnabled(false);
|
|
|
} else {
|
|
|
contrastPlus.setEnabled(true);
|
|
|
}
|
|
|
contrastMinus.setEnabled(true);
|
|
|
- contrast.setText(String.valueOf(this.contrastValue));
|
|
|
+ contrast.setText(String.valueOf(contrastValue));
|
|
|
return;
|
|
|
case R.id.copies_minus_button /*2131230945*/:
|
|
|
copiesValue--;
|
|
|
- if (this.copiesValue <= 1) {
|
|
|
+ if (copiesValue <= 1) {
|
|
|
copiesValue = 1;
|
|
|
copiesMinus.setEnabled(false);
|
|
|
} else {
|
|
|
copiesMinus.setEnabled(true);
|
|
|
}
|
|
|
copiesPlus.setEnabled(true);
|
|
|
- copies.setText(String.valueOf(this.copiesValue));
|
|
|
+ copies.setText(String.valueOf(copiesValue));
|
|
|
return;
|
|
|
case R.id.copies_plus_button /*2131230946*/:
|
|
|
copiesValue++;
|
|
|
- if (this.copiesValue >= 30) {
|
|
|
+ if (copiesValue >= 30) {
|
|
|
copiesValue = 30;
|
|
|
copiesPlus.setEnabled(false);
|
|
|
} else {
|
|
|
copiesPlus.setEnabled(true);
|
|
|
}
|
|
|
copiesMinus.setEnabled(true);
|
|
|
- copies.setText(String.valueOf(this.copiesValue));
|
|
|
+ copies.setText(String.valueOf(copiesValue));
|
|
|
return;
|
|
|
case R.id.duplex /*2131231005*/:
|
|
|
- launchDetailScreen(this.duplex, R.id.duplex);
|
|
|
+ launchDetailScreen(duplex, R.id.duplex);
|
|
|
return;
|
|
|
case R.id.feed_direction /*2131231037*/:
|
|
|
- launchDetailScreen(this.feedDirection, R.id.feed_direction);
|
|
|
+ launchDetailScreen(feedDirection, R.id.feed_direction);
|
|
|
return;
|
|
|
case R.id.layout /*2131231158*/:
|
|
|
- launchDetailScreen(this.layout, R.id.layout);
|
|
|
+ launchDetailScreen(layout, R.id.layout);
|
|
|
return;
|
|
|
case R.id.page_range_setting /*2131231300*/:
|
|
|
Intent intent = new Intent(this, PageRangeSetting.class);
|
|
@@ -722,7 +722,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
startActivityForResult(intent, 2);
|
|
|
return;
|
|
|
case R.id.paper_size /*2131231306*/:
|
|
|
- launchDetailScreen(this.paperSize, R.id.paper_size);
|
|
|
+ launchDetailScreen(paperSize, R.id.paper_size);
|
|
|
return;
|
|
|
case R.id.paper_source /*2131231311*/:
|
|
|
int i = paperSource;
|
|
@@ -733,10 +733,10 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
launchDetailScreen(i, R.id.paper_source);
|
|
|
return;
|
|
|
case R.id.paper_type /*2131231314*/:
|
|
|
- launchDetailScreen(this.paperType, R.id.paper_type);
|
|
|
+ launchDetailScreen(paperType, R.id.paper_type);
|
|
|
return;
|
|
|
case R.id.printdate /*2131231355*/:
|
|
|
- launchDetailScreen(this.printdate, R.id.printdate);
|
|
|
+ launchDetailScreen(printdate, R.id.printdate);
|
|
|
return;
|
|
|
case R.id.printer /*2131231358*/:
|
|
|
unbindEpsonService();
|
|
@@ -768,29 +768,29 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
}.execute(new Void[0]);
|
|
|
return;
|
|
|
case R.id.quality /*2131231392*/:
|
|
|
- launchDetailScreen(this.quality, R.id.quality);
|
|
|
+ launchDetailScreen(quality, R.id.quality);
|
|
|
return;
|
|
|
case R.id.saturation_minus_button /*2131231425*/:
|
|
|
saturationValue--;
|
|
|
- if (this.saturationValue <= -50) {
|
|
|
+ if (saturationValue <= -50) {
|
|
|
saturationValue = -50;
|
|
|
saturationMinus.setEnabled(false);
|
|
|
} else {
|
|
|
saturationMinus.setEnabled(true);
|
|
|
}
|
|
|
saturationPlus.setEnabled(true);
|
|
|
- saturation.setText(String.valueOf(this.saturationValue));
|
|
|
+ saturation.setText(String.valueOf(saturationValue));
|
|
|
return;
|
|
|
case R.id.saturation_plus_button /*2131231426*/:
|
|
|
saturationValue++;
|
|
|
- if (this.saturationValue >= 50) {
|
|
|
+ if (saturationValue >= 50) {
|
|
|
saturationValue = 50;
|
|
|
saturationPlus.setEnabled(false);
|
|
|
} else {
|
|
|
saturationPlus.setEnabled(true);
|
|
|
}
|
|
|
saturationMinus.setEnabled(true);
|
|
|
- saturation.setText(String.valueOf(this.saturationValue));
|
|
|
+ saturation.setText(String.valueOf(saturationValue));
|
|
|
return;
|
|
|
default:
|
|
|
return;
|
|
@@ -876,7 +876,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
paperSizeInfo.setText(getString(mLookupTable.getStringId(i3)));
|
|
|
mLookupTable.destructor();
|
|
|
paperSize = i3;
|
|
|
- paperType = mPaperSizeType.getID(this.paperSize);
|
|
|
+ paperType = mPaperSizeType.getID(paperSize);
|
|
|
undoFlag = false;
|
|
|
mHandler.sendEmptyMessage(2);
|
|
|
break;
|
|
@@ -897,7 +897,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
paperTypeInfo.setText(getString(mLookupTable.getStringId(i3)));
|
|
|
mLookupTable.destructor();
|
|
|
paperType = i3;
|
|
|
- mPaperSizeType.putID(this.paperSize, paperType);
|
|
|
+ mPaperSizeType.putID(paperSize, paperType);
|
|
|
undoFlag = false;
|
|
|
mHandler.sendEmptyMessage(3);
|
|
|
break;
|
|
@@ -1091,7 +1091,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
int[] iArr2 = duplex_info;
|
|
|
findViewById(R.id.duplex_view).setVisibility(View.GONE);
|
|
|
((LinearLayout) findViewById(R.id.duplex)).setVisibility(View.GONE);
|
|
|
- switch (this.lang) {
|
|
|
+ switch (lang) {
|
|
|
case 2:
|
|
|
case 3:
|
|
|
findViewById(R.id.feed_direction_view).setVisibility(View.VISIBLE);
|
|
@@ -1111,7 +1111,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
private int getPrinterLang() {
|
|
|
int i;
|
|
|
IEpsonService iEpsonService;
|
|
|
- if (!(this.printerLocation == 2 || (iEpsonService = mEpsonService) == null)) {
|
|
|
+ if (!(printerLocation == 2 || (iEpsonService = mEpsonService) == null)) {
|
|
|
try {
|
|
|
i = iEpsonService.getLang();
|
|
|
} catch (RemoteException e) {
|
|
@@ -1215,7 +1215,7 @@ public class CameraPrintSettingActivity extends ActivityIACommon implements View
|
|
|
protected void onResume() {
|
|
|
super.onResume();
|
|
|
EPLog.e("SettingScr", "onResume()");
|
|
|
- if (this.printerId != null && printerLocation == 1 && isRetryAfterConnectSimpleAp) {
|
|
|
+ if (printerId != null && printerLocation == 1 && isRetryAfterConnectSimpleAp) {
|
|
|
undoFlag = false;
|
|
|
if (loadSupportedMediaFile()) {
|
|
|
mHandler.sendEmptyMessage(1);
|