12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957 |
- package epson.print.screen;
- import android.content.ComponentName;
- import android.content.Context;
- import android.content.DialogInterface;
- import android.content.Intent;
- import android.content.ServiceConnection;
- import android.content.SharedPreferences;
- import android.content.res.Configuration;
- import android.os.AsyncTask;
- import android.os.Bundle;
- import android.os.Handler;
- import android.os.IBinder;
- import android.os.RemoteException;
- import android.os.SystemClock;
- import android.view.Menu;
- import android.view.MenuItem;
- import android.view.MotionEvent;
- import android.view.View;
- import android.widget.Button;
- import android.widget.ImageView;
- import android.widget.LinearLayout;
- import android.widget.TextView;
- import com.epson.mobilephone.common.escpr.EscprError;
- import com.epson.mobilephone.common.escpr.MediaInfo;
- import com.epson.mobilephone.common.wifidirect.WiFiDirectManager;
- import java.io.File;
- import epson.common.Constants;
- import epson.common.ExternalFileUtils;
- import epson.common.Utils;
- import epson.print.ActivityIACommon;
- import epson.print.EPPrinterManager;
- import epson.print.MyPrinter;
- import epson.print.R;
- import epson.print.Util.EPLog;
- import epson.print.inkrpln.InkRplnRepository;
- import epson.print.service.EpsonService;
- import epson.print.service.IEpsonService;
- import epson.print.service.IEpsonServiceCallback;
- import epson.print.widgets.CustomTitleAlertDialogBuilder;
- import epson.print.widgets.LayoutEx;
- import epson.print.widgets.LongTapRepeatAdapter;
- public class SettingScr extends ActivityIACommon implements View.OnClickListener {
- private static final String EXTRA_PRINTER = "myprinter";
- private static final String EXTRA_SIMPLEAP = "simpleap";
- private static final int REQUEST_CODE_INFO = 1;
- private static final int REQUEST_CODE_INK_REPLENISH_PROGRESS = 4;
- private static final int REQUEST_CODE_PAGE_RANGE = 2;
- private static final int REQUEST_CODE_PRINTER = 0;
- public static final String TAG = "PrintSetting";
- private final int COLOR_VALUE_MAX = 50;
- private final int COLOR_VALUE_MIN = -50;
- private final int COPIES_MAX = 30;
- private final int COPIES_MIN = 1;
- private final int EPS_ERR_COMM_ERROR = -1100;
- private final int EPS_ERR_NONE = 0;
- private final int EPS_ERR_OPR_FAIL = -1000;
- private final int EPS_ERR_PRINTER_NOT_SET = EscprError.EPS_ERR_PRINTER_NOT_SET;
- private final int GET_ADVANCED = 64;
- private final int GET_COLOR = 6;
- private final int GET_DUPLEX = 32;
- private final int GET_LAYOUT = 3;
- private final int GET_PAPER_SIZE = 1;
- private final int GET_PAPER_SOURCE = 5;
- private final int GET_PAPER_TYPE = 2;
- private final int GET_QUALITY = 4;
- private final int GET_SUPPORTED_MEDIA = 0;
- private final int PROBE_PRINTER = 17;
- private final int SEARCH_BY_ID = 7;
- private final int SEARCH_ERROR = 16;
- private final int SETTING_DONE = 3;
- private final int SHOW_ERROR_DIALOG = 18;
- private TextView apfStateText;
- private String autoConnectSsid = null;
- private TextView brightness;
- private Button brightnessMinus;
- private Button brightnessPlus;
- private int brightnessValue;
- private int color;
- private TextView colorInfo;
- private int[] color_info = null;
- private TextView contrast;
- private Button contrastMinus;
- private Button contrastPlus;
- private int contrastValue;
- private TextView copies;
- private Button copiesMinus;
- private Button copiesPlus;
- private int copiesValue;
- private boolean disablePrintArea = false;
- private int duplex;
- private TextView duplexInfo;
- private int[] duplex_info = null;
- private boolean enableShowPreview = false;
- private int endValue;
- private int feedDirection;
- private TextView feedDirectionInfo;
- private int[] info = null;
- private boolean isDocumentSetting = true;
- boolean isInfoAvai = false;
- Boolean isNotLoading = true;
- private boolean isRetryAfterConnectSimpleAp = false;
- private boolean isTryConnectSimpleAp = false;
- private int lang = 1;
- private int layout;
- private TextView layoutInfo;
- private int[] layout_info = null;
- private IEpsonServiceCallback mCallback = new IEpsonServiceCallback.Stub() {
- public void onGetInkState() throws RemoteException {
- }
- public void onGetStatusState() throws RemoteException {
- }
- public void onNotifyEndJob(int i) throws RemoteException {
- }
- public void onNotifyProgress(int i, int i2) throws RemoteException {
- }
- public void onFindPrinterResult(String str, String str2, String str3, String str4, String str5) throws RemoteException {
- String unused = SettingScr.this.printerIp = str2;
- }
- public void onNotifyContinueable(int i) throws RemoteException {
- if (!SettingScr.this.mFinishRequested) {
- EPLog.i("IEpsonServiceCallback", "onNotifyContinueable code = " + i);
- if (i == 0) {
- SettingScr settingScr = SettingScr.this;
- settingScr.isInfoAvai = true;
- int unused = settingScr.lang = settingScr.getPrinterLang();
- SettingScr settingScr2 = SettingScr.this;
- settingScr2.undoFlag = false;
- settingScr2.mHandler.sendEmptyMessage(0);
- }
- }
- }
- public void onNotifyError(int i, int i2, boolean z) throws RemoteException {
- if (!SettingScr.this.mFinishRequested) {
- EPLog.i("IEpsonServiceCallback", "onNotifyError errorCode = " + i2);
- SettingScr settingScr = SettingScr.this;
- settingScr.isInfoAvai = true;
- int unused = settingScr.lang = settingScr.getPrinterLang();
- SettingScr settingScr2 = SettingScr.this;
- settingScr2.undoFlag = false;
- settingScr2.mHandler.sendEmptyMessage(0);
- }
- }
- };
- private Context mContext = null;
- private ServiceConnection mEpsonConnection = new ServiceConnection() {
- public void onServiceDisconnected(ComponentName componentName) {
- EPLog.v("SettingScr", "onServiceDisconnected");
- try {
- SettingScr.this.mEpsonService.unregisterCallback(SettingScr.this.mCallback);
- } catch (RemoteException e) {
- e.printStackTrace();
- }
- IEpsonService unused = SettingScr.this.mEpsonService = null;
- }
- public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
- IEpsonService unused = SettingScr.this.mEpsonService = IEpsonService.Stub.asInterface(iBinder);
- EPLog.v("SettingScr", "onServiceConnected");
- if (SettingScr.this.mEpsonService != null) {
- try {
- SettingScr.this.mEpsonService.registerCallback(SettingScr.this.mCallback);
- } catch (RemoteException e) {
- e.printStackTrace();
- }
- }
- }
- };
- private IEpsonService mEpsonService = null;
- private volatile boolean mFinishRequested;
- Handler mHandler = new Handler(new Handler.Callback() {
- /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r1v4, resolved type: boolean} */
- /* JADX WARNING: type inference failed for: r1v1 */
- /* JADX WARNING: type inference failed for: r1v5 */
- /* JADX WARNING: type inference failed for: r1v14, types: [int] */
- /* JADX WARNING: type inference failed for: r1v28 */
- /* JADX WARNING: Multi-variable type inference failed */
- /* JADX WARNING: Removed duplicated region for block: B:199:0x0636 */
- /* JADX WARNING: Removed duplicated region for block: B:202:0x0653 */
- /* JADX WARNING: Removed duplicated region for block: B:206:0x0667 */
- /* JADX WARNING: Removed duplicated region for block: B:212:0x0689 */
- /* JADX WARNING: Removed duplicated region for block: B:216:0x06a1 A[LOOP:9: B:214:0x069b->B:216:0x06a1, LOOP_END] */
- /* Code decompiled incorrectly, please refer to instructions dump. */
- public boolean handleMessage(android.os.Message r15) {
- /*
- r14 = this;
- java.lang.String r0 = "SettingScr"
- java.lang.String r1 = "handleMessage call setScreenState = false"
- epson.print.Util.EPLog.i(r0, r1)
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- r1 = 0
- java.lang.Boolean r2 = java.lang.Boolean.valueOf(r1)
- r0.setScreenState(r2)
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- boolean r0 = r0.mFinishRequested
- r2 = 1
- if (r0 == 0) goto L_0x001b
- return r2
- L_0x001b:
- epson.print.screen.PrintSetting r0 = new epson.print.screen.PrintSetting
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- boolean r4 = r3.isDocumentSetting
- if (r4 == 0) goto L_0x0028
- epson.print.screen.PrintSetting$Kind r4 = epson.print.screen.PrintSetting.Kind.document
- goto L_0x002a
- L_0x0028:
- epson.print.screen.PrintSetting$Kind r4 = epson.print.screen.PrintSetting.Kind.photo
- L_0x002a:
- r0.<init>(r3, r4)
- int r3 = r15.what
- r4 = 64
- r5 = 32
- r6 = 3
- r7 = 0
- r8 = 100
- r10 = 2
- if (r3 == r5) goto L_0x0cba
- if (r3 == r4) goto L_0x0b62
- r4 = 6
- r11 = 5
- r12 = 4
- r13 = 8
- switch(r3) {
- case 0: goto L_0x0b45;
- case 1: goto L_0x0996;
- case 2: goto L_0x06e5;
- case 3: goto L_0x04c7;
- case 4: goto L_0x03b6;
- case 5: goto L_0x0243;
- case 6: goto L_0x013c;
- default: goto L_0x0044;
- }
- L_0x0044:
- switch(r3) {
- case 17: goto L_0x00e7;
- case 18: goto L_0x0079;
- default: goto L_0x0047;
- }
- L_0x0047:
- java.lang.String r15 = "SettingScr"
- java.lang.String r0 = "default"
- epson.print.Util.EPLog.i(r15, r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.TextView r15 = r15.printerName
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- r1 = 2131625174(0x7f0e04d6, float:1.8877549E38)
- java.lang.String r0 = r0.getString(r1)
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r0 = 2131231128(0x7f080198, float:1.8078328E38)
- android.view.View r15 = r15.findViewById(r0)
- android.widget.ImageView r15 = (android.widget.ImageView) r15
- r15.setVisibility(r13)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- java.lang.Boolean r0 = java.lang.Boolean.valueOf(r2)
- r15.setScreenState(r0)
- goto L_0x0e25
- L_0x0079:
- int r0 = r15.arg1
- r3 = -1100(0xfffffffffffffbb4, float:NaN)
- if (r0 == r3) goto L_0x00c9
- r3 = -1000(0xfffffffffffffc18, float:NaN)
- if (r0 == r3) goto L_0x00c9
- int r15 = r15.arg1
- java.lang.Integer[] r15 = com.epson.mobilephone.common.escpr.MediaInfo.ErrorTable.getStringId(r15)
- if (r15 != 0) goto L_0x00a5
- java.lang.Integer[] r15 = new java.lang.Integer[r6]
- r0 = 2131624506(0x7f0e023a, float:1.8876194E38)
- java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
- r15[r1] = r0
- r0 = 2131624507(0x7f0e023b, float:1.8876196E38)
- java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
- r15[r2] = r0
- java.lang.Integer r0 = java.lang.Integer.valueOf(r2)
- r15[r10] = r0
- L_0x00a5:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- r3 = r15[r2]
- int r3 = r3.intValue()
- java.lang.CharSequence r3 = r0.getText(r3)
- java.lang.String r3 = r3.toString()
- epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this
- r15 = r15[r1]
- int r15 = r15.intValue()
- java.lang.CharSequence r15 = r4.getText(r15)
- java.lang.String r15 = r15.toString()
- r0.showErrorDialog(r3, r15)
- goto L_0x00e0
- L_0x00c9:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r0 = 2131624778(0x7f0e034a, float:1.8876745E38)
- java.lang.String r15 = r15.getString(r0)
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- r1 = 2131624777(0x7f0e0349, float:1.8876743E38)
- java.lang.String r0 = r0.getString(r1)
- epson.print.screen.SettingScr r1 = epson.print.screen.SettingScr.this
- r1.showErrorDialog(r15, r0)
- L_0x00e0:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r15.resetSettings()
- goto L_0x0e25
- L_0x00e7:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- epson.print.service.IEpsonService r15 = r15.mEpsonService
- r0 = 17
- if (r15 == 0) goto L_0x0133
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
- int r15 = r15.printerLocation // Catch:{ RemoteException -> 0x012d }
- if (r15 == r10) goto L_0x0124
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
- epson.print.service.IEpsonService r15 = r15.mEpsonService // Catch:{ RemoteException -> 0x012d }
- epson.print.screen.SettingScr r1 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
- java.lang.String r1 = r1.printerId // Catch:{ RemoteException -> 0x012d }
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
- java.lang.String r3 = r3.printerIp // Catch:{ RemoteException -> 0x012d }
- epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
- int r4 = r4.printerLocation // Catch:{ RemoteException -> 0x012d }
- if (r4 != r6) goto L_0x0114
- goto L_0x0115
- L_0x0114:
- r10 = 1
- L_0x0115:
- int r15 = r15.searchPrinters(r1, r3, r10) // Catch:{ RemoteException -> 0x012d }
- if (r15 == 0) goto L_0x0e25
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
- android.os.Handler r15 = r15.mHandler // Catch:{ RemoteException -> 0x012d }
- r15.sendEmptyMessageDelayed(r0, r8) // Catch:{ RemoteException -> 0x012d }
- goto L_0x0e25
- L_0x0124:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
- android.os.Handler r15 = r15.mHandler // Catch:{ RemoteException -> 0x012d }
- r15.sendEmptyMessage(r1) // Catch:{ RemoteException -> 0x012d }
- goto L_0x0e25
- L_0x012d:
- r15 = move-exception
- r15.printStackTrace()
- goto L_0x0e25
- L_0x0133:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessageDelayed(r0, r8)
- goto L_0x0e25
- L_0x013c:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- epson.print.service.IEpsonService r15 = r15.mEpsonService
- if (r15 != 0) goto L_0x014d
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessageDelayed(r4, r8)
- goto L_0x0e25
- L_0x014d:
- java.lang.String r15 = "SettingScr"
- java.lang.String r0 = "GET_COLOR"
- epson.print.Util.EPLog.i(r15, r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] unused = r15.color_info = r7
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x018b }
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x018b }
- epson.print.service.IEpsonService r0 = r0.mEpsonService // Catch:{ RemoteException -> 0x018b }
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x018b }
- int r3 = r3.printerLocation // Catch:{ RemoteException -> 0x018b }
- if (r3 != r10) goto L_0x016b
- r3 = 1
- goto L_0x016c
- L_0x016b:
- r3 = 0
- L_0x016c:
- epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x018b }
- boolean r4 = r4.isDocumentSetting // Catch:{ RemoteException -> 0x018b }
- if (r4 == 0) goto L_0x0176
- r4 = 1
- goto L_0x0177
- L_0x0176:
- r4 = 2
- L_0x0177:
- epson.print.screen.SettingScr r6 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x018b }
- int r6 = r6.sizeIndex // Catch:{ RemoteException -> 0x018b }
- epson.print.screen.SettingScr r7 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x018b }
- int r7 = r7.typeIndex // Catch:{ RemoteException -> 0x018b }
- int[] r0 = r0.getColor(r3, r4, r6, r7) // Catch:{ RemoteException -> 0x018b }
- int[] unused = r15.color_info = r0 // Catch:{ RemoteException -> 0x018b }
- goto L_0x0193
- L_0x018b:
- r15 = move-exception
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- r0.undoFlag = r2
- r15.printStackTrace()
- L_0x0193:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.color_info
- if (r15 != 0) goto L_0x019f
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r15.undoFlag = r2
- L_0x019f:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.color_info
- if (r15 == 0) goto L_0x01b0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.color_info
- int r15 = r15.length
- if (r15 > 0) goto L_0x01c7
- L_0x01b0:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = new int[r10]
- int[] unused = r15.color_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.color_info
- r15[r1] = r1
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.color_info
- r15[r2] = r2
- L_0x01c7:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.color_info
- if (r15 == 0) goto L_0x0e25
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.color_info
- int r15 = r15.length
- if (r15 <= 0) goto L_0x0e25
- r15 = 0
- L_0x01d9:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.color_info
- int r0 = r0.length
- if (r15 >= r0) goto L_0x01f6
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.color
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.color_info
- r3 = r3[r15]
- if (r0 != r3) goto L_0x01f3
- goto L_0x01f6
- L_0x01f3:
- int r15 = r15 + 1
- goto L_0x01d9
- L_0x01f6:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.color_info
- int r0 = r0.length
- if (r15 < r0) goto L_0x020a
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.color_info
- r0 = r0[r1]
- int unused = r15.color = r0
- L_0x020a:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$Color r0 = new com.epson.mobilephone.common.escpr.MediaInfo$Color
- r0.<init>()
- com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.TextView r15 = r15.colorInfo
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r1 = r0.mLookupTable
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.color
- int r1 = r1.getStringId(r3)
- java.lang.String r0 = r0.getString(r1)
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
- r15.destructor()
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessage(r5)
- goto L_0x0e25
- L_0x0243:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- epson.print.service.IEpsonService r15 = r15.mEpsonService
- if (r15 != 0) goto L_0x0254
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessageDelayed(r11, r8)
- goto L_0x0e25
- L_0x0254:
- java.lang.String r15 = "SettingScr"
- java.lang.String r0 = "GET_PAPER_SOURCE"
- epson.print.Util.EPLog.i(r15, r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] unused = r15.paper_source_info = r7
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
- epson.print.service.IEpsonService r0 = r0.mEpsonService // Catch:{ RemoteException -> 0x02e2 }
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
- int r3 = r3.sizeIndex // Catch:{ RemoteException -> 0x02e2 }
- epson.print.screen.SettingScr r5 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
- int r5 = r5.typeIndex // Catch:{ RemoteException -> 0x02e2 }
- epson.print.screen.SettingScr r6 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
- int r6 = r6.printerLocation // Catch:{ RemoteException -> 0x02e2 }
- int[] r0 = r0.getPaperSource(r3, r5, r6) // Catch:{ RemoteException -> 0x02e2 }
- int[] unused = r15.paper_source_info = r0 // Catch:{ RemoteException -> 0x02e2 }
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
- int[] r15 = r15.paper_source_info // Catch:{ RemoteException -> 0x02e2 }
- if (r15 == 0) goto L_0x02ea
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
- boolean r15 = r15.isDocumentSetting // Catch:{ RemoteException -> 0x02e2 }
- if (r15 == 0) goto L_0x02ea
- java.util.ArrayList r15 = new java.util.ArrayList // Catch:{ RemoteException -> 0x02e2 }
- r15.<init>() // Catch:{ RemoteException -> 0x02e2 }
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
- int[] r0 = r0.paper_source_info // Catch:{ RemoteException -> 0x02e2 }
- int r3 = r0.length // Catch:{ RemoteException -> 0x02e2 }
- r5 = 0
- L_0x029e:
- if (r5 >= r3) goto L_0x02af
- r6 = r0[r5] // Catch:{ RemoteException -> 0x02e2 }
- if (r6 != r13) goto L_0x02a5
- goto L_0x02ac
- L_0x02a5:
- java.lang.Integer r6 = java.lang.Integer.valueOf(r6) // Catch:{ RemoteException -> 0x02e2 }
- r15.add(r6) // Catch:{ RemoteException -> 0x02e2 }
- L_0x02ac:
- int r5 = r5 + 1
- goto L_0x029e
- L_0x02af:
- int r0 = r15.size() // Catch:{ RemoteException -> 0x02e2 }
- if (r0 <= 0) goto L_0x02dc
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
- int r3 = r15.size() // Catch:{ RemoteException -> 0x02e2 }
- int[] r3 = new int[r3] // Catch:{ RemoteException -> 0x02e2 }
- int[] unused = r0.paper_source_info = r3 // Catch:{ RemoteException -> 0x02e2 }
- r0 = 0
- L_0x02c1:
- int r3 = r15.size() // Catch:{ RemoteException -> 0x02e2 }
- if (r0 >= r3) goto L_0x02ea
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
- int[] r3 = r3.paper_source_info // Catch:{ RemoteException -> 0x02e2 }
- java.lang.Object r5 = r15.get(r0) // Catch:{ RemoteException -> 0x02e2 }
- java.lang.Integer r5 = (java.lang.Integer) r5 // Catch:{ RemoteException -> 0x02e2 }
- int r5 = r5.intValue() // Catch:{ RemoteException -> 0x02e2 }
- r3[r0] = r5 // Catch:{ RemoteException -> 0x02e2 }
- int r0 = r0 + 1
- goto L_0x02c1
- L_0x02dc:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
- int[] unused = r15.paper_source_info = r7 // Catch:{ RemoteException -> 0x02e2 }
- goto L_0x02ea
- L_0x02e2:
- r15 = move-exception
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- r0.undoFlag = r2
- r15.printStackTrace()
- L_0x02ea:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.paper_source_info
- if (r15 != 0) goto L_0x0305
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r15.undoFlag = r2
- int[] r0 = new int[r2]
- int[] unused = r15.paper_source_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.paper_source_info
- r0 = 128(0x80, float:1.794E-43)
- r15[r1] = r0
- L_0x0305:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.paper_source_info
- if (r15 == 0) goto L_0x0e25
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.paper_source_info
- int r15 = r15.length
- if (r15 <= 0) goto L_0x0e25
- r15 = 0
- L_0x0317:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.paper_source_info
- int r0 = r0.length
- if (r15 >= r0) goto L_0x0334
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.paperSource
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.paper_source_info
- r3 = r3[r15]
- if (r0 != r3) goto L_0x0331
- goto L_0x0334
- L_0x0331:
- int r15 = r15 + 1
- goto L_0x0317
- L_0x0334:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.paper_source_info
- int r0 = r0.length
- if (r15 < r0) goto L_0x0348
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.paper_source_info
- r0 = r0[r1]
- int unused = r15.paperSource = r0
- L_0x0348:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int unused = r15.paperSource
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.paper_source_info
- if (r15 == 0) goto L_0x036f
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.paper_source_info
- int r15 = r15.length
- if (r15 > r2) goto L_0x036f
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r0 = 2131231313(0x7f080251, float:1.8078703E38)
- android.view.View r15 = r15.findViewById(r0)
- android.widget.ImageView r15 = (android.widget.ImageView) r15
- r15.setVisibility(r13)
- r15 = 128(0x80, float:1.794E-43)
- goto L_0x0383
- L_0x036f:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r0 = 2131231313(0x7f080251, float:1.8078703E38)
- android.view.View r15 = r15.findViewById(r0)
- android.widget.ImageView r15 = (android.widget.ImageView) r15
- r15.setVisibility(r1)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.paperSource
- L_0x0383:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$PaperSource r1 = new com.epson.mobilephone.common.escpr.MediaInfo$PaperSource
- r1.<init>()
- com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r0.mLookupTable = r1
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- android.widget.TextView r0 = r0.paperSourceInfo
- epson.print.screen.SettingScr r1 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r3 = r1.mLookupTable
- int r15 = r3.getStringId(r15)
- java.lang.String r15 = r1.getString(r15)
- r0.setText(r15)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
- r15.destructor()
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessage(r4)
- goto L_0x0e25
- L_0x03b6:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- epson.print.service.IEpsonService r15 = r15.mEpsonService
- if (r15 != 0) goto L_0x03c7
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessageDelayed(r12, r8)
- goto L_0x0e25
- L_0x03c7:
- java.lang.String r15 = "SettingScr"
- java.lang.String r0 = "GET_QUALITY"
- epson.print.Util.EPLog.i(r15, r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] unused = r15.info = r7
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x03ef }
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x03ef }
- epson.print.service.IEpsonService r0 = r0.mEpsonService // Catch:{ RemoteException -> 0x03ef }
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x03ef }
- int r3 = r3.sizeIndex // Catch:{ RemoteException -> 0x03ef }
- epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x03ef }
- int r4 = r4.typeIndex // Catch:{ RemoteException -> 0x03ef }
- int[] r0 = r0.getQuality(r3, r4) // Catch:{ RemoteException -> 0x03ef }
- int[] unused = r15.info = r0 // Catch:{ RemoteException -> 0x03ef }
- goto L_0x03f7
- L_0x03ef:
- r15 = move-exception
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- r0.undoFlag = r2
- r15.printStackTrace()
- L_0x03f7:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- if (r15 != 0) goto L_0x0410
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r15.undoFlag = r2
- int[] r0 = new int[r2]
- int[] unused = r15.info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- r15[r1] = r10
- L_0x0410:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- if (r15 == 0) goto L_0x0e25
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- int r15 = r15.length
- if (r15 <= 0) goto L_0x0e25
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- int r15 = r15.length
- if (r15 > r2) goto L_0x0439
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r0 = 2131231394(0x7f0802a2, float:1.8078868E38)
- android.view.View r15 = r15.findViewById(r0)
- android.widget.ImageView r15 = (android.widget.ImageView) r15
- r15.setVisibility(r13)
- goto L_0x0447
- L_0x0439:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r0 = 2131231394(0x7f0802a2, float:1.8078868E38)
- android.view.View r15 = r15.findViewById(r0)
- android.widget.ImageView r15 = (android.widget.ImageView) r15
- r15.setVisibility(r1)
- L_0x0447:
- r15 = 0
- L_0x0448:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- int r0 = r0.length
- if (r15 >= r0) goto L_0x0465
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.quality
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- r3 = r3[r15]
- if (r0 != r3) goto L_0x0462
- goto L_0x0465
- L_0x0462:
- int r15 = r15 + 1
- goto L_0x0448
- L_0x0465:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- int r0 = r0.length
- if (r15 < r0) goto L_0x0479
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.info
- r0 = r0[r1]
- int unused = r15.quality = r0
- L_0x0479:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.info
- int r0 = r0.length
- int[] r0 = new int[r0]
- int[] unused = r15.quality_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.info
- int[] unused = r15.quality_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$Quality r0 = new com.epson.mobilephone.common.escpr.MediaInfo$Quality
- r0.<init>()
- com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.TextView r15 = r15.qualityInfo
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r1 = r0.mLookupTable
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.quality
- int r1 = r1.getStringId(r3)
- java.lang.String r0 = r0.getString(r1)
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
- r15.destructor()
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessage(r11)
- goto L_0x0e25
- L_0x04c7:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- epson.print.service.IEpsonService r15 = r15.mEpsonService
- if (r15 != 0) goto L_0x04d8
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessageDelayed(r6, r8)
- goto L_0x0e25
- L_0x04d8:
- java.lang.String r15 = "SettingScr"
- java.lang.String r0 = "GET_LAYOUT"
- epson.print.Util.EPLog.i(r15, r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] unused = r15.info = r7
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0500 }
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0500 }
- epson.print.service.IEpsonService r0 = r0.mEpsonService // Catch:{ RemoteException -> 0x0500 }
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0500 }
- int r3 = r3.sizeIndex // Catch:{ RemoteException -> 0x0500 }
- epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0500 }
- int r4 = r4.typeIndex // Catch:{ RemoteException -> 0x0500 }
- int[] r0 = r0.getLayout(r3, r4) // Catch:{ RemoteException -> 0x0500 }
- int[] unused = r15.info = r0 // Catch:{ RemoteException -> 0x0500 }
- goto L_0x0508
- L_0x0500:
- r15 = move-exception
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- r0.undoFlag = r2
- r15.printStackTrace()
- L_0x0508:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- boolean r15 = r15.isDocumentSetting
- if (r15 != r2) goto L_0x0520
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = new int[r2]
- int[] unused = r15.info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- r15[r1] = r10
- goto L_0x053c
- L_0x0520:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- if (r15 != 0) goto L_0x053c
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r15.undoFlag = r2
- int[] r15 = r15.info
- if (r15 != 0) goto L_0x053c
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = new int[r10]
- r0 = {2, 1} // fill-array
- int[] unused = r15.info = r0
- L_0x053c:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- int r15 = java.util.Arrays.binarySearch(r15, r10)
- if (r15 < 0) goto L_0x05ba
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.printerLocation
- if (r15 == r10) goto L_0x05ba
- java.util.ArrayList r15 = new java.util.ArrayList
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- int r0 = r0.length
- r15.<init>(r0)
- r0 = 0
- L_0x055d:
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- int r3 = r3.length
- if (r0 >= r3) goto L_0x0578
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- r3 = r3[r0]
- java.lang.Integer r3 = java.lang.Integer.valueOf(r3)
- r15.add(r3)
- int r0 = r0 + 1
- goto L_0x055d
- L_0x0578:
- r0 = 65536(0x10000, float:9.18355E-41)
- java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
- r15.add(r0)
- r0 = 131072(0x20000, float:1.83671E-40)
- java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
- r15.add(r0)
- r0 = 262144(0x40000, float:3.67342E-40)
- java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
- r15.add(r0)
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r3 = r15.size()
- int[] r3 = new int[r3]
- int[] unused = r0.info = r3
- r0 = 0
- L_0x059f:
- int r3 = r15.size()
- if (r0 >= r3) goto L_0x05ba
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- java.lang.Object r4 = r15.get(r0)
- java.lang.Integer r4 = (java.lang.Integer) r4
- int r4 = r4.intValue()
- r3[r0] = r4
- int r0 = r0 + 1
- goto L_0x059f
- L_0x05ba:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- if (r15 == 0) goto L_0x0e25
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- int r15 = r15.length
- if (r15 <= 0) goto L_0x0e25
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- int r15 = r15.length
- if (r15 > r2) goto L_0x05e3
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r0 = 2131231162(0x7f0801ba, float:1.8078397E38)
- android.view.View r15 = r15.findViewById(r0)
- android.widget.ImageView r15 = (android.widget.ImageView) r15
- r15.setVisibility(r13)
- goto L_0x05f1
- L_0x05e3:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r0 = 2131231162(0x7f0801ba, float:1.8078397E38)
- android.view.View r15 = r15.findViewById(r0)
- android.widget.ImageView r15 = (android.widget.ImageView) r15
- r15.setVisibility(r1)
- L_0x05f1:
- r15 = 0
- L_0x05f2:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- int r0 = r0.length
- if (r15 >= r0) goto L_0x062d
- java.lang.String r0 = "layout info"
- java.lang.StringBuilder r3 = new java.lang.StringBuilder
- r3.<init>()
- java.lang.String r4 = "layout info "
- r3.append(r4)
- epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this
- int[] r4 = r4.info
- r4 = r4[r15]
- r3.append(r4)
- java.lang.String r3 = r3.toString()
- epson.print.Util.EPLog.v(r0, r3)
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.layout
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- r3 = r3[r15]
- if (r0 != r3) goto L_0x062a
- goto L_0x062d
- L_0x062a:
- int r15 = r15 + 1
- goto L_0x05f2
- L_0x062d:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- int r0 = r0.length
- if (r15 < r0) goto L_0x0641
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.info
- r0 = r0[r1]
- int unused = r15.layout = r0
- L_0x0641:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- epson.print.widgets.LayoutEx r0 = new epson.print.widgets.LayoutEx
- r0.<init>()
- com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.layout
- if (r15 != r13) goto L_0x0658
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int unused = r15.layout = r10
- L_0x0658:
- java.util.ArrayList r15 = new java.util.ArrayList
- r15.<init>()
- r0 = 0
- L_0x065e:
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- int r3 = r3.length
- if (r0 >= r3) goto L_0x0683
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- r3 = r3[r0]
- if (r3 == r13) goto L_0x0680
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- r3 = r3[r0]
- java.lang.Integer r3 = java.lang.Integer.valueOf(r3)
- r15.add(r3)
- L_0x0680:
- int r0 = r0 + 1
- goto L_0x065e
- L_0x0683:
- int r0 = r15.size()
- if (r0 != 0) goto L_0x0690
- java.lang.Integer r0 = java.lang.Integer.valueOf(r10)
- r15.add(r0)
- L_0x0690:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r3 = r15.size()
- int[] r3 = new int[r3]
- int[] unused = r0.layout_info = r3
- L_0x069b:
- int r0 = r15.size()
- if (r1 >= r0) goto L_0x06b6
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.layout_info
- java.lang.Object r3 = r15.get(r1)
- java.lang.Integer r3 = (java.lang.Integer) r3
- int r3 = r3.intValue()
- r0[r1] = r3
- int r1 = r1 + 1
- goto L_0x069b
- L_0x06b6:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.TextView r15 = r15.layoutInfo
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r1 = r0.mLookupTable
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.layout
- int r1 = r1.getStringId(r3)
- java.lang.String r0 = r0.getString(r1)
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
- r15.destructor()
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessage(r12)
- goto L_0x0e25
- L_0x06e5:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- epson.print.service.IEpsonService r15 = r15.mEpsonService
- if (r15 != 0) goto L_0x06f6
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessageDelayed(r10, r8)
- goto L_0x0e25
- L_0x06f6:
- java.lang.String r15 = "SettingScr"
- java.lang.String r3 = "GET_PAPER_TYPE"
- epson.print.Util.EPLog.i(r15, r3)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] unused = r15.info = r7
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
- epson.print.service.IEpsonService r3 = r3.mEpsonService // Catch:{ RemoteException -> 0x077e }
- epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
- int r4 = r4.sizeIndex // Catch:{ RemoteException -> 0x077e }
- int[] r3 = r3.getPaperType(r4) // Catch:{ RemoteException -> 0x077e }
- int[] unused = r15.info = r3 // Catch:{ RemoteException -> 0x077e }
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
- int[] r15 = r15.info // Catch:{ RemoteException -> 0x077e }
- if (r15 == 0) goto L_0x0786
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
- boolean r15 = r15.isDocumentSetting // Catch:{ RemoteException -> 0x077e }
- if (r15 == 0) goto L_0x0786
- java.util.ArrayList r15 = new java.util.ArrayList // Catch:{ RemoteException -> 0x077e }
- r15.<init>() // Catch:{ RemoteException -> 0x077e }
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
- int[] r3 = r3.info // Catch:{ RemoteException -> 0x077e }
- int r4 = r3.length // Catch:{ RemoteException -> 0x077e }
- r5 = 0
- L_0x0734:
- if (r5 >= r4) goto L_0x074b
- r8 = r3[r5] // Catch:{ RemoteException -> 0x077e }
- r9 = 91
- if (r8 < r9) goto L_0x0741
- r9 = 93
- if (r8 > r9) goto L_0x0741
- goto L_0x0748
- L_0x0741:
- java.lang.Integer r8 = java.lang.Integer.valueOf(r8) // Catch:{ RemoteException -> 0x077e }
- r15.add(r8) // Catch:{ RemoteException -> 0x077e }
- L_0x0748:
- int r5 = r5 + 1
- goto L_0x0734
- L_0x074b:
- int r3 = r15.size() // Catch:{ RemoteException -> 0x077e }
- if (r3 <= 0) goto L_0x0778
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
- int r4 = r15.size() // Catch:{ RemoteException -> 0x077e }
- int[] r4 = new int[r4] // Catch:{ RemoteException -> 0x077e }
- int[] unused = r3.info = r4 // Catch:{ RemoteException -> 0x077e }
- r3 = 0
- L_0x075d:
- int r4 = r15.size() // Catch:{ RemoteException -> 0x077e }
- if (r3 >= r4) goto L_0x0786
- epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
- int[] r4 = r4.info // Catch:{ RemoteException -> 0x077e }
- java.lang.Object r5 = r15.get(r3) // Catch:{ RemoteException -> 0x077e }
- java.lang.Integer r5 = (java.lang.Integer) r5 // Catch:{ RemoteException -> 0x077e }
- int r5 = r5.intValue() // Catch:{ RemoteException -> 0x077e }
- r4[r3] = r5 // Catch:{ RemoteException -> 0x077e }
- int r3 = r3 + 1
- goto L_0x075d
- L_0x0778:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
- int[] unused = r15.info = r7 // Catch:{ RemoteException -> 0x077e }
- goto L_0x0786
- L_0x077e:
- r15 = move-exception
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- r3.undoFlag = r2
- r15.printStackTrace()
- L_0x0786:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- if (r15 != 0) goto L_0x07af
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r15.undoFlag = r2
- int[] r15 = r15.info
- if (r15 != 0) goto L_0x07af
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r3 = new int[r10]
- com.epson.mobilephone.common.PrintingLib.define.Constants$MediaName r4 = com.epson.mobilephone.common.PrintingLib.define.Constants.MediaName.EPS_MTID_PLAIN
- int r4 = r4.getCode()
- r3[r1] = r4
- com.epson.mobilephone.common.PrintingLib.define.Constants$MediaName r4 = com.epson.mobilephone.common.PrintingLib.define.Constants.MediaName.EPS_MTID_PGPHOTO
- int r4 = r4.getCode()
- r3[r2] = r4
- int[] unused = r15.info = r3
- L_0x07af:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- if (r15 == 0) goto L_0x0e25
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- int r15 = r15.length
- if (r15 <= 0) goto L_0x0e25
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- int r15 = r15.length
- if (r15 > r2) goto L_0x07d8
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r3 = 2131231316(0x7f080254, float:1.807871E38)
- android.view.View r15 = r15.findViewById(r3)
- android.widget.ImageView r15 = (android.widget.ImageView) r15
- r15.setVisibility(r13)
- goto L_0x07e6
- L_0x07d8:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r3 = 2131231316(0x7f080254, float:1.807871E38)
- android.view.View r15 = r15.findViewById(r3)
- android.widget.ImageView r15 = (android.widget.ImageView) r15
- r15.setVisibility(r1)
- L_0x07e6:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int unused = r15.typeIndex = r1
- L_0x07eb:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.typeIndex
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- int r3 = r3.length
- if (r15 >= r3) goto L_0x0817
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.paperType
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this
- int r4 = r4.typeIndex
- r3 = r3[r4]
- if (r15 != r3) goto L_0x0811
- goto L_0x0817
- L_0x0811:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- epson.print.screen.SettingScr.access$1708(r15)
- goto L_0x07eb
- L_0x0817:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.typeIndex
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- int r3 = r3.length
- if (r15 < r3) goto L_0x085a
- int r15 = r0.getDefaultPaperType()
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int unused = r0.typeIndex = r1
- L_0x082f:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.typeIndex
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- int r3 = r3.length
- if (r0 >= r3) goto L_0x085a
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.typeIndex
- r0 = r0[r3]
- if (r15 != r0) goto L_0x0854
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int unused = r0.paperType = r15
- goto L_0x085a
- L_0x0854:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- epson.print.screen.SettingScr.access$1708(r0)
- goto L_0x082f
- L_0x085a:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.typeIndex
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- int r0 = r0.length
- if (r15 < r0) goto L_0x0923
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- boolean r15 = r15.isDocumentSetting
- if (r15 != 0) goto L_0x08a8
- com.epson.mobilephone.common.PrintingLib.define.Constants$MediaName r15 = com.epson.mobilephone.common.PrintingLib.define.Constants.MediaName.EPS_MTID_MATTE
- int r15 = r15.getCode()
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int unused = r0.typeIndex = r1
- L_0x087c:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.typeIndex
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- int r3 = r3.length
- if (r0 >= r3) goto L_0x0923
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.typeIndex
- r0 = r0[r3]
- if (r15 != r0) goto L_0x08a2
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int unused = r0.paperType = r15
- goto L_0x0923
- L_0x08a2:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- epson.print.screen.SettingScr.access$1708(r0)
- goto L_0x087c
- L_0x08a8:
- com.epson.mobilephone.common.PrintingLib.define.Constants$MediaName r15 = com.epson.mobilephone.common.PrintingLib.define.Constants.MediaName.EPS_MTID_PLAIN1
- int r15 = r15.getCode()
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int unused = r0.typeIndex = r1
- L_0x08b3:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.typeIndex
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- int r3 = r3.length
- if (r0 >= r3) goto L_0x08de
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.typeIndex
- r0 = r0[r3]
- if (r15 != r0) goto L_0x08d8
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int unused = r0.paperType = r15
- goto L_0x08de
- L_0x08d8:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- epson.print.screen.SettingScr.access$1708(r0)
- goto L_0x08b3
- L_0x08de:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.typeIndex
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- int r0 = r0.length
- if (r15 < r0) goto L_0x0923
- com.epson.mobilephone.common.PrintingLib.define.Constants$MediaName r15 = com.epson.mobilephone.common.PrintingLib.define.Constants.MediaName.EPS_MTID_AUTO_PLAIN
- int r15 = r15.getCode()
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int unused = r0.typeIndex = r1
- L_0x08f8:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.typeIndex
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- int r3 = r3.length
- if (r0 >= r3) goto L_0x0923
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.typeIndex
- r0 = r0[r3]
- if (r15 != r0) goto L_0x091d
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int unused = r0.paperType = r15
- goto L_0x0923
- L_0x091d:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- epson.print.screen.SettingScr.access$1708(r0)
- goto L_0x08f8
- L_0x0923:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.typeIndex
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- int r0 = r0.length
- if (r15 < r0) goto L_0x0948
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int unused = r15.typeIndex = r1
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.info
- epson.print.screen.SettingScr r1 = epson.print.screen.SettingScr.this
- int r1 = r1.typeIndex
- r0 = r0[r1]
- int unused = r15.paperType = r0
- L_0x0948:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.info
- int r0 = r0.length
- int[] r0 = new int[r0]
- int[] unused = r15.paper_type_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.info
- int[] unused = r15.paper_type_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$PaperType r0 = new com.epson.mobilephone.common.escpr.MediaInfo$PaperType
- r0.<init>()
- com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.TextView r15 = r15.paperTypeInfo
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r1 = r0.mLookupTable
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.paperType
- int r1 = r1.getStringId(r3)
- java.lang.String r0 = r0.getString(r1)
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
- r15.destructor()
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessage(r6)
- goto L_0x0e25
- L_0x0996:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- epson.print.service.IEpsonService r15 = r15.mEpsonService
- if (r15 != 0) goto L_0x09a7
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessageDelayed(r2, r8)
- goto L_0x0e25
- L_0x09a7:
- java.lang.String r15 = "SettingScr"
- java.lang.String r3 = "GET_PAPER_SIZE"
- epson.print.Util.EPLog.i(r15, r3)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] unused = r15.info = r7
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x09c3 }
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x09c3 }
- epson.print.service.IEpsonService r3 = r3.mEpsonService // Catch:{ RemoteException -> 0x09c3 }
- int[] r3 = r3.getPaperSize() // Catch:{ RemoteException -> 0x09c3 }
- int[] unused = r15.info = r3 // Catch:{ RemoteException -> 0x09c3 }
- goto L_0x09cb
- L_0x09c3:
- r15 = move-exception
- r15.printStackTrace()
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r15.undoFlag = r2
- L_0x09cb:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- if (r15 != 0) goto L_0x0a27
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r15.undoFlag = r2
- r3 = 9
- int[] r3 = new int[r3]
- com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_A4
- int r5 = r5.getCode()
- r3[r1] = r5
- com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_A3
- int r5 = r5.getCode()
- r3[r2] = r5
- com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_B4
- int r5 = r5.getCode()
- r3[r10] = r5
- com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_B5
- int r5 = r5.getCode()
- r3[r6] = r5
- com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_LETTER
- int r5 = r5.getCode()
- r3[r12] = r5
- com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_LEGAL
- int r5 = r5.getCode()
- r3[r11] = r5
- com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_POSTCARD
- int r5 = r5.getCode()
- r3[r4] = r5
- r4 = 7
- com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_4X6
- int r5 = r5.getCode()
- r3[r4] = r5
- com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r4 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_L
- int r4 = r4.getCode()
- r3[r13] = r4
- int[] unused = r15.info = r3
- L_0x0a27:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- if (r15 == 0) goto L_0x0e25
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- int r15 = r15.length
- if (r15 <= 0) goto L_0x0e25
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.info
- int r15 = r15.length
- if (r15 > r2) goto L_0x0a50
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r3 = 2131231309(0x7f08024d, float:1.8078695E38)
- android.view.View r15 = r15.findViewById(r3)
- android.widget.ImageView r15 = (android.widget.ImageView) r15
- r15.setVisibility(r13)
- goto L_0x0a5e
- L_0x0a50:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r3 = 2131231309(0x7f08024d, float:1.8078695E38)
- android.view.View r15 = r15.findViewById(r3)
- android.widget.ImageView r15 = (android.widget.ImageView) r15
- r15.setVisibility(r1)
- L_0x0a5e:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int unused = r15.sizeIndex = r1
- L_0x0a63:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.sizeIndex
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- int r3 = r3.length
- if (r15 >= r3) goto L_0x0a8f
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.paperSize
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this
- int r4 = r4.sizeIndex
- r3 = r3[r4]
- if (r15 != r3) goto L_0x0a89
- goto L_0x0a8f
- L_0x0a89:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- epson.print.screen.SettingScr.access$1208(r15)
- goto L_0x0a63
- L_0x0a8f:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.sizeIndex
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- int r3 = r3.length
- if (r15 < r3) goto L_0x0ad2
- int r15 = r0.getDefaultPaperSize()
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int unused = r0.sizeIndex = r1
- L_0x0aa7:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.sizeIndex
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.info
- int r3 = r3.length
- if (r0 >= r3) goto L_0x0ad2
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.sizeIndex
- r0 = r0[r3]
- if (r15 != r0) goto L_0x0acc
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int unused = r0.paperSize = r15
- goto L_0x0ad2
- L_0x0acc:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- epson.print.screen.SettingScr.access$1208(r0)
- goto L_0x0aa7
- L_0x0ad2:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int r15 = r15.sizeIndex
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.info
- int r0 = r0.length
- if (r15 < r0) goto L_0x0af7
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int unused = r15.sizeIndex = r1
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.info
- epson.print.screen.SettingScr r1 = epson.print.screen.SettingScr.this
- int r1 = r1.sizeIndex
- r0 = r0[r1]
- int unused = r15.paperSize = r0
- L_0x0af7:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.info
- int r0 = r0.length
- int[] r0 = new int[r0]
- int[] unused = r15.paper_size_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.info
- int[] unused = r15.paper_size_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$PaperSize r0 = new com.epson.mobilephone.common.escpr.MediaInfo$PaperSize
- r0.<init>()
- com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.TextView r15 = r15.paperSizeInfo
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r1 = r0.mLookupTable
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.paperSize
- int r1 = r1.getStringId(r3)
- java.lang.String r0 = r0.getString(r1)
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
- r15.destructor()
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessage(r10)
- goto L_0x0e25
- L_0x0b45:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- epson.print.service.IEpsonService r15 = r15.mEpsonService
- if (r15 == 0) goto L_0x0b59
- epson.print.screen.SettingScr$3$1 r15 = new epson.print.screen.SettingScr$3$1
- r15.<init>()
- java.lang.Void[] r0 = new java.lang.Void[r1]
- r15.execute(r0)
- goto L_0x0e25
- L_0x0b59:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessageDelayed(r1, r8)
- goto L_0x0e25
- L_0x0b62:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r0 = 2131231301(0x7f080245, float:1.807868E38)
- android.view.View r15 = r15.findViewById(r0)
- android.widget.TextView r15 = (android.widget.TextView) r15
- java.lang.StringBuilder r0 = new java.lang.StringBuilder
- r0.<init>()
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.startValue
- r0.append(r3)
- java.lang.String r3 = ".."
- r0.append(r3)
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.endValue
- r0.append(r3)
- java.lang.String r0 = r0.toString()
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$FeedDirection r0 = new com.epson.mobilephone.common.escpr.MediaInfo$FeedDirection
- r0.<init>()
- com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.TextView r15 = r15.feedDirectionInfo
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r3 = r0.mLookupTable
- epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this
- int r4 = r4.feedDirection
- int r3 = r3.getStringId(r4)
- java.lang.String r0 = r0.getString(r3)
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
- r15.destructor()
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$PrintDate r0 = new com.epson.mobilephone.common.escpr.MediaInfo$PrintDate
- r0.<init>()
- com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.TextView r15 = r15.printDateInfo
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r3 = r0.mLookupTable
- epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this
- int r4 = r4.printdate
- int r3 = r3.getStringId(r4)
- java.lang.String r0 = r0.getString(r3)
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
- r15.destructor()
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.TextView r15 = r15.brightness
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.brightnessValue
- java.lang.String r0 = java.lang.String.valueOf(r0)
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.Button r15 = r15.brightnessMinus
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.brightnessValue
- r3 = -50
- if (r0 == r3) goto L_0x0c15
- r0 = 1
- goto L_0x0c16
- L_0x0c15:
- r0 = 0
- L_0x0c16:
- r15.setEnabled(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.Button r15 = r15.brightnessPlus
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.brightnessValue
- r4 = 50
- if (r0 == r4) goto L_0x0c2b
- r0 = 1
- goto L_0x0c2c
- L_0x0c2b:
- r0 = 0
- L_0x0c2c:
- r15.setEnabled(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.TextView r15 = r15.contrast
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.contrastValue
- java.lang.String r0 = java.lang.String.valueOf(r0)
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.Button r15 = r15.contrastMinus
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.contrastValue
- if (r0 == r3) goto L_0x0c52
- r0 = 1
- goto L_0x0c53
- L_0x0c52:
- r0 = 0
- L_0x0c53:
- r15.setEnabled(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.Button r15 = r15.contrastPlus
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.contrastValue
- if (r0 == r4) goto L_0x0c66
- r0 = 1
- goto L_0x0c67
- L_0x0c66:
- r0 = 0
- L_0x0c67:
- r15.setEnabled(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.TextView r15 = r15.saturation
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.saturationValue
- java.lang.String r0 = java.lang.String.valueOf(r0)
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.Button r15 = r15.saturationMinus
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.saturationValue
- if (r0 == r3) goto L_0x0c8d
- r0 = 1
- goto L_0x0c8e
- L_0x0c8d:
- r0 = 0
- L_0x0c8e:
- r15.setEnabled(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.Button r15 = r15.saturationPlus
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.saturationValue
- if (r0 == r4) goto L_0x0ca0
- r1 = 1
- L_0x0ca0:
- r15.setEnabled(r1)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- r15.updateSettingView()
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- java.lang.Boolean r0 = java.lang.Boolean.valueOf(r2)
- r15.setScreenState(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- boolean r0 = r15.undoFlag
- boolean unused = r15.updateSupportedMediaFile(r0)
- goto L_0x0e25
- L_0x0cba:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- epson.print.service.IEpsonService r15 = r15.mEpsonService
- if (r15 != 0) goto L_0x0ccb
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessageDelayed(r5, r8)
- goto L_0x0e25
- L_0x0ccb:
- java.lang.String r15 = "SettingScr"
- java.lang.String r0 = "GET_DUPLEX"
- epson.print.Util.EPLog.i(r15, r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] unused = r15.duplex_info = r7
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0cee }
- epson.print.service.IEpsonService r15 = r15.mEpsonService // Catch:{ RemoteException -> 0x0cee }
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0cee }
- int r0 = r0.sizeIndex // Catch:{ RemoteException -> 0x0cee }
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0cee }
- int r3 = r3.typeIndex // Catch:{ RemoteException -> 0x0cee }
- int r15 = r15.getDuplex(r0, r3) // Catch:{ RemoteException -> 0x0cee }
- goto L_0x0cf7
- L_0x0cee:
- r15 = move-exception
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- r0.undoFlag = r2
- r15.printStackTrace()
- r15 = 0
- L_0x0cf7:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- java.lang.String r0 = r0.printerId
- if (r0 != 0) goto L_0x0d2e
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.paperType
- com.epson.mobilephone.common.PrintingLib.define.Constants$MediaName r3 = com.epson.mobilephone.common.PrintingLib.define.Constants.MediaName.EPS_MTID_PLAIN
- int r3 = r3.getCode()
- if (r0 != r3) goto L_0x0d2e
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = new int[r6]
- int[] unused = r15.duplex_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- r15[r1] = r1
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- r15[r2] = r2
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- r15[r10] = r10
- goto L_0x0da4
- L_0x0d2e:
- if (r15 == 0) goto L_0x0d95
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.paperSource
- r3 = 16
- if (r0 == r3) goto L_0x0d95
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.layout
- if (r0 != r2) goto L_0x0d75
- r15 = r15 & r10
- if (r15 == 0) goto L_0x0d65
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = new int[r6]
- int[] unused = r15.duplex_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- r15[r1] = r1
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- r15[r2] = r2
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- r15[r10] = r10
- goto L_0x0da4
- L_0x0d65:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = new int[r2]
- int[] unused = r15.duplex_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- r15[r1] = r1
- goto L_0x0da4
- L_0x0d75:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = new int[r6]
- int[] unused = r15.duplex_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- r15[r1] = r1
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- r15[r2] = r2
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- r15[r10] = r10
- goto L_0x0da4
- L_0x0d95:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = new int[r2]
- int[] unused = r15.duplex_info = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- r15[r1] = r1
- L_0x0da4:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- if (r15 == 0) goto L_0x0e17
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r15 = r15.duplex_info
- int r15 = r15.length
- if (r15 <= 0) goto L_0x0e17
- r15 = 0
- L_0x0db6:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.duplex_info
- int r0 = r0.length
- if (r15 >= r0) goto L_0x0dd3
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int r0 = r0.duplex
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int[] r3 = r3.duplex_info
- r3 = r3[r15]
- if (r0 != r3) goto L_0x0dd0
- goto L_0x0dd3
- L_0x0dd0:
- int r15 = r15 + 1
- goto L_0x0db6
- L_0x0dd3:
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- int[] r0 = r0.duplex_info
- int r0 = r0.length
- if (r15 < r0) goto L_0x0de7
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- int[] r0 = r15.duplex_info
- r0 = r0[r1]
- int unused = r15.duplex = r0
- L_0x0de7:
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$Duplex r0 = new com.epson.mobilephone.common.escpr.MediaInfo$Duplex
- r0.<init>()
- com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.widget.TextView r15 = r15.duplexInfo
- epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r1 = r0.mLookupTable
- epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
- int r3 = r3.duplex
- int r1 = r1.getStringId(r3)
- java.lang.String r0 = r0.getString(r1)
- r15.setText(r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
- r15.destructor()
- L_0x0e17:
- java.lang.String r15 = "SettingScr"
- java.lang.String r0 = "get Color setScreenState = true"
- epson.print.Util.EPLog.i(r15, r0)
- epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
- android.os.Handler r15 = r15.mHandler
- r15.sendEmptyMessage(r4)
- L_0x0e25:
- return r2
- */
- throw new UnsupportedOperationException("Method not decompiled: epson.print.screen.SettingScr.C23643.handleMessage(android.os.Message):boolean");
- }
- });
- private MediaInfo.AbstractInfo mLookupTable;
- private MediaInfo.AbstractInfo mPaperSizeType;
- private boolean mPrinterSelectDone;
- private int mSharpnessValue;
- private TextView mSharpnessValueText;
- private boolean mWaiteInkReplenProgress;
- private int paperSize;
- private TextView paperSizeInfo;
- private int paperSource;
- private TextView paperSourceInfo;
- private int paperType;
- private TextView paperTypeInfo;
- private int[] paper_size_info = null;
- private int[] paper_source_info = null;
- private int[] paper_type_info = null;
- private int photoApfValueForLocalPrinter;
- private boolean printAll;
- private TextView printDateInfo;
- private int printdate;
- private MyPrinter printer = null;
- private String printerDeviceId;
- private String printerEmailAddress;
- private String printerId;
- private String printerIp;
- private int printerLocation;
- private TextView printerName;
- private String printerSerialNo;
- private View progressGetOption;
- private int quality;
- private TextView qualityInfo;
- private int[] quality_info = null;
- private TextView saturation;
- private Button saturationMinus;
- private Button saturationPlus;
- private int saturationValue;
- private int sheets = 1;
- private int sizeIndex = 0;
- private int startValue;
- private int typeIndex = 0;
- boolean undoFlag = true;
- static /* synthetic */ int access$1208(SettingScr settingScr) {
- int i = settingScr.sizeIndex;
- settingScr.sizeIndex = i + 1;
- return i;
- }
- static /* synthetic */ int access$1708(SettingScr settingScr) {
- int i = settingScr.typeIndex;
- settingScr.typeIndex = i + 1;
- return i;
- }
- protected void onCreate(Bundle bundle) {
- super.onCreate(bundle);
- setContentView((int) R.layout.setting_layout);
- setActionBar((int) R.string.str_btn_printer_settings, true);
- bindEpsonService();
- mContext = this;
- isDocumentSetting = getIntent().getBooleanExtra(PrintProgress.PARAM_DOCUMENT_MODE, false);
- if (isDocumentSetting) {
- sheets = getIntent().getIntExtra("SHEETS", 1);
- disablePrintArea = getIntent().getBooleanExtra("PRINTAREA", false);
- }
- printerName = (TextView) findViewById(R.id.printer_name);
- paperSizeInfo = (TextView) findViewById(R.id.paper_size_info);
- paperTypeInfo = (TextView) findViewById(R.id.paper_type_info);
- layoutInfo = (TextView) findViewById(R.id.layout_info);
- qualityInfo = (TextView) findViewById(R.id.quality_info);
- paperSourceInfo = (TextView) findViewById(R.id.paper_source_info);
- copies = (TextView) findViewById(R.id.copies);
- copiesMinus = (Button) findViewById(R.id.copies_minus_button);
- copiesPlus = (Button) findViewById(R.id.copies_plus_button);
- 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);
- printDateInfo = (TextView) findViewById(R.id.printdate_info);
- apfStateText = (TextView) findViewById(R.id.apf_setting_text);
- mSharpnessValueText = (TextView) findViewById(R.id.sharpness_setting_text);
- brightness = (TextView) findViewById(R.id.brightness);
- brightnessMinus = (Button) findViewById(R.id.brightness_minus_button);
- brightnessPlus = (Button) findViewById(R.id.brightness_plus_button);
- contrast = (TextView) findViewById(R.id.contrast);
- contrastMinus = (Button) findViewById(R.id.contrast_minus_button);
- contrastPlus = (Button) findViewById(R.id.contrast_plus_button);
- saturation = (TextView) findViewById(R.id.saturation);
- saturationMinus = (Button) findViewById(R.id.saturation_minus_button);
- saturationPlus = (Button) findViewById(R.id.saturation_plus_button);
- progressGetOption = findViewById(R.id.progressGetOption);
- enableShowPreview = getSharedPreferences(Constants.PREFS_EPSON_CONNECT, 0).getBoolean(Constants.ENABLE_SHOW_PREVIEW, true);
- loadConfig();
- setClickListener();
- updatePrinterIcon();
- if (printerId != null) {
- undoFlag = false;
- if (loadSupportedMediaFile()) {
- mHandler.sendEmptyMessage(1);
- } else {
- mHandler.sendEmptyMessage(17);
- }
- } else {
- mHandler.sendEmptyMessage(1);
- }
- }
- private void updatePrinterIcon() {
- if (printerName.getText().equals(getString(R.string.str_lbl_title_scan))) {
- ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setVisibility(8);
- return;
- }
- ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setVisibility(0);
- switch (printerLocation) {
- case 1:
- ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setImageResource(R.drawable.print_local);
- return;
- case 2:
- ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setImageResource(R.drawable.print_remote);
- return;
- case 3:
- ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setImageResource(R.drawable.print_ip);
- return;
- default:
- return;
- }
- }
- private void setClickListener() {
- copiesMinus.setOnClickListener(this);
- copiesPlus.setOnClickListener(this);
- brightnessMinus.setOnClickListener(this);
- brightnessPlus.setOnClickListener(this);
- contrastMinus.setOnClickListener(this);
- contrastPlus.setOnClickListener(this);
- saturationMinus.setOnClickListener(this);
- saturationPlus.setOnClickListener(this);
- if (isDocumentSetting) {
- findViewById(R.id.page_range_setting).setOnClickListener(this);
- }
- findViewById(R.id.printer).setOnClickListener(this);
- findViewById(R.id.paper_size).setOnClickListener(this);
- findViewById(R.id.paper_type).setOnClickListener(this);
- findViewById(R.id.layout).setOnClickListener(this);
- findViewById(R.id.quality).setOnClickListener(this);
- findViewById(R.id.paper_source).setOnClickListener(this);
- findViewById(R.id.color).setOnClickListener(this);
- findViewById(R.id.duplex).setOnClickListener(this);
- findViewById(R.id.feed_direction).setOnClickListener(this);
- findViewById(R.id.printdate).setOnClickListener(this);
- findViewById(R.id.apf_setting_layout).setOnClickListener(this);
- findViewById(R.id.sharpness_setting_layout).setOnClickListener(this);
- }
- private void loadConfig() {
- MyPrinter curPrinter = MyPrinter.getCurPrinter(this);
- if (curPrinter == null || curPrinter.getName() == null) {
- printerName.setText(getString(R.string.str_lbl_title_scan));
- } else {
- printerName.setText(curPrinter.getUserDefName(this));
- }
- printerDeviceId = curPrinter.getName();
- printerId = curPrinter.getPrinterId();
- printerIp = curPrinter.getIp();
- printerSerialNo = curPrinter.getSerialNo();
- printerEmailAddress = curPrinter.getEmailAddress();
- printerLocation = curPrinter.getLocation();
- boolean z = true;
- if (printerLocation == 0) {
- printerLocation = 1;
- }
- autoConnectSsid = WiFiDirectManager.getConnectInfo(this, WiFiDirectManager.DEVICE_TYPE_PRINTER);
- PrintSetting printSetting = new PrintSetting(this, isDocumentSetting ? PrintSetting.Kind.document : PrintSetting.Kind.photo);
- printSetting.loadSettings();
- mLookupTable = new MediaInfo.PaperSize();
- paperSize = printSetting.paperSizeValue;
- paperSizeInfo.setText(getString(mLookupTable.getStringId(paperSize)));
- mLookupTable.destructor();
- mLookupTable = new MediaInfo.PaperType();
- paperType = printSetting.paperTypeValue;
- paperTypeInfo.setText(getString(mLookupTable.getStringId(paperType)));
- mLookupTable.destructor();
- mPaperSizeType = printSetting.loadPaperSizeTypePear();
- mPaperSizeType.putID(paperSize, paperType);
- mLookupTable = new LayoutEx();
- int i = printSetting.layoutMultiPageValue;
- if (i != 0) {
- layout = i;
- } else {
- layout = printSetting.layoutValue;
- }
- layoutInfo.setText(getString(mLookupTable.getStringId(layout)));
- mLookupTable.destructor();
- mLookupTable = new MediaInfo.Quality();
- quality = printSetting.qualityValue;
- qualityInfo.setText(getString(mLookupTable.getStringId(quality)));
- mLookupTable.destructor();
- mLookupTable = new MediaInfo.PaperSource();
- paperSource = printSetting.paperSourceValue;
- paperSourceInfo.setText(getString(mLookupTable.getStringId(paperSource)));
- mLookupTable.destructor();
- mLookupTable = new MediaInfo.Color();
- color = printSetting.colorValue;
- colorInfo.setText(getString(mLookupTable.getStringId(color)));
- mLookupTable.destructor();
- copiesValue = printSetting.copiesValue;
- copies.setText(String.valueOf(copiesValue));
- copiesMinus.setEnabled(copiesValue != 1);
- Button button = copiesPlus;
- if (copiesValue == 30) {
- z = false;
- }
- button.setEnabled(z);
- brightnessValue = printSetting.brightnessValue;
- contrastValue = printSetting.contrastValue;
- saturationValue = printSetting.saturationValue;
- mLookupTable = new MediaInfo.Duplex();
- duplex = printSetting.duplexValue;
- duplexInfo.setText(getString(mLookupTable.getStringId(duplex)));
- mLookupTable.destructor();
- mLookupTable = new MediaInfo.FeedDirection();
- feedDirection = printSetting.feedDirectionValue;
- feedDirectionInfo.setText(getString(mLookupTable.getStringId(feedDirection)));
- mLookupTable.destructor();
- lang = curPrinter.getLang();
- if (isDocumentSetting) {
- printAll = printSetting.printAll;
- startValue = printSetting.startValue;
- endValue = printSetting.endValue;
- ((TextView) findViewById(R.id.page_range_value)).setText(startValue + ".." + endValue);
- return;
- }
- mLookupTable = new MediaInfo.PrintDate();
- printdate = printSetting.printdate;
- printDateInfo.setText(getString(mLookupTable.getStringId(printdate)));
- mLookupTable.destructor();
- photoApfValueForLocalPrinter = printSetting.photoApfValueForLocalPrinter;
- displayApfState(photoApfValueForLocalPrinter);
- mSharpnessValue = printSetting.sharpnessForPhoto;
- displaySharpnessState(mSharpnessValue);
- }
- private void displayApfState(int i) {
- MediaInfo.ApfState apfState = new MediaInfo.ApfState();
- apfStateText.setText(apfState.getStringId(i));
- apfState.destructor();
- }
- private void displaySharpnessState(int i) {
- MediaInfo.SharpnessState sharpnessState = new MediaInfo.SharpnessState();
- mSharpnessValueText.setText(sharpnessState.getStringId(i));
- sharpnessState.destructor();
- }
- private boolean loadSupportedMediaFile() {
- ExternalFileUtils instance = ExternalFileUtils.getInstance(this);
- File savedSupportedMedia = instance.getSavedSupportedMedia();
- File supportedMedia = instance.getSupportedMedia();
- File preSupportedMedia = instance.getPreSupportedMedia();
- EPLog.i("PrintSetting", "call loadSupportedMedia");
- try {
- if (!savedSupportedMedia.exists()) {
- EPLog.w("loadSupportedMedia", savedSupportedMedia.getName() + " not exist");
- return false;
- }
- Utils.copyFile(savedSupportedMedia, supportedMedia);
- Utils.copyFile(savedSupportedMedia, preSupportedMedia);
- File savedAreaInfo = instance.getSavedAreaInfo();
- File areaInfo = instance.getAreaInfo();
- File preAreaInfo = instance.getPreAreaInfo();
- try {
- if (!savedAreaInfo.exists()) {
- return true;
- }
- Utils.copyFile(savedAreaInfo, areaInfo);
- Utils.copyFile(savedAreaInfo, preAreaInfo);
- return true;
- } catch (Exception e) {
- EPLog.w("loadSupportedMedia", "failure " + e.getMessage());
- return false;
- }
- } catch (Exception e2) {
- EPLog.w("loadSupportedMedia", "failure " + e2.getMessage());
- return false;
- }
- }
- private boolean updateSupportedMediaFile(boolean z) {
- ExternalFileUtils instance = ExternalFileUtils.getInstance(this);
- EPLog.i("PrintSetting", "call updateSupportedMedia");
- File supportedMedia = instance.getSupportedMedia();
- File preSupportedMedia = instance.getPreSupportedMedia();
- if (z) {
- File file = preSupportedMedia;
- preSupportedMedia = supportedMedia;
- supportedMedia = file;
- }
- try {
- Utils.copyFile(supportedMedia, preSupportedMedia);
- File areaInfo = instance.getAreaInfo();
- File preAreaInfo = instance.getPreAreaInfo();
- if (!z) {
- File file2 = areaInfo;
- areaInfo = preAreaInfo;
- preAreaInfo = file2;
- }
- try {
- if (!preAreaInfo.exists()) {
- return true;
- }
- Utils.copyFile(preAreaInfo, areaInfo);
- return true;
- } catch (Exception e) {
- if (preAreaInfo != null && preAreaInfo.exists()) {
- preAreaInfo.delete();
- }
- if (areaInfo != null && areaInfo.exists()) {
- areaInfo.delete();
- }
- EPLog.w("updateSupportedMediaFile", "failure " + e.getMessage());
- return false;
- }
- } catch (Exception e2) {
- if (supportedMedia != null && supportedMedia.exists()) {
- supportedMedia.delete();
- }
- if (preSupportedMedia != null && preSupportedMedia.exists()) {
- preSupportedMedia.delete();
- }
- EPLog.w("updateSupportedMediaFile", "failure " + e2.getMessage());
- return false;
- }
- }
- private boolean saveSupportedMediaFile() {
- ExternalFileUtils instance = ExternalFileUtils.getInstance(this);
- EPLog.i("PrintSetting", "call saveSupportedMedia");
- File supportedMedia = instance.getSupportedMedia();
- File savedSupportedMedia = instance.getSavedSupportedMedia();
- try {
- if (!supportedMedia.exists()) {
- EPLog.w("updateSupportedMediaFile", supportedMedia.getName() + " not exist");
- return false;
- }
- Utils.copyFile(supportedMedia, savedSupportedMedia);
- File areaInfo = instance.getAreaInfo();
- File savedAreaInfo = instance.getSavedAreaInfo();
- int i = printerLocation;
- if (i == 1 || i == 3) {
- try {
- if (!areaInfo.exists()) {
- EPLog.w("updateSupportedMediaFile", areaInfo.getName() + " not exist");
- return false;
- }
- Utils.copyFile(areaInfo, savedAreaInfo);
- } catch (Exception e) {
- EPLog.w("saveSupportedMediaFile", "failure " + e.getMessage());
- return false;
- }
- } else {
- EPLog.i("PrintSetting", "delete AreaInfo");
- instance.removeAreaInfo();
- }
- return true;
- } catch (Exception e2) {
- EPLog.w("saveSupportedMediaFile", "failure " + e2.getMessage());
- return false;
- }
- }
- private void saveChanged() {
- SharedPreferences.Editor edit = getSharedPreferences("PrintSetting", 0).edit();
- edit.putInt(Constants.PREFS_INFO_PRINT_SAVE, 1);
- edit.commit();
- MyPrinter myPrinter = new MyPrinter(printerDeviceId, printerIp, printerId, printerSerialNo, printerEmailAddress, printerLocation);
- myPrinter.setLang(lang);
- myPrinter.setCurPrinter(this);
- PrintSetting printSetting = new PrintSetting(this, isDocumentSetting ? PrintSetting.Kind.document : PrintSetting.Kind.photo);
- printSetting.paperSizeValue = paperSize;
- printSetting.paperTypeValue = paperType;
- int i = layout;
- if ((-65536 & i) != 0) {
- printSetting.layoutValue = 2;
- printSetting.layoutMultiPageValue = i;
- } else {
- printSetting.layoutValue = i;
- printSetting.layoutMultiPageValue = 0;
- }
- printSetting.qualityValue = quality;
- printSetting.paperSourceValue = paperSource;
- printSetting.colorValue = color;
- printSetting.duplexValue = duplex;
- printSetting.feedDirectionValue = feedDirection;
- printSetting.copiesValue = copiesValue;
- printSetting.brightnessValue = brightnessValue;
- printSetting.contrastValue = contrastValue;
- printSetting.saturationValue = saturationValue;
- if (isDocumentSetting) {
- printSetting.printAll = printAll;
- printSetting.startValue = startValue;
- printSetting.endValue = endValue;
- } else {
- printSetting.printdate = printdate;
- printSetting.photoApfValueForLocalPrinter = photoApfValueForLocalPrinter;
- printSetting.sharpnessForPhoto = mSharpnessValue;
- }
- printSetting.saveSettings();
- printSetting.savePaperSizeTypePear((MediaInfo.PaperSizeType) mPaperSizeType);
- saveSupportedMediaFile();
- String str = autoConnectSsid;
- if (str == null || str.length() <= 0) {
- WiFiDirectManager.resetConnectInfo(this, WiFiDirectManager.DEVICE_TYPE_PRINTER);
- } else {
- WiFiDirectManager.setConnectInfo(this, autoConnectSsid, WiFiDirectManager.DEVICE_TYPE_PRINTER, myPrinter.getName());
- }
- EPPrinterManager ePPrinterManager = new EPPrinterManager(mContext);
- ePPrinterManager.commitIPPrinterInfo();
- ePPrinterManager.commitRemotePrinterInfo();
- refreshRemoteServiceRemotePrinter();
- if (mPrinterSelectDone) {
- new InkRplnRepository(false).savePermanently(this);
- }
- }
- private void refreshRemoteServiceRemotePrinter() {
- IEpsonService iEpsonService = mEpsonService;
- if (iEpsonService != null) {
- try {
- iEpsonService.refreshRemotePrinterLogin();
- } catch (RemoteException unused) {
- }
- }
- }
- protected void onDestroy() {
- super.onDestroy();
- unbindEpsonService();
- EPLog.i("SettingScr", "onDestroy");
- mPaperSizeType.destructor();
- }
- private void bindEpsonService() {
- EPLog.v("SettingScr", "bindEpsonService");
- if (mEpsonService == null) {
- bindService(new Intent(this, EpsonService.class), mEpsonConnection, 1);
- }
- }
- private void unbindEpsonService() {
- EPLog.v("SettingScr", "unbindEpsonService");
- IEpsonService iEpsonService = mEpsonService;
- if (iEpsonService != null) {
- try {
- iEpsonService.unregisterCallback(mCallback);
- unbindService(mEpsonConnection);
- mEpsonService = null;
- } catch (RemoteException e) {
- e.printStackTrace();
- }
- }
- }
- public void onClick(View view) {
- if (progressGetOption.getVisibility() == 8) {
- IEpsonService iEpsonService = mEpsonService;
- if (iEpsonService != null) {
- try {
- iEpsonService.cancelSearchPrinter();
- } catch (RemoteException e) {
- e.printStackTrace();
- }
- }
- switch (view.getId()) {
- case R.id.apf_setting_layout /*2131230819*/:
- launchDetailScreen(photoApfValueForLocalPrinter, R.id.apf_setting_layout);
- return;
- case R.id.brightness_minus_button /*2131230848*/:
- brightnessValue--;
- if (brightnessValue <= -50) {
- brightnessValue = -50;
- brightnessMinus.setEnabled(false);
- } else {
- brightnessMinus.setEnabled(true);
- }
- brightnessPlus.setEnabled(true);
- brightness.setText(String.valueOf(brightnessValue));
- return;
- case R.id.brightness_plus_button /*2131230850*/:
- brightnessValue++;
- if (brightnessValue >= 50) {
- brightnessValue = 50;
- brightnessPlus.setEnabled(false);
- } else {
- brightnessPlus.setEnabled(true);
- }
- brightnessMinus.setEnabled(true);
- brightness.setText(String.valueOf(brightnessValue));
- return;
- case R.id.color /*2131230930*/:
- launchDetailScreen(color, R.id.color);
- return;
- case R.id.contrast_minus_button /*2131230942*/:
- contrastValue--;
- if (contrastValue <= -50) {
- contrastValue = -50;
- contrastMinus.setEnabled(false);
- } else {
- contrastMinus.setEnabled(true);
- }
- contrastPlus.setEnabled(true);
- contrast.setText(String.valueOf(contrastValue));
- return;
- case R.id.contrast_plus_button /*2131230943*/:
- contrastValue++;
- if (contrastValue >= 50) {
- contrastValue = 50;
- contrastPlus.setEnabled(false);
- } else {
- contrastPlus.setEnabled(true);
- }
- contrastMinus.setEnabled(true);
- contrast.setText(String.valueOf(contrastValue));
- return;
- case R.id.copies_minus_button /*2131230945*/:
- copiesValue--;
- if (copiesValue <= 1) {
- copiesValue = 1;
- copiesMinus.setEnabled(false);
- } else {
- copiesMinus.setEnabled(true);
- }
- copiesPlus.setEnabled(true);
- copies.setText(String.valueOf(copiesValue));
- return;
- case R.id.copies_plus_button /*2131230946*/:
- copiesValue++;
- if (copiesValue >= 30) {
- copiesValue = 30;
- copiesPlus.setEnabled(false);
- } else {
- copiesPlus.setEnabled(true);
- }
- copiesMinus.setEnabled(true);
- copies.setText(String.valueOf(copiesValue));
- return;
- case R.id.duplex /*2131231005*/:
- launchDetailScreen(duplex, R.id.duplex);
- return;
- case R.id.feed_direction /*2131231037*/:
- launchDetailScreen(feedDirection, R.id.feed_direction);
- return;
- case R.id.layout /*2131231158*/:
- launchDetailScreen(layout, R.id.layout);
- return;
- case R.id.page_range_setting /*2131231300*/:
- Intent intent = new Intent(this, PageRangeSetting.class);
- intent.putExtra("SHEETS", sheets);
- intent.putExtra("printAll", printAll);
- intent.putExtra("startValue", startValue);
- intent.putExtra("endValue", endValue);
- startActivityForResult(intent, 2);
- return;
- case R.id.paper_size /*2131231306*/:
- launchDetailScreen(paperSize, R.id.paper_size);
- return;
- case R.id.paper_source /*2131231311*/:
- int i = paperSource;
- int[] iArr = paper_source_info;
- if (iArr != null && iArr.length <= 1) {
- i = 128;
- }
- launchDetailScreen(i, R.id.paper_source);
- return;
- case R.id.paper_type /*2131231314*/:
- launchDetailScreen(paperType, R.id.paper_type);
- return;
- case R.id.printdate /*2131231355*/:
- launchDetailScreen(printdate, R.id.printdate);
- return;
- case R.id.printer /*2131231358*/:
- unbindEpsonService();
- new AsyncTask<Void, Void, Void>() {
- protected void onPreExecute() {
- SettingScr.this.findViewById(R.id.printer).setClickable(false);
- }
- protected Void doInBackground(Void... voidArr) {
- SettingScr settingScr = SettingScr.this;
- WiFiDirectManager.disconnect(settingScr, WiFiDirectManager.DEVICE_TYPE_PRINTER, settingScr.printerIp);
- SettingScr settingScr2 = SettingScr.this;
- WiFiDirectManager.disconnectSimpleAP(settingScr2, settingScr2.autoConnectSsid, SettingScr.this.printerIp);
- return null;
- }
- protected void onPostExecute(Void voidR) {
- Intent intent = new Intent(SettingScr.this, SearchPrinterScr.class);
- Bundle bundle = new Bundle();
- bundle.putString(Constants.PRINTER_ID, SettingScr.this.printerId);
- bundle.putString(Constants.PRINTER_IP, SettingScr.this.printerIp);
- bundle.putString(Constants.PRINTER_EMAIL_ADDRESS, SettingScr.this.printerEmailAddress);
- bundle.putInt(Constants.PRINTER_LOCATION, SettingScr.this.printerLocation);
- bundle.putString(SettingScr.EXTRA_SIMPLEAP, SettingScr.this.autoConnectSsid);
- intent.putExtras(bundle);
- SettingScr.this.startActivityForResult(intent, 0);
- SettingScr.this.findViewById(R.id.printer).setClickable(true);
- }
- }.execute(new Void[0]);
- return;
- case R.id.quality /*2131231392*/:
- launchDetailScreen(quality, R.id.quality);
- return;
- case R.id.saturation_minus_button /*2131231425*/:
- saturationValue--;
- if (saturationValue <= -50) {
- saturationValue = -50;
- saturationMinus.setEnabled(false);
- } else {
- saturationMinus.setEnabled(true);
- }
- saturationPlus.setEnabled(true);
- saturation.setText(String.valueOf(saturationValue));
- return;
- case R.id.saturation_plus_button /*2131231426*/:
- saturationValue++;
- if (saturationValue >= 50) {
- saturationValue = 50;
- saturationPlus.setEnabled(false);
- } else {
- saturationPlus.setEnabled(true);
- }
- saturationMinus.setEnabled(true);
- saturation.setText(String.valueOf(saturationValue));
- return;
- case R.id.sharpness_setting_layout /*2131231482*/:
- launchDetailScreen(mSharpnessValue, R.id.sharpness_setting_layout);
- return;
- default:
- return;
- }
- }
- }
- private void launchDetailScreen(int i, int i2) {
- Intent intent = new Intent(this, PrinterInfoDetail.class);
- Bundle bundle = new Bundle();
- bundle.putInt("ID", i2);
- bundle.putInt("sizeIndex", sizeIndex);
- bundle.putInt("typeIndex", typeIndex);
- bundle.putInt("curValue", i);
- bundle.putBoolean("isDocumentSetting", isDocumentSetting);
- switch (i2) {
- case R.id.color /*2131230930*/:
- bundle.putIntArray(Constants.COLOR_INFO, color_info);
- break;
- case R.id.duplex /*2131231005*/:
- bundle.putIntArray(Constants.DUPLEX_INFO, duplex_info);
- break;
- case R.id.layout /*2131231158*/:
- bundle.putIntArray(Constants.LAYOUT_INFO, layout_info);
- break;
- case R.id.paper_size /*2131231306*/:
- bundle.putIntArray(Constants.PAPER_SIZE_INFO, paper_size_info);
- break;
- case R.id.paper_source /*2131231311*/:
- int[] iArr = paper_source_info;
- bundle.putIntArray(Constants.PAPER_SOURCE_INFO, (iArr == null || iArr.length > 1) ? paper_source_info : new int[]{128});
- break;
- case R.id.paper_type /*2131231314*/:
- bundle.putIntArray(Constants.PAPER_TYPE_INFO, paper_type_info);
- break;
- case R.id.quality /*2131231392*/:
- bundle.putIntArray(Constants.PRINT_QUALITY_INFO, quality_info);
- break;
- }
- intent.putExtras(bundle);
- startActivityForResult(intent, 1);
- }
- protected void onActivityResult(int i, int i2, Intent intent) {
- super.onActivityResult(i, i2, intent);
- String callingPackage = getCallingPackage();
- EPLog.i(callingPackage, "requestCode = " + i + " resultCode = " + i2);
- if (i != 0) {
- if (i != 4) {
- if (i != 2) {
- int i3 = 1;
- if (i == 1 && i2 == -1) {
- int i4 = intent.getExtras().getInt("curValue");
- switch (intent.getExtras().getInt("ID")) {
- case R.id.apf_setting_layout /*2131230819*/:
- if (i4 != 1) {
- i3 = 0;
- }
- photoApfValueForLocalPrinter = i3;
- displayApfState(photoApfValueForLocalPrinter);
- break;
- case R.id.color /*2131230930*/:
- mLookupTable = new MediaInfo.Color();
- colorInfo.setText(getString(mLookupTable.getStringId(i4)));
- mLookupTable.destructor();
- color = i4;
- break;
- case R.id.duplex /*2131231005*/:
- mLookupTable = new MediaInfo.Duplex();
- duplexInfo.setText(getString(mLookupTable.getStringId(i4)));
- mLookupTable.destructor();
- duplex = i4;
- break;
- case R.id.feed_direction /*2131231037*/:
- mLookupTable = new MediaInfo.FeedDirection();
- feedDirectionInfo.setText(getString(mLookupTable.getStringId(i4)));
- mLookupTable.destructor();
- feedDirection = i4;
- break;
- case R.id.layout /*2131231158*/:
- mLookupTable = new LayoutEx();
- layoutInfo.setText(getString(mLookupTable.getStringId(i4)));
- mLookupTable.destructor();
- layout = i4;
- undoFlag = false;
- mHandler.sendEmptyMessage(32);
- break;
- case R.id.paper_size /*2131231306*/:
- sizeIndex = intent.getExtras().getInt("INDEX");
- mLookupTable = new MediaInfo.PaperSize();
- paperSizeInfo.setText(getString(mLookupTable.getStringId(i4)));
- mLookupTable.destructor();
- paperSize = i4;
- paperType = mPaperSizeType.getID(paperSize);
- undoFlag = false;
- mHandler.sendEmptyMessage(2);
- break;
- case R.id.paper_source /*2131231311*/:
- mLookupTable = new MediaInfo.PaperSource();
- paperSourceInfo.setText(getString(mLookupTable.getStringId(i4)));
- mLookupTable.destructor();
- int[] iArr = paper_source_info;
- if (iArr != null && iArr.length > 1) {
- paperSource = i4;
- }
- undoFlag = false;
- mHandler.sendEmptyMessage(32);
- break;
- case R.id.paper_type /*2131231314*/:
- typeIndex = intent.getExtras().getInt("INDEX");
- mLookupTable = new MediaInfo.PaperType();
- paperTypeInfo.setText(getString(mLookupTable.getStringId(i4)));
- mLookupTable.destructor();
- paperType = i4;
- mPaperSizeType.putID(paperSize, paperType);
- undoFlag = false;
- mHandler.sendEmptyMessage(3);
- break;
- case R.id.printdate /*2131231355*/:
- mLookupTable = new MediaInfo.PrintDate();
- printDateInfo.setText(getString(mLookupTable.getStringId(i4)));
- mLookupTable.destructor();
- printdate = i4;
- break;
- case R.id.quality /*2131231392*/:
- mLookupTable = new MediaInfo.Quality();
- qualityInfo.setText(getString(mLookupTable.getStringId(i4)));
- mLookupTable.destructor();
- quality = i4;
- break;
- case R.id.sharpness_setting_layout /*2131231482*/:
- if (i4 != 1) {
- i3 = 0;
- }
- mSharpnessValue = i3;
- displaySharpnessState(mSharpnessValue);
- break;
- }
- }
- } else if (i2 == -1) {
- printAll = intent.getExtras().getBoolean("printAll");
- startValue = intent.getExtras().getInt("startValue");
- endValue = intent.getExtras().getInt("endValue");
- mHandler.sendEmptyMessage(64);
- }
- } else {
- endInkReplAndGoProbePrinter();
- }
- } else {
- onPrinterSelectEnd(i2, intent);
- }
- updatePrinterIcon();
- }
- /* JADX WARNING: Can't fix incorrect switch cases order */
- /* JADX WARNING: Code restructure failed: missing block: B:25:0x00ea, code lost:
- if (r7.loadIpPrinterInfo(r6.printerId) == null) goto L_0x00f7;
- */
- /* JADX WARNING: Code restructure failed: missing block: B:27:0x00f3, code lost:
- if (r7.loadRemotePrinterInfo(r6.printerEmailAddress) == null) goto L_0x00f7;
- */
- /* Code decompiled incorrectly, please refer to instructions dump. */
- private void onPrinterSelectEnd(int r7, android.content.Intent r8) {
- /*
- r6 = this;
- r0 = 0
- r1 = 1
- r2 = -1
- if (r7 != r2) goto L_0x00d6
- android.os.Bundle r7 = r8.getExtras()
- java.lang.String r2 = "myprinter"
- android.os.Parcelable r7 = r7.getParcelable(r2)
- epson.print.MyPrinter r7 = (epson.print.MyPrinter) r7
- r6.printer = r7
- android.widget.TextView r7 = r6.printerName
- epson.print.MyPrinter r2 = r6.printer
- java.lang.String r2 = r2.getName()
- r7.setText(r2)
- epson.print.MyPrinter r7 = r6.printer
- java.lang.String r7 = r7.getName()
- r6.printerDeviceId = r7
- epson.print.MyPrinter r7 = r6.printer
- java.lang.String r7 = r7.getPrinterId()
- r6.printerId = r7
- epson.print.MyPrinter r7 = r6.printer
- java.lang.String r7 = r7.getIp()
- r6.printerIp = r7
- epson.print.MyPrinter r7 = r6.printer
- java.lang.String r7 = r7.getSerialNo()
- r6.printerSerialNo = r7
- epson.print.MyPrinter r7 = r6.printer
- java.lang.String r7 = r7.getEmailAddress()
- r6.printerEmailAddress = r7
- epson.print.MyPrinter r7 = r6.printer
- int r7 = r7.getLocation()
- r6.printerLocation = r7
- epson.print.EPPrinterManager r7 = new epson.print.EPPrinterManager
- r7.<init>(r6)
- int r2 = r6.printerLocation
- switch(r2) {
- case 2: goto L_0x0075;
- case 3: goto L_0x0059;
- default: goto L_0x0058;
- }
- L_0x0058:
- goto L_0x0090
- L_0x0059:
- java.lang.String r2 = r6.printerId
- epson.print.EPPrinterInfo r7 = r7.loadIpPrinterInfo(r2)
- if (r7 == 0) goto L_0x0090
- java.lang.String r2 = r7.userDefName
- if (r2 == 0) goto L_0x0090
- java.lang.String r2 = r7.userDefName
- int r2 = r2.length()
- if (r2 <= 0) goto L_0x0090
- android.widget.TextView r2 = r6.printerName
- java.lang.String r7 = r7.userDefName
- r2.setText(r7)
- goto L_0x0090
- L_0x0075:
- java.lang.String r2 = r6.printerEmailAddress
- epson.print.EPPrinterInfo r7 = r7.loadRemotePrinterInfo(r2)
- if (r7 == 0) goto L_0x0090
- java.lang.String r2 = r7.userDefName
- if (r2 == 0) goto L_0x0090
- java.lang.String r2 = r7.userDefName
- int r2 = r2.length()
- if (r2 <= 0) goto L_0x0090
- android.widget.TextView r2 = r6.printerName
- java.lang.String r7 = r7.userDefName
- r2.setText(r7)
- L_0x0090:
- android.os.Bundle r7 = r8.getExtras()
- java.lang.String r8 = "simpleap"
- java.lang.String r7 = r7.getString(r8)
- r6.autoConnectSsid = r7
- android.content.Context r7 = r6.getApplicationContext()
- java.lang.String r8 = "PrintSetting"
- java.lang.String r2 = "RE_SEARCH"
- epson.common.Utils.savePref((android.content.Context) r7, (java.lang.String) r8, (java.lang.String) r2, (boolean) r1)
- r6.undoFlag = r0
- r6.mPrinterSelectDone = r1
- r6.mWaiteInkReplenProgress = r1
- android.content.Context r7 = r6.getApplicationContext()
- java.lang.String r8 = r6.printerId
- boolean r7 = epson.print.inkrpln.InkReplnHelper.isSimpleApOrP2p(r7, r8)
- if (r7 != 0) goto L_0x00d2
- epson.print.inkrpln.PrintSettingDependencyBuilder r7 = new epson.print.inkrpln.PrintSettingDependencyBuilder
- java.lang.String r1 = r6.printerId
- java.lang.String r2 = r6.printerIp
- java.lang.String r3 = r6.printerSerialNo
- int r4 = r6.printerLocation
- java.lang.String r5 = r6.printerDeviceId
- r0 = r7
- r0.<init>(r1, r2, r3, r4, r5)
- android.content.Intent r7 = epson.print.inkrpln.InkRplnProgressDialog.getStartIntent2(r6, r7)
- r8 = 4
- r6.startActivityForResult(r7, r8)
- goto L_0x00fc
- L_0x00d2:
- r6.endInkReplAndGoProbePrinter()
- goto L_0x00fc
- L_0x00d6:
- r6.bindEpsonService()
- epson.print.EPPrinterManager r7 = new epson.print.EPPrinterManager
- r7.<init>(r6)
- int r8 = r6.printerLocation
- switch(r8) {
- case 2: goto L_0x00ed;
- case 3: goto L_0x00e4;
- default: goto L_0x00e3;
- }
- L_0x00e3:
- goto L_0x00f6
- L_0x00e4:
- java.lang.String r8 = r6.printerId
- epson.print.EPPrinterInfo r7 = r7.loadIpPrinterInfo(r8)
- if (r7 != 0) goto L_0x00f6
- goto L_0x00f7
- L_0x00ed:
- java.lang.String r8 = r6.printerEmailAddress
- epson.print.EPPrinterInfo r7 = r7.loadRemotePrinterInfo(r8)
- if (r7 != 0) goto L_0x00f6
- goto L_0x00f7
- L_0x00f6:
- r1 = 0
- L_0x00f7:
- if (r1 == 0) goto L_0x00fc
- r6.resetSettings()
- L_0x00fc:
- return
- */
- throw new UnsupportedOperationException("Method not decompiled: epson.print.screen.SettingScr.onPrinterSelectEnd(int, android.content.Intent):void");
- }
- private void endInkReplAndGoProbePrinter() {
- mWaiteInkReplenProgress = false;
- bindEpsonService();
- mHandler.sendEmptyMessageDelayed(17, 100);
- }
- private void updateSettingView() {
- int i = 8;
- if (isDocumentSetting) {
- if (printerLocation != 2) {
- setVisibilityPageRange(true);
- setClickablePageRange(true);
- } else if (!enableShowPreview) {
- setVisibilityPageRange(false);
- } else if (disablePrintArea) {
- setVisibilityPageRange(true);
- setClickablePageRange(false);
- } else {
- setVisibilityPageRange(true);
- setClickablePageRange(true);
- }
- if (sheets == 1) {
- ((ImageView) findViewById(R.id.page_range_next_screen_imv)).setVisibility(8);
- } else {
- ((ImageView) findViewById(R.id.page_range_next_screen_imv)).setVisibility(0);
- }
- } else {
- setVisibilityPageRange(false);
- }
- int[] iArr = color_info;
- if (iArr == null) {
- ((ImageView) findViewById(R.id.color_next_screen_imv)).setVisibility(8);
- } else if (iArr.length <= 1) {
- ((ImageView) findViewById(R.id.color_next_screen_imv)).setVisibility(8);
- } else {
- ((ImageView) findViewById(R.id.color_next_screen_imv)).setVisibility(0);
- }
- int[] iArr2 = duplex_info;
- if (iArr2 == null) {
- findViewById(R.id.duplex_view).setVisibility(8);
- ((LinearLayout) findViewById(R.id.duplex)).setVisibility(8);
- } else if (iArr2.length <= 1) {
- findViewById(R.id.duplex_view).setVisibility(8);
- ((LinearLayout) findViewById(R.id.duplex)).setVisibility(8);
- } else {
- findViewById(R.id.duplex_view).setVisibility(0);
- ((LinearLayout) findViewById(R.id.duplex)).setVisibility(0);
- }
- switch (lang) {
- case 2:
- case 3:
- findViewById(R.id.feed_direction_view).setVisibility(0);
- findViewById(R.id.feed_direction).setVisibility(0);
- break;
- default:
- findViewById(R.id.feed_direction_view).setVisibility(8);
- findViewById(R.id.feed_direction).setVisibility(8);
- break;
- }
- if (isDocumentSetting || printerLocation == 2) {
- findViewById(R.id.printdate).setVisibility(8);
- } else {
- findViewById(R.id.printdate).setVisibility(0);
- }
- if (printerLocation != 2 && !this.isDocumentSetting) {
- i = 0;
- }
- findViewById(R.id.viewGroupPhotoEffect).setVisibility(i);
- findViewById(R.id.apf_setting_layout).setVisibility(i);
- findViewById(R.id.sharpness_setting_layout).setVisibility(i);
- }
- private int getPrinterLang() {
- int i;
- IEpsonService iEpsonService;
- if (!(printerLocation == 2 || (iEpsonService = mEpsonService) == null)) {
- try {
- i = iEpsonService.getLang();
- } catch (RemoteException e) {
- e.printStackTrace();
- }
- EPLog.d("PrintSetting", "getPrinterLang called : ret = " + i);
- return i;
- }
- i = 1;
- EPLog.d("PrintSetting", "getPrinterLang called : ret = " + i);
- return i;
- }
- private void setVisibilityPageRange(boolean z) {
- int i = 0;
- findViewById(R.id.page_range_setting).setVisibility(z ? 0 : 8);
- View findViewById = findViewById(R.id.page_range_separator);
- if (!z) {
- i = 8;
- }
- findViewById.setVisibility(i);
- }
- private void setClickablePageRange(boolean z) {
- findViewById(R.id.page_range_setting).setClickable(z);
- int i = 0;
- findViewById(R.id.page_range_next_screen_imv).setVisibility(z ? 0 : 8);
- View findViewById = findViewById(R.id.page_range_value);
- if (!z) {
- i = 8;
- }
- findViewById.setVisibility(i);
- }
- private void resetSettings() {
- printerDeviceId = null;
- printerId = null;
- printerEmailAddress = null;
- printerIp = null;
- printerLocation = 0;
- info = null;
- paper_source_info = null;
- color_info = null;
- paper_size_info = null;
- paper_type_info = null;
- layout_info = null;
- quality_info = null;
- duplex_info = null;
- autoConnectSsid = "";
- printerName.setText(getString(R.string.str_lbl_title_scan));
- ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setVisibility(8);
- updateSettingView();
- setScreenState(true);
- }
- public void onBackPressed() {
- super.onBackPressed();
- mFinishRequested = true;
- IEpsonService iEpsonService = mEpsonService;
- if (iEpsonService != null) {
- try {
- iEpsonService.cancelSearchPrinter();
- } catch (RemoteException e) {
- e.printStackTrace();
- }
- }
- loadSupportedMediaFile();
- EPPrinterManager ePPrinterManager = new EPPrinterManager(mContext);
- ePPrinterManager.rollbackRemotePrinterInfo();
- ePPrinterManager.rollbackIPPrinterInfo();
- new InkRplnRepository(false).deleteTemporaryData(this);
- }
- private void setScreenState(Boolean bool) {
- if (bool.booleanValue()) {
- progressGetOption.setVisibility(8);
- } else {
- progressGetOption.setVisibility(0);
- }
- findViewById(R.id.printer).setClickable(bool.booleanValue());
- findViewById(R.id.paper_size).setClickable(bool.booleanValue());
- findViewById(R.id.paper_type).setClickable(bool.booleanValue());
- findViewById(R.id.layout).setClickable(bool.booleanValue());
- findViewById(R.id.quality).setClickable(bool.booleanValue());
- findViewById(R.id.paper_source).setClickable(bool.booleanValue());
- findViewById(R.id.color).setClickable(bool.booleanValue());
- findViewById(R.id.duplex).setClickable(bool.booleanValue());
- findViewById(R.id.feed_direction).setClickable(bool.booleanValue());
- findViewById(R.id.printdate).setClickable(bool.booleanValue());
- }
- public void showErrorDialog(String str, String str2) {
- new CustomTitleAlertDialogBuilder(this).setCancelable(false).setTitle(str).setMessage(str2).setNegativeButton(getString(R.string.f343ok), new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialogInterface, int i) {
- SettingScr.this.setScreenState(true);
- dialogInterface.cancel();
- }
- }).create().show();
- updateSupportedMediaFile(true);
- }
- protected void onResume() {
- super.onResume();
- EPLog.e("SettingScr", "onResume()");
- if (printerId != null && printerLocation == 1 && isRetryAfterConnectSimpleAp && !this.mWaiteInkReplenProgress) {
- undoFlag = false;
- if (loadSupportedMediaFile()) {
- mHandler.sendEmptyMessage(1);
- } else {
- mHandler.sendEmptyMessage(17);
- }
- }
- }
- protected void onPause() {
- EPLog.d("SettingScr", "onPause");
- super.onPause();
- if (isFinishing()) {
- mFinishRequested = true;
- deleteLongTapMessage();
- }
- WiFiDirectManager.disconnect(this, WiFiDirectManager.DEVICE_TYPE_PRINTER, printerIp);
- WiFiDirectManager.disconnectSimpleAP(this, autoConnectSsid, printerIp);
- }
- public boolean onCreateOptionsMenu(Menu menu) {
- getMenuInflater().inflate(R.C2138menu.menu_done, menu);
- return super.onCreateOptionsMenu(menu);
- }
- public boolean onOptionsItemSelected(MenuItem menuItem) {
- if (menuItem.getItemId() != R.id.menuSettingsDone) {
- return super.onOptionsItemSelected(menuItem);
- }
- saveChanged();
- setResult(3, getIntent());
- finish();
- return true;
- }
- protected void deleteLongTapMessage() {
- MotionEvent obtain = MotionEvent.obtain(SystemClock.uptimeMillis(), SystemClock.uptimeMillis() + 10, 1, 0.0f, 0.0f, 0);
- copiesMinus.dispatchTouchEvent(obtain);
- copiesPlus.dispatchTouchEvent(obtain);
- }
- public void onConfigurationChanged(Configuration configuration) {
- super.onConfigurationChanged(configuration);
- deleteLongTapMessage();
- }
- }
|