SettingScr.java 152 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021
  1. package epson.print.screen;
  2. import android.content.ComponentName;
  3. import android.content.Context;
  4. import android.content.DialogInterface;
  5. import android.content.Intent;
  6. import android.content.ServiceConnection;
  7. import android.content.SharedPreferences;
  8. import android.content.res.Configuration;
  9. import android.os.AsyncTask;
  10. import android.os.Bundle;
  11. import android.os.Handler;
  12. import android.os.IBinder;
  13. import android.os.RemoteException;
  14. import android.os.SystemClock;
  15. import android.view.Menu;
  16. import android.view.MenuItem;
  17. import android.view.MotionEvent;
  18. import android.view.View;
  19. import android.widget.Button;
  20. import android.widget.ImageView;
  21. import android.widget.LinearLayout;
  22. import android.widget.TextView;
  23. import com.epson.mobilephone.common.escpr.EscprError;
  24. import com.epson.mobilephone.common.escpr.MediaInfo;
  25. import com.epson.mobilephone.common.wifidirect.WiFiDirectManager;
  26. import epson.common.Constants;
  27. import epson.common.ExternalFileUtils;
  28. import epson.common.Utils;
  29. import epson.print.ActivityIACommon;
  30. import epson.print.R;
  31. import epson.print.EPPrinterManager;
  32. import epson.print.MyPrinter;
  33. import epson.print.Util.EPLog;
  34. import epson.print.inkrpln.InkRplnRepository;
  35. import epson.print.screen.PrintSetting;
  36. import epson.print.service.EpsonService;
  37. import epson.print.service.IEpsonService;
  38. import epson.print.service.IEpsonServiceCallback;
  39. import epson.print.widgets.CustomTitleAlertDialogBuilder;
  40. import epson.print.widgets.LayoutEx;
  41. import epson.print.widgets.LongTapRepeatAdapter;
  42. import java.io.File;
  43. public class SettingScr extends ActivityIACommon implements View.OnClickListener {
  44. private static final String EXTRA_PRINTER = "myprinter";
  45. private static final String EXTRA_SIMPLEAP = "simpleap";
  46. private static final int REQUEST_CODE_INFO = 1;
  47. private static final int REQUEST_CODE_INK_REPLENISH_PROGRESS = 4;
  48. private static final int REQUEST_CODE_PAGE_RANGE = 2;
  49. private static final int REQUEST_CODE_PRINTER = 0;
  50. public static final String TAG = "PrintSetting";
  51. private final int COLOR_VALUE_MAX = 50;
  52. private final int COLOR_VALUE_MIN = -50;
  53. private final int COPIES_MAX = 30;
  54. private final int COPIES_MIN = 1;
  55. private final int EPS_ERR_COMM_ERROR = -1100;
  56. private final int EPS_ERR_NONE = 0;
  57. private final int EPS_ERR_OPR_FAIL = -1000;
  58. private final int EPS_ERR_PRINTER_NOT_SET = EscprError.EPS_ERR_PRINTER_NOT_SET;
  59. private final int GET_ADVANCED = 64;
  60. private final int GET_COLOR = 6;
  61. private final int GET_DUPLEX = 32;
  62. private final int GET_LAYOUT = 3;
  63. private final int GET_PAPER_SIZE = 1;
  64. private final int GET_PAPER_SOURCE = 5;
  65. private final int GET_PAPER_TYPE = 2;
  66. private final int GET_QUALITY = 4;
  67. private final int GET_SUPPORTED_MEDIA = 0;
  68. private final int PROBE_PRINTER = 17;
  69. private final int SEARCH_BY_ID = 7;
  70. private final int SEARCH_ERROR = 16;
  71. private final int SETTING_DONE = 3;
  72. private final int SHOW_ERROR_DIALOG = 18;
  73. private TextView apfStateText;
  74. /* access modifiers changed from: private */
  75. public String autoConnectSsid = null;
  76. /* access modifiers changed from: private */
  77. public TextView brightness;
  78. /* access modifiers changed from: private */
  79. public Button brightnessMinus;
  80. /* access modifiers changed from: private */
  81. public Button brightnessPlus;
  82. /* access modifiers changed from: private */
  83. public int brightnessValue;
  84. /* access modifiers changed from: private */
  85. public int color;
  86. /* access modifiers changed from: private */
  87. public TextView colorInfo;
  88. /* access modifiers changed from: private */
  89. public int[] color_info = null;
  90. /* access modifiers changed from: private */
  91. public TextView contrast;
  92. /* access modifiers changed from: private */
  93. public Button contrastMinus;
  94. /* access modifiers changed from: private */
  95. public Button contrastPlus;
  96. /* access modifiers changed from: private */
  97. public int contrastValue;
  98. private TextView copies;
  99. private Button copiesMinus;
  100. private Button copiesPlus;
  101. private int copiesValue;
  102. private boolean disablePrintArea = false;
  103. /* access modifiers changed from: private */
  104. public int duplex;
  105. /* access modifiers changed from: private */
  106. public TextView duplexInfo;
  107. /* access modifiers changed from: private */
  108. public int[] duplex_info = null;
  109. private boolean enableShowPreview = false;
  110. /* access modifiers changed from: private */
  111. public int endValue;
  112. /* access modifiers changed from: private */
  113. public int feedDirection;
  114. /* access modifiers changed from: private */
  115. public TextView feedDirectionInfo;
  116. /* access modifiers changed from: private */
  117. public int[] info = null;
  118. /* access modifiers changed from: private */
  119. public boolean isDocumentSetting = true;
  120. boolean isInfoAvai = false;
  121. Boolean isNotLoading = true;
  122. private boolean isRetryAfterConnectSimpleAp = false;
  123. private boolean isTryConnectSimpleAp = false;
  124. /* access modifiers changed from: private */
  125. public int lang = 1;
  126. /* access modifiers changed from: private */
  127. public int layout;
  128. /* access modifiers changed from: private */
  129. public TextView layoutInfo;
  130. /* access modifiers changed from: private */
  131. public int[] layout_info = null;
  132. /* access modifiers changed from: private */
  133. public IEpsonServiceCallback mCallback = new IEpsonServiceCallback.Stub() {
  134. public void onGetInkState() throws RemoteException {
  135. }
  136. public void onGetStatusState() throws RemoteException {
  137. }
  138. public void onNotifyEndJob(int i) throws RemoteException {
  139. }
  140. public void onNotifyProgress(int i, int i2) throws RemoteException {
  141. }
  142. public void onFindPrinterResult(String str, String str2, String str3, String str4, String str5) throws RemoteException {
  143. String unused = SettingScr.this.printerIp = str2;
  144. }
  145. public void onNotifyContinueable(int i) throws RemoteException {
  146. if (!SettingScr.this.mFinishRequested) {
  147. EPLog.i("IEpsonServiceCallback", "onNotifyContinueable code = " + i);
  148. if (i == 0) {
  149. SettingScr settingScr = SettingScr.this;
  150. settingScr.isInfoAvai = true;
  151. int unused = settingScr.lang = settingScr.getPrinterLang();
  152. SettingScr settingScr2 = SettingScr.this;
  153. settingScr2.undoFlag = false;
  154. settingScr2.mHandler.sendEmptyMessage(0);
  155. }
  156. }
  157. }
  158. public void onNotifyError(int i, int i2, boolean z) throws RemoteException {
  159. if (!SettingScr.this.mFinishRequested) {
  160. EPLog.i("IEpsonServiceCallback", "onNotifyError errorCode = " + i2);
  161. SettingScr settingScr = SettingScr.this;
  162. settingScr.isInfoAvai = true;
  163. int unused = settingScr.lang = settingScr.getPrinterLang();
  164. SettingScr settingScr2 = SettingScr.this;
  165. settingScr2.undoFlag = false;
  166. settingScr2.mHandler.sendEmptyMessage(0);
  167. }
  168. }
  169. };
  170. /* access modifiers changed from: private */
  171. public Context mContext = null;
  172. private ServiceConnection mEpsonConnection = new ServiceConnection() {
  173. public void onServiceDisconnected(ComponentName componentName) {
  174. EPLog.m316v("SettingScr", "onServiceDisconnected");
  175. try {
  176. SettingScr.this.mEpsonService.unregisterCallback(SettingScr.this.mCallback);
  177. } catch (RemoteException e) {
  178. e.printStackTrace();
  179. }
  180. IEpsonService unused = SettingScr.this.mEpsonService = null;
  181. }
  182. public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
  183. IEpsonService unused = SettingScr.this.mEpsonService = IEpsonService.Stub.asInterface(iBinder);
  184. EPLog.m316v("SettingScr", "onServiceConnected");
  185. if (SettingScr.this.mEpsonService != null) {
  186. try {
  187. SettingScr.this.mEpsonService.registerCallback(SettingScr.this.mCallback);
  188. } catch (RemoteException e) {
  189. e.printStackTrace();
  190. }
  191. }
  192. }
  193. };
  194. /* access modifiers changed from: private */
  195. public IEpsonService mEpsonService = null;
  196. /* access modifiers changed from: private */
  197. public volatile boolean mFinishRequested;
  198. Handler mHandler = new Handler(new Handler.Callback() {
  199. /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r1v4, resolved type: boolean} */
  200. /* JADX WARNING: type inference failed for: r1v1 */
  201. /* JADX WARNING: type inference failed for: r1v5 */
  202. /* JADX WARNING: type inference failed for: r1v14, types: [int] */
  203. /* JADX WARNING: type inference failed for: r1v28 */
  204. /* JADX WARNING: Multi-variable type inference failed */
  205. /* JADX WARNING: Removed duplicated region for block: B:199:0x0636 */
  206. /* JADX WARNING: Removed duplicated region for block: B:202:0x0653 */
  207. /* JADX WARNING: Removed duplicated region for block: B:206:0x0667 */
  208. /* JADX WARNING: Removed duplicated region for block: B:212:0x0689 */
  209. /* JADX WARNING: Removed duplicated region for block: B:216:0x06a1 A[LOOP:9: B:214:0x069b->B:216:0x06a1, LOOP_END] */
  210. /* Code decompiled incorrectly, please refer to instructions dump. */
  211. public boolean handleMessage(android.os.Message r15) {
  212. /*
  213. r14 = this;
  214. java.lang.String r0 = "SettingScr"
  215. java.lang.String r1 = "handleMessage call setScreenState = false"
  216. epson.print.Util.EPLog.i(r0, r1)
  217. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  218. r1 = 0
  219. java.lang.Boolean r2 = java.lang.Boolean.valueOf(r1)
  220. r0.setScreenState(r2)
  221. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  222. boolean r0 = r0.mFinishRequested
  223. r2 = 1
  224. if (r0 == 0) goto L_0x001b
  225. return r2
  226. L_0x001b:
  227. epson.print.screen.PrintSetting r0 = new epson.print.screen.PrintSetting
  228. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  229. boolean r4 = r3.isDocumentSetting
  230. if (r4 == 0) goto L_0x0028
  231. epson.print.screen.PrintSetting$Kind r4 = epson.print.screen.PrintSetting.Kind.document
  232. goto L_0x002a
  233. L_0x0028:
  234. epson.print.screen.PrintSetting$Kind r4 = epson.print.screen.PrintSetting.Kind.photo
  235. L_0x002a:
  236. r0.<init>(r3, r4)
  237. int r3 = r15.what
  238. r4 = 64
  239. r5 = 32
  240. r6 = 3
  241. r7 = 0
  242. r8 = 100
  243. r10 = 2
  244. if (r3 == r5) goto L_0x0cba
  245. if (r3 == r4) goto L_0x0b62
  246. r4 = 6
  247. r11 = 5
  248. r12 = 4
  249. r13 = 8
  250. switch(r3) {
  251. case 0: goto L_0x0b45;
  252. case 1: goto L_0x0996;
  253. case 2: goto L_0x06e5;
  254. case 3: goto L_0x04c7;
  255. case 4: goto L_0x03b6;
  256. case 5: goto L_0x0243;
  257. case 6: goto L_0x013c;
  258. default: goto L_0x0044;
  259. }
  260. L_0x0044:
  261. switch(r3) {
  262. case 17: goto L_0x00e7;
  263. case 18: goto L_0x0079;
  264. default: goto L_0x0047;
  265. }
  266. L_0x0047:
  267. java.lang.String r15 = "SettingScr"
  268. java.lang.String r0 = "default"
  269. epson.print.Util.EPLog.i(r15, r0)
  270. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  271. android.widget.TextView r15 = r15.printerName
  272. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  273. r1 = 2131625174(0x7f0e04d6, float:1.8877549E38)
  274. java.lang.String r0 = r0.getString(r1)
  275. r15.setText(r0)
  276. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  277. r0 = 2131231128(0x7f080198, float:1.8078328E38)
  278. android.view.View r15 = r15.findViewById(r0)
  279. android.widget.ImageView r15 = (android.widget.ImageView) r15
  280. r15.setVisibility(r13)
  281. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  282. java.lang.Boolean r0 = java.lang.Boolean.valueOf(r2)
  283. r15.setScreenState(r0)
  284. goto L_0x0e25
  285. L_0x0079:
  286. int r0 = r15.arg1
  287. r3 = -1100(0xfffffffffffffbb4, float:NaN)
  288. if (r0 == r3) goto L_0x00c9
  289. r3 = -1000(0xfffffffffffffc18, float:NaN)
  290. if (r0 == r3) goto L_0x00c9
  291. int r15 = r15.arg1
  292. java.lang.Integer[] r15 = com.epson.mobilephone.common.escpr.MediaInfo.ErrorTable.getStringId(r15)
  293. if (r15 != 0) goto L_0x00a5
  294. java.lang.Integer[] r15 = new java.lang.Integer[r6]
  295. r0 = 2131624506(0x7f0e023a, float:1.8876194E38)
  296. java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
  297. r15[r1] = r0
  298. r0 = 2131624507(0x7f0e023b, float:1.8876196E38)
  299. java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
  300. r15[r2] = r0
  301. java.lang.Integer r0 = java.lang.Integer.valueOf(r2)
  302. r15[r10] = r0
  303. L_0x00a5:
  304. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  305. r3 = r15[r2]
  306. int r3 = r3.intValue()
  307. java.lang.CharSequence r3 = r0.getText(r3)
  308. java.lang.String r3 = r3.toString()
  309. epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this
  310. r15 = r15[r1]
  311. int r15 = r15.intValue()
  312. java.lang.CharSequence r15 = r4.getText(r15)
  313. java.lang.String r15 = r15.toString()
  314. r0.showErrorDialog(r3, r15)
  315. goto L_0x00e0
  316. L_0x00c9:
  317. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  318. r0 = 2131624778(0x7f0e034a, float:1.8876745E38)
  319. java.lang.String r15 = r15.getString(r0)
  320. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  321. r1 = 2131624777(0x7f0e0349, float:1.8876743E38)
  322. java.lang.String r0 = r0.getString(r1)
  323. epson.print.screen.SettingScr r1 = epson.print.screen.SettingScr.this
  324. r1.showErrorDialog(r15, r0)
  325. L_0x00e0:
  326. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  327. r15.resetSettings()
  328. goto L_0x0e25
  329. L_0x00e7:
  330. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  331. epson.print.service.IEpsonService r15 = r15.mEpsonService
  332. r0 = 17
  333. if (r15 == 0) goto L_0x0133
  334. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
  335. int r15 = r15.printerLocation // Catch:{ RemoteException -> 0x012d }
  336. if (r15 == r10) goto L_0x0124
  337. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
  338. epson.print.service.IEpsonService r15 = r15.mEpsonService // Catch:{ RemoteException -> 0x012d }
  339. epson.print.screen.SettingScr r1 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
  340. java.lang.String r1 = r1.printerId // Catch:{ RemoteException -> 0x012d }
  341. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
  342. java.lang.String r3 = r3.printerIp // Catch:{ RemoteException -> 0x012d }
  343. epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
  344. int r4 = r4.printerLocation // Catch:{ RemoteException -> 0x012d }
  345. if (r4 != r6) goto L_0x0114
  346. goto L_0x0115
  347. L_0x0114:
  348. r10 = 1
  349. L_0x0115:
  350. int r15 = r15.searchPrinters(r1, r3, r10) // Catch:{ RemoteException -> 0x012d }
  351. if (r15 == 0) goto L_0x0e25
  352. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
  353. android.os.Handler r15 = r15.mHandler // Catch:{ RemoteException -> 0x012d }
  354. r15.sendEmptyMessageDelayed(r0, r8) // Catch:{ RemoteException -> 0x012d }
  355. goto L_0x0e25
  356. L_0x0124:
  357. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x012d }
  358. android.os.Handler r15 = r15.mHandler // Catch:{ RemoteException -> 0x012d }
  359. r15.sendEmptyMessage(r1) // Catch:{ RemoteException -> 0x012d }
  360. goto L_0x0e25
  361. L_0x012d:
  362. r15 = move-exception
  363. r15.printStackTrace()
  364. goto L_0x0e25
  365. L_0x0133:
  366. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  367. android.os.Handler r15 = r15.mHandler
  368. r15.sendEmptyMessageDelayed(r0, r8)
  369. goto L_0x0e25
  370. L_0x013c:
  371. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  372. epson.print.service.IEpsonService r15 = r15.mEpsonService
  373. if (r15 != 0) goto L_0x014d
  374. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  375. android.os.Handler r15 = r15.mHandler
  376. r15.sendEmptyMessageDelayed(r4, r8)
  377. goto L_0x0e25
  378. L_0x014d:
  379. java.lang.String r15 = "SettingScr"
  380. java.lang.String r0 = "GET_COLOR"
  381. epson.print.Util.EPLog.i(r15, r0)
  382. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  383. int[] unused = r15.color_info = r7
  384. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x018b }
  385. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x018b }
  386. epson.print.service.IEpsonService r0 = r0.mEpsonService // Catch:{ RemoteException -> 0x018b }
  387. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x018b }
  388. int r3 = r3.printerLocation // Catch:{ RemoteException -> 0x018b }
  389. if (r3 != r10) goto L_0x016b
  390. r3 = 1
  391. goto L_0x016c
  392. L_0x016b:
  393. r3 = 0
  394. L_0x016c:
  395. epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x018b }
  396. boolean r4 = r4.isDocumentSetting // Catch:{ RemoteException -> 0x018b }
  397. if (r4 == 0) goto L_0x0176
  398. r4 = 1
  399. goto L_0x0177
  400. L_0x0176:
  401. r4 = 2
  402. L_0x0177:
  403. epson.print.screen.SettingScr r6 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x018b }
  404. int r6 = r6.sizeIndex // Catch:{ RemoteException -> 0x018b }
  405. epson.print.screen.SettingScr r7 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x018b }
  406. int r7 = r7.typeIndex // Catch:{ RemoteException -> 0x018b }
  407. int[] r0 = r0.getColor(r3, r4, r6, r7) // Catch:{ RemoteException -> 0x018b }
  408. int[] unused = r15.color_info = r0 // Catch:{ RemoteException -> 0x018b }
  409. goto L_0x0193
  410. L_0x018b:
  411. r15 = move-exception
  412. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  413. r0.undoFlag = r2
  414. r15.printStackTrace()
  415. L_0x0193:
  416. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  417. int[] r15 = r15.color_info
  418. if (r15 != 0) goto L_0x019f
  419. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  420. r15.undoFlag = r2
  421. L_0x019f:
  422. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  423. int[] r15 = r15.color_info
  424. if (r15 == 0) goto L_0x01b0
  425. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  426. int[] r15 = r15.color_info
  427. int r15 = r15.length
  428. if (r15 > 0) goto L_0x01c7
  429. L_0x01b0:
  430. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  431. int[] r0 = new int[r10]
  432. int[] unused = r15.color_info = r0
  433. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  434. int[] r15 = r15.color_info
  435. r15[r1] = r1
  436. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  437. int[] r15 = r15.color_info
  438. r15[r2] = r2
  439. L_0x01c7:
  440. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  441. int[] r15 = r15.color_info
  442. if (r15 == 0) goto L_0x0e25
  443. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  444. int[] r15 = r15.color_info
  445. int r15 = r15.length
  446. if (r15 <= 0) goto L_0x0e25
  447. r15 = 0
  448. L_0x01d9:
  449. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  450. int[] r0 = r0.color_info
  451. int r0 = r0.length
  452. if (r15 >= r0) goto L_0x01f6
  453. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  454. int r0 = r0.color
  455. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  456. int[] r3 = r3.color_info
  457. r3 = r3[r15]
  458. if (r0 != r3) goto L_0x01f3
  459. goto L_0x01f6
  460. L_0x01f3:
  461. int r15 = r15 + 1
  462. goto L_0x01d9
  463. L_0x01f6:
  464. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  465. int[] r0 = r0.color_info
  466. int r0 = r0.length
  467. if (r15 < r0) goto L_0x020a
  468. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  469. int[] r0 = r15.color_info
  470. r0 = r0[r1]
  471. int unused = r15.color = r0
  472. L_0x020a:
  473. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  474. com.epson.mobilephone.common.escpr.MediaInfo$Color r0 = new com.epson.mobilephone.common.escpr.MediaInfo$Color
  475. r0.<init>()
  476. com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
  477. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  478. android.widget.TextView r15 = r15.colorInfo
  479. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  480. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r1 = r0.mLookupTable
  481. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  482. int r3 = r3.color
  483. int r1 = r1.getStringId(r3)
  484. java.lang.String r0 = r0.getString(r1)
  485. r15.setText(r0)
  486. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  487. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
  488. r15.destructor()
  489. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  490. android.os.Handler r15 = r15.mHandler
  491. r15.sendEmptyMessage(r5)
  492. goto L_0x0e25
  493. L_0x0243:
  494. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  495. epson.print.service.IEpsonService r15 = r15.mEpsonService
  496. if (r15 != 0) goto L_0x0254
  497. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  498. android.os.Handler r15 = r15.mHandler
  499. r15.sendEmptyMessageDelayed(r11, r8)
  500. goto L_0x0e25
  501. L_0x0254:
  502. java.lang.String r15 = "SettingScr"
  503. java.lang.String r0 = "GET_PAPER_SOURCE"
  504. epson.print.Util.EPLog.i(r15, r0)
  505. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  506. int[] unused = r15.paper_source_info = r7
  507. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
  508. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
  509. epson.print.service.IEpsonService r0 = r0.mEpsonService // Catch:{ RemoteException -> 0x02e2 }
  510. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
  511. int r3 = r3.sizeIndex // Catch:{ RemoteException -> 0x02e2 }
  512. epson.print.screen.SettingScr r5 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
  513. int r5 = r5.typeIndex // Catch:{ RemoteException -> 0x02e2 }
  514. epson.print.screen.SettingScr r6 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
  515. int r6 = r6.printerLocation // Catch:{ RemoteException -> 0x02e2 }
  516. int[] r0 = r0.getPaperSource(r3, r5, r6) // Catch:{ RemoteException -> 0x02e2 }
  517. int[] unused = r15.paper_source_info = r0 // Catch:{ RemoteException -> 0x02e2 }
  518. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
  519. int[] r15 = r15.paper_source_info // Catch:{ RemoteException -> 0x02e2 }
  520. if (r15 == 0) goto L_0x02ea
  521. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
  522. boolean r15 = r15.isDocumentSetting // Catch:{ RemoteException -> 0x02e2 }
  523. if (r15 == 0) goto L_0x02ea
  524. java.util.ArrayList r15 = new java.util.ArrayList // Catch:{ RemoteException -> 0x02e2 }
  525. r15.<init>() // Catch:{ RemoteException -> 0x02e2 }
  526. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
  527. int[] r0 = r0.paper_source_info // Catch:{ RemoteException -> 0x02e2 }
  528. int r3 = r0.length // Catch:{ RemoteException -> 0x02e2 }
  529. r5 = 0
  530. L_0x029e:
  531. if (r5 >= r3) goto L_0x02af
  532. r6 = r0[r5] // Catch:{ RemoteException -> 0x02e2 }
  533. if (r6 != r13) goto L_0x02a5
  534. goto L_0x02ac
  535. L_0x02a5:
  536. java.lang.Integer r6 = java.lang.Integer.valueOf(r6) // Catch:{ RemoteException -> 0x02e2 }
  537. r15.add(r6) // Catch:{ RemoteException -> 0x02e2 }
  538. L_0x02ac:
  539. int r5 = r5 + 1
  540. goto L_0x029e
  541. L_0x02af:
  542. int r0 = r15.size() // Catch:{ RemoteException -> 0x02e2 }
  543. if (r0 <= 0) goto L_0x02dc
  544. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
  545. int r3 = r15.size() // Catch:{ RemoteException -> 0x02e2 }
  546. int[] r3 = new int[r3] // Catch:{ RemoteException -> 0x02e2 }
  547. int[] unused = r0.paper_source_info = r3 // Catch:{ RemoteException -> 0x02e2 }
  548. r0 = 0
  549. L_0x02c1:
  550. int r3 = r15.size() // Catch:{ RemoteException -> 0x02e2 }
  551. if (r0 >= r3) goto L_0x02ea
  552. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
  553. int[] r3 = r3.paper_source_info // Catch:{ RemoteException -> 0x02e2 }
  554. java.lang.Object r5 = r15.get(r0) // Catch:{ RemoteException -> 0x02e2 }
  555. java.lang.Integer r5 = (java.lang.Integer) r5 // Catch:{ RemoteException -> 0x02e2 }
  556. int r5 = r5.intValue() // Catch:{ RemoteException -> 0x02e2 }
  557. r3[r0] = r5 // Catch:{ RemoteException -> 0x02e2 }
  558. int r0 = r0 + 1
  559. goto L_0x02c1
  560. L_0x02dc:
  561. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x02e2 }
  562. int[] unused = r15.paper_source_info = r7 // Catch:{ RemoteException -> 0x02e2 }
  563. goto L_0x02ea
  564. L_0x02e2:
  565. r15 = move-exception
  566. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  567. r0.undoFlag = r2
  568. r15.printStackTrace()
  569. L_0x02ea:
  570. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  571. int[] r15 = r15.paper_source_info
  572. if (r15 != 0) goto L_0x0305
  573. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  574. r15.undoFlag = r2
  575. int[] r0 = new int[r2]
  576. int[] unused = r15.paper_source_info = r0
  577. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  578. int[] r15 = r15.paper_source_info
  579. r0 = 128(0x80, float:1.794E-43)
  580. r15[r1] = r0
  581. L_0x0305:
  582. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  583. int[] r15 = r15.paper_source_info
  584. if (r15 == 0) goto L_0x0e25
  585. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  586. int[] r15 = r15.paper_source_info
  587. int r15 = r15.length
  588. if (r15 <= 0) goto L_0x0e25
  589. r15 = 0
  590. L_0x0317:
  591. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  592. int[] r0 = r0.paper_source_info
  593. int r0 = r0.length
  594. if (r15 >= r0) goto L_0x0334
  595. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  596. int r0 = r0.paperSource
  597. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  598. int[] r3 = r3.paper_source_info
  599. r3 = r3[r15]
  600. if (r0 != r3) goto L_0x0331
  601. goto L_0x0334
  602. L_0x0331:
  603. int r15 = r15 + 1
  604. goto L_0x0317
  605. L_0x0334:
  606. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  607. int[] r0 = r0.paper_source_info
  608. int r0 = r0.length
  609. if (r15 < r0) goto L_0x0348
  610. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  611. int[] r0 = r15.paper_source_info
  612. r0 = r0[r1]
  613. int unused = r15.paperSource = r0
  614. L_0x0348:
  615. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  616. int unused = r15.paperSource
  617. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  618. int[] r15 = r15.paper_source_info
  619. if (r15 == 0) goto L_0x036f
  620. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  621. int[] r15 = r15.paper_source_info
  622. int r15 = r15.length
  623. if (r15 > r2) goto L_0x036f
  624. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  625. r0 = 2131231313(0x7f080251, float:1.8078703E38)
  626. android.view.View r15 = r15.findViewById(r0)
  627. android.widget.ImageView r15 = (android.widget.ImageView) r15
  628. r15.setVisibility(r13)
  629. r15 = 128(0x80, float:1.794E-43)
  630. goto L_0x0383
  631. L_0x036f:
  632. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  633. r0 = 2131231313(0x7f080251, float:1.8078703E38)
  634. android.view.View r15 = r15.findViewById(r0)
  635. android.widget.ImageView r15 = (android.widget.ImageView) r15
  636. r15.setVisibility(r1)
  637. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  638. int r15 = r15.paperSource
  639. L_0x0383:
  640. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  641. com.epson.mobilephone.common.escpr.MediaInfo$PaperSource r1 = new com.epson.mobilephone.common.escpr.MediaInfo$PaperSource
  642. r1.<init>()
  643. com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r0.mLookupTable = r1
  644. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  645. android.widget.TextView r0 = r0.paperSourceInfo
  646. epson.print.screen.SettingScr r1 = epson.print.screen.SettingScr.this
  647. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r3 = r1.mLookupTable
  648. int r15 = r3.getStringId(r15)
  649. java.lang.String r15 = r1.getString(r15)
  650. r0.setText(r15)
  651. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  652. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
  653. r15.destructor()
  654. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  655. android.os.Handler r15 = r15.mHandler
  656. r15.sendEmptyMessage(r4)
  657. goto L_0x0e25
  658. L_0x03b6:
  659. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  660. epson.print.service.IEpsonService r15 = r15.mEpsonService
  661. if (r15 != 0) goto L_0x03c7
  662. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  663. android.os.Handler r15 = r15.mHandler
  664. r15.sendEmptyMessageDelayed(r12, r8)
  665. goto L_0x0e25
  666. L_0x03c7:
  667. java.lang.String r15 = "SettingScr"
  668. java.lang.String r0 = "GET_QUALITY"
  669. epson.print.Util.EPLog.i(r15, r0)
  670. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  671. int[] unused = r15.info = r7
  672. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x03ef }
  673. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x03ef }
  674. epson.print.service.IEpsonService r0 = r0.mEpsonService // Catch:{ RemoteException -> 0x03ef }
  675. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x03ef }
  676. int r3 = r3.sizeIndex // Catch:{ RemoteException -> 0x03ef }
  677. epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x03ef }
  678. int r4 = r4.typeIndex // Catch:{ RemoteException -> 0x03ef }
  679. int[] r0 = r0.getQuality(r3, r4) // Catch:{ RemoteException -> 0x03ef }
  680. int[] unused = r15.info = r0 // Catch:{ RemoteException -> 0x03ef }
  681. goto L_0x03f7
  682. L_0x03ef:
  683. r15 = move-exception
  684. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  685. r0.undoFlag = r2
  686. r15.printStackTrace()
  687. L_0x03f7:
  688. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  689. int[] r15 = r15.info
  690. if (r15 != 0) goto L_0x0410
  691. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  692. r15.undoFlag = r2
  693. int[] r0 = new int[r2]
  694. int[] unused = r15.info = r0
  695. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  696. int[] r15 = r15.info
  697. r15[r1] = r10
  698. L_0x0410:
  699. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  700. int[] r15 = r15.info
  701. if (r15 == 0) goto L_0x0e25
  702. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  703. int[] r15 = r15.info
  704. int r15 = r15.length
  705. if (r15 <= 0) goto L_0x0e25
  706. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  707. int[] r15 = r15.info
  708. int r15 = r15.length
  709. if (r15 > r2) goto L_0x0439
  710. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  711. r0 = 2131231394(0x7f0802a2, float:1.8078868E38)
  712. android.view.View r15 = r15.findViewById(r0)
  713. android.widget.ImageView r15 = (android.widget.ImageView) r15
  714. r15.setVisibility(r13)
  715. goto L_0x0447
  716. L_0x0439:
  717. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  718. r0 = 2131231394(0x7f0802a2, float:1.8078868E38)
  719. android.view.View r15 = r15.findViewById(r0)
  720. android.widget.ImageView r15 = (android.widget.ImageView) r15
  721. r15.setVisibility(r1)
  722. L_0x0447:
  723. r15 = 0
  724. L_0x0448:
  725. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  726. int[] r0 = r0.info
  727. int r0 = r0.length
  728. if (r15 >= r0) goto L_0x0465
  729. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  730. int r0 = r0.quality
  731. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  732. int[] r3 = r3.info
  733. r3 = r3[r15]
  734. if (r0 != r3) goto L_0x0462
  735. goto L_0x0465
  736. L_0x0462:
  737. int r15 = r15 + 1
  738. goto L_0x0448
  739. L_0x0465:
  740. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  741. int[] r0 = r0.info
  742. int r0 = r0.length
  743. if (r15 < r0) goto L_0x0479
  744. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  745. int[] r0 = r15.info
  746. r0 = r0[r1]
  747. int unused = r15.quality = r0
  748. L_0x0479:
  749. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  750. int[] r0 = r15.info
  751. int r0 = r0.length
  752. int[] r0 = new int[r0]
  753. int[] unused = r15.quality_info = r0
  754. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  755. int[] r0 = r15.info
  756. int[] unused = r15.quality_info = r0
  757. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  758. com.epson.mobilephone.common.escpr.MediaInfo$Quality r0 = new com.epson.mobilephone.common.escpr.MediaInfo$Quality
  759. r0.<init>()
  760. com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
  761. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  762. android.widget.TextView r15 = r15.qualityInfo
  763. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  764. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r1 = r0.mLookupTable
  765. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  766. int r3 = r3.quality
  767. int r1 = r1.getStringId(r3)
  768. java.lang.String r0 = r0.getString(r1)
  769. r15.setText(r0)
  770. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  771. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
  772. r15.destructor()
  773. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  774. android.os.Handler r15 = r15.mHandler
  775. r15.sendEmptyMessage(r11)
  776. goto L_0x0e25
  777. L_0x04c7:
  778. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  779. epson.print.service.IEpsonService r15 = r15.mEpsonService
  780. if (r15 != 0) goto L_0x04d8
  781. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  782. android.os.Handler r15 = r15.mHandler
  783. r15.sendEmptyMessageDelayed(r6, r8)
  784. goto L_0x0e25
  785. L_0x04d8:
  786. java.lang.String r15 = "SettingScr"
  787. java.lang.String r0 = "GET_LAYOUT"
  788. epson.print.Util.EPLog.i(r15, r0)
  789. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  790. int[] unused = r15.info = r7
  791. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0500 }
  792. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0500 }
  793. epson.print.service.IEpsonService r0 = r0.mEpsonService // Catch:{ RemoteException -> 0x0500 }
  794. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0500 }
  795. int r3 = r3.sizeIndex // Catch:{ RemoteException -> 0x0500 }
  796. epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0500 }
  797. int r4 = r4.typeIndex // Catch:{ RemoteException -> 0x0500 }
  798. int[] r0 = r0.getLayout(r3, r4) // Catch:{ RemoteException -> 0x0500 }
  799. int[] unused = r15.info = r0 // Catch:{ RemoteException -> 0x0500 }
  800. goto L_0x0508
  801. L_0x0500:
  802. r15 = move-exception
  803. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  804. r0.undoFlag = r2
  805. r15.printStackTrace()
  806. L_0x0508:
  807. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  808. boolean r15 = r15.isDocumentSetting
  809. if (r15 != r2) goto L_0x0520
  810. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  811. int[] r0 = new int[r2]
  812. int[] unused = r15.info = r0
  813. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  814. int[] r15 = r15.info
  815. r15[r1] = r10
  816. goto L_0x053c
  817. L_0x0520:
  818. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  819. int[] r15 = r15.info
  820. if (r15 != 0) goto L_0x053c
  821. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  822. r15.undoFlag = r2
  823. int[] r15 = r15.info
  824. if (r15 != 0) goto L_0x053c
  825. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  826. int[] r0 = new int[r10]
  827. r0 = {2, 1} // fill-array
  828. int[] unused = r15.info = r0
  829. L_0x053c:
  830. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  831. int[] r15 = r15.info
  832. int r15 = java.util.Arrays.binarySearch(r15, r10)
  833. if (r15 < 0) goto L_0x05ba
  834. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  835. int r15 = r15.printerLocation
  836. if (r15 == r10) goto L_0x05ba
  837. java.util.ArrayList r15 = new java.util.ArrayList
  838. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  839. int[] r0 = r0.info
  840. int r0 = r0.length
  841. r15.<init>(r0)
  842. r0 = 0
  843. L_0x055d:
  844. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  845. int[] r3 = r3.info
  846. int r3 = r3.length
  847. if (r0 >= r3) goto L_0x0578
  848. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  849. int[] r3 = r3.info
  850. r3 = r3[r0]
  851. java.lang.Integer r3 = java.lang.Integer.valueOf(r3)
  852. r15.add(r3)
  853. int r0 = r0 + 1
  854. goto L_0x055d
  855. L_0x0578:
  856. r0 = 65536(0x10000, float:9.18355E-41)
  857. java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
  858. r15.add(r0)
  859. r0 = 131072(0x20000, float:1.83671E-40)
  860. java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
  861. r15.add(r0)
  862. r0 = 262144(0x40000, float:3.67342E-40)
  863. java.lang.Integer r0 = java.lang.Integer.valueOf(r0)
  864. r15.add(r0)
  865. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  866. int r3 = r15.size()
  867. int[] r3 = new int[r3]
  868. int[] unused = r0.info = r3
  869. r0 = 0
  870. L_0x059f:
  871. int r3 = r15.size()
  872. if (r0 >= r3) goto L_0x05ba
  873. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  874. int[] r3 = r3.info
  875. java.lang.Object r4 = r15.get(r0)
  876. java.lang.Integer r4 = (java.lang.Integer) r4
  877. int r4 = r4.intValue()
  878. r3[r0] = r4
  879. int r0 = r0 + 1
  880. goto L_0x059f
  881. L_0x05ba:
  882. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  883. int[] r15 = r15.info
  884. if (r15 == 0) goto L_0x0e25
  885. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  886. int[] r15 = r15.info
  887. int r15 = r15.length
  888. if (r15 <= 0) goto L_0x0e25
  889. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  890. int[] r15 = r15.info
  891. int r15 = r15.length
  892. if (r15 > r2) goto L_0x05e3
  893. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  894. r0 = 2131231162(0x7f0801ba, float:1.8078397E38)
  895. android.view.View r15 = r15.findViewById(r0)
  896. android.widget.ImageView r15 = (android.widget.ImageView) r15
  897. r15.setVisibility(r13)
  898. goto L_0x05f1
  899. L_0x05e3:
  900. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  901. r0 = 2131231162(0x7f0801ba, float:1.8078397E38)
  902. android.view.View r15 = r15.findViewById(r0)
  903. android.widget.ImageView r15 = (android.widget.ImageView) r15
  904. r15.setVisibility(r1)
  905. L_0x05f1:
  906. r15 = 0
  907. L_0x05f2:
  908. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  909. int[] r0 = r0.info
  910. int r0 = r0.length
  911. if (r15 >= r0) goto L_0x062d
  912. java.lang.String r0 = "layout info"
  913. java.lang.StringBuilder r3 = new java.lang.StringBuilder
  914. r3.<init>()
  915. java.lang.String r4 = "layout info "
  916. r3.append(r4)
  917. epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this
  918. int[] r4 = r4.info
  919. r4 = r4[r15]
  920. r3.append(r4)
  921. java.lang.String r3 = r3.toString()
  922. epson.print.Util.EPLog.m316v(r0, r3)
  923. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  924. int r0 = r0.layout
  925. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  926. int[] r3 = r3.info
  927. r3 = r3[r15]
  928. if (r0 != r3) goto L_0x062a
  929. goto L_0x062d
  930. L_0x062a:
  931. int r15 = r15 + 1
  932. goto L_0x05f2
  933. L_0x062d:
  934. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  935. int[] r0 = r0.info
  936. int r0 = r0.length
  937. if (r15 < r0) goto L_0x0641
  938. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  939. int[] r0 = r15.info
  940. r0 = r0[r1]
  941. int unused = r15.layout = r0
  942. L_0x0641:
  943. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  944. epson.print.widgets.LayoutEx r0 = new epson.print.widgets.LayoutEx
  945. r0.<init>()
  946. com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
  947. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  948. int r15 = r15.layout
  949. if (r15 != r13) goto L_0x0658
  950. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  951. int unused = r15.layout = r10
  952. L_0x0658:
  953. java.util.ArrayList r15 = new java.util.ArrayList
  954. r15.<init>()
  955. r0 = 0
  956. L_0x065e:
  957. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  958. int[] r3 = r3.info
  959. int r3 = r3.length
  960. if (r0 >= r3) goto L_0x0683
  961. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  962. int[] r3 = r3.info
  963. r3 = r3[r0]
  964. if (r3 == r13) goto L_0x0680
  965. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  966. int[] r3 = r3.info
  967. r3 = r3[r0]
  968. java.lang.Integer r3 = java.lang.Integer.valueOf(r3)
  969. r15.add(r3)
  970. L_0x0680:
  971. int r0 = r0 + 1
  972. goto L_0x065e
  973. L_0x0683:
  974. int r0 = r15.size()
  975. if (r0 != 0) goto L_0x0690
  976. java.lang.Integer r0 = java.lang.Integer.valueOf(r10)
  977. r15.add(r0)
  978. L_0x0690:
  979. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  980. int r3 = r15.size()
  981. int[] r3 = new int[r3]
  982. int[] unused = r0.layout_info = r3
  983. L_0x069b:
  984. int r0 = r15.size()
  985. if (r1 >= r0) goto L_0x06b6
  986. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  987. int[] r0 = r0.layout_info
  988. java.lang.Object r3 = r15.get(r1)
  989. java.lang.Integer r3 = (java.lang.Integer) r3
  990. int r3 = r3.intValue()
  991. r0[r1] = r3
  992. int r1 = r1 + 1
  993. goto L_0x069b
  994. L_0x06b6:
  995. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  996. android.widget.TextView r15 = r15.layoutInfo
  997. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  998. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r1 = r0.mLookupTable
  999. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1000. int r3 = r3.layout
  1001. int r1 = r1.getStringId(r3)
  1002. java.lang.String r0 = r0.getString(r1)
  1003. r15.setText(r0)
  1004. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1005. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
  1006. r15.destructor()
  1007. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1008. android.os.Handler r15 = r15.mHandler
  1009. r15.sendEmptyMessage(r12)
  1010. goto L_0x0e25
  1011. L_0x06e5:
  1012. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1013. epson.print.service.IEpsonService r15 = r15.mEpsonService
  1014. if (r15 != 0) goto L_0x06f6
  1015. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1016. android.os.Handler r15 = r15.mHandler
  1017. r15.sendEmptyMessageDelayed(r10, r8)
  1018. goto L_0x0e25
  1019. L_0x06f6:
  1020. java.lang.String r15 = "SettingScr"
  1021. java.lang.String r3 = "GET_PAPER_TYPE"
  1022. epson.print.Util.EPLog.i(r15, r3)
  1023. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1024. int[] unused = r15.info = r7
  1025. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
  1026. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
  1027. epson.print.service.IEpsonService r3 = r3.mEpsonService // Catch:{ RemoteException -> 0x077e }
  1028. epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
  1029. int r4 = r4.sizeIndex // Catch:{ RemoteException -> 0x077e }
  1030. int[] r3 = r3.getPaperType(r4) // Catch:{ RemoteException -> 0x077e }
  1031. int[] unused = r15.info = r3 // Catch:{ RemoteException -> 0x077e }
  1032. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
  1033. int[] r15 = r15.info // Catch:{ RemoteException -> 0x077e }
  1034. if (r15 == 0) goto L_0x0786
  1035. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
  1036. boolean r15 = r15.isDocumentSetting // Catch:{ RemoteException -> 0x077e }
  1037. if (r15 == 0) goto L_0x0786
  1038. java.util.ArrayList r15 = new java.util.ArrayList // Catch:{ RemoteException -> 0x077e }
  1039. r15.<init>() // Catch:{ RemoteException -> 0x077e }
  1040. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
  1041. int[] r3 = r3.info // Catch:{ RemoteException -> 0x077e }
  1042. int r4 = r3.length // Catch:{ RemoteException -> 0x077e }
  1043. r5 = 0
  1044. L_0x0734:
  1045. if (r5 >= r4) goto L_0x074b
  1046. r8 = r3[r5] // Catch:{ RemoteException -> 0x077e }
  1047. r9 = 91
  1048. if (r8 < r9) goto L_0x0741
  1049. r9 = 93
  1050. if (r8 > r9) goto L_0x0741
  1051. goto L_0x0748
  1052. L_0x0741:
  1053. java.lang.Integer r8 = java.lang.Integer.valueOf(r8) // Catch:{ RemoteException -> 0x077e }
  1054. r15.add(r8) // Catch:{ RemoteException -> 0x077e }
  1055. L_0x0748:
  1056. int r5 = r5 + 1
  1057. goto L_0x0734
  1058. L_0x074b:
  1059. int r3 = r15.size() // Catch:{ RemoteException -> 0x077e }
  1060. if (r3 <= 0) goto L_0x0778
  1061. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
  1062. int r4 = r15.size() // Catch:{ RemoteException -> 0x077e }
  1063. int[] r4 = new int[r4] // Catch:{ RemoteException -> 0x077e }
  1064. int[] unused = r3.info = r4 // Catch:{ RemoteException -> 0x077e }
  1065. r3 = 0
  1066. L_0x075d:
  1067. int r4 = r15.size() // Catch:{ RemoteException -> 0x077e }
  1068. if (r3 >= r4) goto L_0x0786
  1069. epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
  1070. int[] r4 = r4.info // Catch:{ RemoteException -> 0x077e }
  1071. java.lang.Object r5 = r15.get(r3) // Catch:{ RemoteException -> 0x077e }
  1072. java.lang.Integer r5 = (java.lang.Integer) r5 // Catch:{ RemoteException -> 0x077e }
  1073. int r5 = r5.intValue() // Catch:{ RemoteException -> 0x077e }
  1074. r4[r3] = r5 // Catch:{ RemoteException -> 0x077e }
  1075. int r3 = r3 + 1
  1076. goto L_0x075d
  1077. L_0x0778:
  1078. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x077e }
  1079. int[] unused = r15.info = r7 // Catch:{ RemoteException -> 0x077e }
  1080. goto L_0x0786
  1081. L_0x077e:
  1082. r15 = move-exception
  1083. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1084. r3.undoFlag = r2
  1085. r15.printStackTrace()
  1086. L_0x0786:
  1087. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1088. int[] r15 = r15.info
  1089. if (r15 != 0) goto L_0x07af
  1090. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1091. r15.undoFlag = r2
  1092. int[] r15 = r15.info
  1093. if (r15 != 0) goto L_0x07af
  1094. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1095. int[] r3 = new int[r10]
  1096. com.epson.mobilephone.common.PrintingLib.define.Constants$MediaName r4 = com.epson.mobilephone.common.PrintingLib.define.Constants.MediaName.EPS_MTID_PLAIN
  1097. int r4 = r4.getCode()
  1098. r3[r1] = r4
  1099. com.epson.mobilephone.common.PrintingLib.define.Constants$MediaName r4 = com.epson.mobilephone.common.PrintingLib.define.Constants.MediaName.EPS_MTID_PGPHOTO
  1100. int r4 = r4.getCode()
  1101. r3[r2] = r4
  1102. int[] unused = r15.info = r3
  1103. L_0x07af:
  1104. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1105. int[] r15 = r15.info
  1106. if (r15 == 0) goto L_0x0e25
  1107. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1108. int[] r15 = r15.info
  1109. int r15 = r15.length
  1110. if (r15 <= 0) goto L_0x0e25
  1111. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1112. int[] r15 = r15.info
  1113. int r15 = r15.length
  1114. if (r15 > r2) goto L_0x07d8
  1115. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1116. r3 = 2131231316(0x7f080254, float:1.807871E38)
  1117. android.view.View r15 = r15.findViewById(r3)
  1118. android.widget.ImageView r15 = (android.widget.ImageView) r15
  1119. r15.setVisibility(r13)
  1120. goto L_0x07e6
  1121. L_0x07d8:
  1122. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1123. r3 = 2131231316(0x7f080254, float:1.807871E38)
  1124. android.view.View r15 = r15.findViewById(r3)
  1125. android.widget.ImageView r15 = (android.widget.ImageView) r15
  1126. r15.setVisibility(r1)
  1127. L_0x07e6:
  1128. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1129. int unused = r15.typeIndex = r1
  1130. L_0x07eb:
  1131. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1132. int r15 = r15.typeIndex
  1133. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1134. int[] r3 = r3.info
  1135. int r3 = r3.length
  1136. if (r15 >= r3) goto L_0x0817
  1137. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1138. int r15 = r15.paperType
  1139. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1140. int[] r3 = r3.info
  1141. epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this
  1142. int r4 = r4.typeIndex
  1143. r3 = r3[r4]
  1144. if (r15 != r3) goto L_0x0811
  1145. goto L_0x0817
  1146. L_0x0811:
  1147. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1148. epson.print.screen.SettingScr.access$1708(r15)
  1149. goto L_0x07eb
  1150. L_0x0817:
  1151. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1152. int r15 = r15.typeIndex
  1153. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1154. int[] r3 = r3.info
  1155. int r3 = r3.length
  1156. if (r15 < r3) goto L_0x085a
  1157. int r15 = r0.getDefaultPaperType()
  1158. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1159. int unused = r0.typeIndex = r1
  1160. L_0x082f:
  1161. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1162. int r0 = r0.typeIndex
  1163. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1164. int[] r3 = r3.info
  1165. int r3 = r3.length
  1166. if (r0 >= r3) goto L_0x085a
  1167. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1168. int[] r0 = r0.info
  1169. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1170. int r3 = r3.typeIndex
  1171. r0 = r0[r3]
  1172. if (r15 != r0) goto L_0x0854
  1173. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1174. int unused = r0.paperType = r15
  1175. goto L_0x085a
  1176. L_0x0854:
  1177. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1178. epson.print.screen.SettingScr.access$1708(r0)
  1179. goto L_0x082f
  1180. L_0x085a:
  1181. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1182. int r15 = r15.typeIndex
  1183. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1184. int[] r0 = r0.info
  1185. int r0 = r0.length
  1186. if (r15 < r0) goto L_0x0923
  1187. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1188. boolean r15 = r15.isDocumentSetting
  1189. if (r15 != 0) goto L_0x08a8
  1190. com.epson.mobilephone.common.PrintingLib.define.Constants$MediaName r15 = com.epson.mobilephone.common.PrintingLib.define.Constants.MediaName.EPS_MTID_MATTE
  1191. int r15 = r15.getCode()
  1192. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1193. int unused = r0.typeIndex = r1
  1194. L_0x087c:
  1195. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1196. int r0 = r0.typeIndex
  1197. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1198. int[] r3 = r3.info
  1199. int r3 = r3.length
  1200. if (r0 >= r3) goto L_0x0923
  1201. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1202. int[] r0 = r0.info
  1203. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1204. int r3 = r3.typeIndex
  1205. r0 = r0[r3]
  1206. if (r15 != r0) goto L_0x08a2
  1207. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1208. int unused = r0.paperType = r15
  1209. goto L_0x0923
  1210. L_0x08a2:
  1211. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1212. epson.print.screen.SettingScr.access$1708(r0)
  1213. goto L_0x087c
  1214. L_0x08a8:
  1215. com.epson.mobilephone.common.PrintingLib.define.Constants$MediaName r15 = com.epson.mobilephone.common.PrintingLib.define.Constants.MediaName.EPS_MTID_PLAIN1
  1216. int r15 = r15.getCode()
  1217. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1218. int unused = r0.typeIndex = r1
  1219. L_0x08b3:
  1220. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1221. int r0 = r0.typeIndex
  1222. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1223. int[] r3 = r3.info
  1224. int r3 = r3.length
  1225. if (r0 >= r3) goto L_0x08de
  1226. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1227. int[] r0 = r0.info
  1228. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1229. int r3 = r3.typeIndex
  1230. r0 = r0[r3]
  1231. if (r15 != r0) goto L_0x08d8
  1232. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1233. int unused = r0.paperType = r15
  1234. goto L_0x08de
  1235. L_0x08d8:
  1236. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1237. epson.print.screen.SettingScr.access$1708(r0)
  1238. goto L_0x08b3
  1239. L_0x08de:
  1240. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1241. int r15 = r15.typeIndex
  1242. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1243. int[] r0 = r0.info
  1244. int r0 = r0.length
  1245. if (r15 < r0) goto L_0x0923
  1246. com.epson.mobilephone.common.PrintingLib.define.Constants$MediaName r15 = com.epson.mobilephone.common.PrintingLib.define.Constants.MediaName.EPS_MTID_AUTO_PLAIN
  1247. int r15 = r15.getCode()
  1248. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1249. int unused = r0.typeIndex = r1
  1250. L_0x08f8:
  1251. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1252. int r0 = r0.typeIndex
  1253. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1254. int[] r3 = r3.info
  1255. int r3 = r3.length
  1256. if (r0 >= r3) goto L_0x0923
  1257. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1258. int[] r0 = r0.info
  1259. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1260. int r3 = r3.typeIndex
  1261. r0 = r0[r3]
  1262. if (r15 != r0) goto L_0x091d
  1263. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1264. int unused = r0.paperType = r15
  1265. goto L_0x0923
  1266. L_0x091d:
  1267. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1268. epson.print.screen.SettingScr.access$1708(r0)
  1269. goto L_0x08f8
  1270. L_0x0923:
  1271. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1272. int r15 = r15.typeIndex
  1273. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1274. int[] r0 = r0.info
  1275. int r0 = r0.length
  1276. if (r15 < r0) goto L_0x0948
  1277. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1278. int unused = r15.typeIndex = r1
  1279. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1280. int[] r0 = r15.info
  1281. epson.print.screen.SettingScr r1 = epson.print.screen.SettingScr.this
  1282. int r1 = r1.typeIndex
  1283. r0 = r0[r1]
  1284. int unused = r15.paperType = r0
  1285. L_0x0948:
  1286. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1287. int[] r0 = r15.info
  1288. int r0 = r0.length
  1289. int[] r0 = new int[r0]
  1290. int[] unused = r15.paper_type_info = r0
  1291. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1292. int[] r0 = r15.info
  1293. int[] unused = r15.paper_type_info = r0
  1294. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1295. com.epson.mobilephone.common.escpr.MediaInfo$PaperType r0 = new com.epson.mobilephone.common.escpr.MediaInfo$PaperType
  1296. r0.<init>()
  1297. com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
  1298. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1299. android.widget.TextView r15 = r15.paperTypeInfo
  1300. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1301. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r1 = r0.mLookupTable
  1302. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1303. int r3 = r3.paperType
  1304. int r1 = r1.getStringId(r3)
  1305. java.lang.String r0 = r0.getString(r1)
  1306. r15.setText(r0)
  1307. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1308. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
  1309. r15.destructor()
  1310. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1311. android.os.Handler r15 = r15.mHandler
  1312. r15.sendEmptyMessage(r6)
  1313. goto L_0x0e25
  1314. L_0x0996:
  1315. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1316. epson.print.service.IEpsonService r15 = r15.mEpsonService
  1317. if (r15 != 0) goto L_0x09a7
  1318. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1319. android.os.Handler r15 = r15.mHandler
  1320. r15.sendEmptyMessageDelayed(r2, r8)
  1321. goto L_0x0e25
  1322. L_0x09a7:
  1323. java.lang.String r15 = "SettingScr"
  1324. java.lang.String r3 = "GET_PAPER_SIZE"
  1325. epson.print.Util.EPLog.i(r15, r3)
  1326. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1327. int[] unused = r15.info = r7
  1328. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x09c3 }
  1329. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x09c3 }
  1330. epson.print.service.IEpsonService r3 = r3.mEpsonService // Catch:{ RemoteException -> 0x09c3 }
  1331. int[] r3 = r3.getPaperSize() // Catch:{ RemoteException -> 0x09c3 }
  1332. int[] unused = r15.info = r3 // Catch:{ RemoteException -> 0x09c3 }
  1333. goto L_0x09cb
  1334. L_0x09c3:
  1335. r15 = move-exception
  1336. r15.printStackTrace()
  1337. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1338. r15.undoFlag = r2
  1339. L_0x09cb:
  1340. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1341. int[] r15 = r15.info
  1342. if (r15 != 0) goto L_0x0a27
  1343. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1344. r15.undoFlag = r2
  1345. r3 = 9
  1346. int[] r3 = new int[r3]
  1347. com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_A4
  1348. int r5 = r5.getCode()
  1349. r3[r1] = r5
  1350. com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_A3
  1351. int r5 = r5.getCode()
  1352. r3[r2] = r5
  1353. com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_B4
  1354. int r5 = r5.getCode()
  1355. r3[r10] = r5
  1356. com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_B5
  1357. int r5 = r5.getCode()
  1358. r3[r6] = r5
  1359. com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_LETTER
  1360. int r5 = r5.getCode()
  1361. r3[r12] = r5
  1362. com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_LEGAL
  1363. int r5 = r5.getCode()
  1364. r3[r11] = r5
  1365. com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_POSTCARD
  1366. int r5 = r5.getCode()
  1367. r3[r4] = r5
  1368. r4 = 7
  1369. com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r5 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_4X6
  1370. int r5 = r5.getCode()
  1371. r3[r4] = r5
  1372. com.epson.mobilephone.common.PrintingLib.define.Constants$PaperName r4 = com.epson.mobilephone.common.PrintingLib.define.Constants.PaperName.EPS_MSID_L
  1373. int r4 = r4.getCode()
  1374. r3[r13] = r4
  1375. int[] unused = r15.info = r3
  1376. L_0x0a27:
  1377. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1378. int[] r15 = r15.info
  1379. if (r15 == 0) goto L_0x0e25
  1380. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1381. int[] r15 = r15.info
  1382. int r15 = r15.length
  1383. if (r15 <= 0) goto L_0x0e25
  1384. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1385. int[] r15 = r15.info
  1386. int r15 = r15.length
  1387. if (r15 > r2) goto L_0x0a50
  1388. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1389. r3 = 2131231309(0x7f08024d, float:1.8078695E38)
  1390. android.view.View r15 = r15.findViewById(r3)
  1391. android.widget.ImageView r15 = (android.widget.ImageView) r15
  1392. r15.setVisibility(r13)
  1393. goto L_0x0a5e
  1394. L_0x0a50:
  1395. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1396. r3 = 2131231309(0x7f08024d, float:1.8078695E38)
  1397. android.view.View r15 = r15.findViewById(r3)
  1398. android.widget.ImageView r15 = (android.widget.ImageView) r15
  1399. r15.setVisibility(r1)
  1400. L_0x0a5e:
  1401. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1402. int unused = r15.sizeIndex = r1
  1403. L_0x0a63:
  1404. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1405. int r15 = r15.sizeIndex
  1406. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1407. int[] r3 = r3.info
  1408. int r3 = r3.length
  1409. if (r15 >= r3) goto L_0x0a8f
  1410. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1411. int r15 = r15.paperSize
  1412. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1413. int[] r3 = r3.info
  1414. epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this
  1415. int r4 = r4.sizeIndex
  1416. r3 = r3[r4]
  1417. if (r15 != r3) goto L_0x0a89
  1418. goto L_0x0a8f
  1419. L_0x0a89:
  1420. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1421. epson.print.screen.SettingScr.access$1208(r15)
  1422. goto L_0x0a63
  1423. L_0x0a8f:
  1424. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1425. int r15 = r15.sizeIndex
  1426. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1427. int[] r3 = r3.info
  1428. int r3 = r3.length
  1429. if (r15 < r3) goto L_0x0ad2
  1430. int r15 = r0.getDefaultPaperSize()
  1431. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1432. int unused = r0.sizeIndex = r1
  1433. L_0x0aa7:
  1434. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1435. int r0 = r0.sizeIndex
  1436. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1437. int[] r3 = r3.info
  1438. int r3 = r3.length
  1439. if (r0 >= r3) goto L_0x0ad2
  1440. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1441. int[] r0 = r0.info
  1442. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1443. int r3 = r3.sizeIndex
  1444. r0 = r0[r3]
  1445. if (r15 != r0) goto L_0x0acc
  1446. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1447. int unused = r0.paperSize = r15
  1448. goto L_0x0ad2
  1449. L_0x0acc:
  1450. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1451. epson.print.screen.SettingScr.access$1208(r0)
  1452. goto L_0x0aa7
  1453. L_0x0ad2:
  1454. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1455. int r15 = r15.sizeIndex
  1456. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1457. int[] r0 = r0.info
  1458. int r0 = r0.length
  1459. if (r15 < r0) goto L_0x0af7
  1460. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1461. int unused = r15.sizeIndex = r1
  1462. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1463. int[] r0 = r15.info
  1464. epson.print.screen.SettingScr r1 = epson.print.screen.SettingScr.this
  1465. int r1 = r1.sizeIndex
  1466. r0 = r0[r1]
  1467. int unused = r15.paperSize = r0
  1468. L_0x0af7:
  1469. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1470. int[] r0 = r15.info
  1471. int r0 = r0.length
  1472. int[] r0 = new int[r0]
  1473. int[] unused = r15.paper_size_info = r0
  1474. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1475. int[] r0 = r15.info
  1476. int[] unused = r15.paper_size_info = r0
  1477. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1478. com.epson.mobilephone.common.escpr.MediaInfo$PaperSize r0 = new com.epson.mobilephone.common.escpr.MediaInfo$PaperSize
  1479. r0.<init>()
  1480. com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
  1481. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1482. android.widget.TextView r15 = r15.paperSizeInfo
  1483. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1484. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r1 = r0.mLookupTable
  1485. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1486. int r3 = r3.paperSize
  1487. int r1 = r1.getStringId(r3)
  1488. java.lang.String r0 = r0.getString(r1)
  1489. r15.setText(r0)
  1490. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1491. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
  1492. r15.destructor()
  1493. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1494. android.os.Handler r15 = r15.mHandler
  1495. r15.sendEmptyMessage(r10)
  1496. goto L_0x0e25
  1497. L_0x0b45:
  1498. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1499. epson.print.service.IEpsonService r15 = r15.mEpsonService
  1500. if (r15 == 0) goto L_0x0b59
  1501. epson.print.screen.SettingScr$3$1 r15 = new epson.print.screen.SettingScr$3$1
  1502. r15.<init>()
  1503. java.lang.Void[] r0 = new java.lang.Void[r1]
  1504. r15.execute(r0)
  1505. goto L_0x0e25
  1506. L_0x0b59:
  1507. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1508. android.os.Handler r15 = r15.mHandler
  1509. r15.sendEmptyMessageDelayed(r1, r8)
  1510. goto L_0x0e25
  1511. L_0x0b62:
  1512. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1513. r0 = 2131231301(0x7f080245, float:1.807868E38)
  1514. android.view.View r15 = r15.findViewById(r0)
  1515. android.widget.TextView r15 = (android.widget.TextView) r15
  1516. java.lang.StringBuilder r0 = new java.lang.StringBuilder
  1517. r0.<init>()
  1518. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1519. int r3 = r3.startValue
  1520. r0.append(r3)
  1521. java.lang.String r3 = ".."
  1522. r0.append(r3)
  1523. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1524. int r3 = r3.endValue
  1525. r0.append(r3)
  1526. java.lang.String r0 = r0.toString()
  1527. r15.setText(r0)
  1528. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1529. com.epson.mobilephone.common.escpr.MediaInfo$FeedDirection r0 = new com.epson.mobilephone.common.escpr.MediaInfo$FeedDirection
  1530. r0.<init>()
  1531. com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
  1532. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1533. android.widget.TextView r15 = r15.feedDirectionInfo
  1534. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1535. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r3 = r0.mLookupTable
  1536. epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this
  1537. int r4 = r4.feedDirection
  1538. int r3 = r3.getStringId(r4)
  1539. java.lang.String r0 = r0.getString(r3)
  1540. r15.setText(r0)
  1541. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1542. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
  1543. r15.destructor()
  1544. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1545. com.epson.mobilephone.common.escpr.MediaInfo$PrintDate r0 = new com.epson.mobilephone.common.escpr.MediaInfo$PrintDate
  1546. r0.<init>()
  1547. com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
  1548. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1549. android.widget.TextView r15 = r15.printDateInfo
  1550. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1551. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r3 = r0.mLookupTable
  1552. epson.print.screen.SettingScr r4 = epson.print.screen.SettingScr.this
  1553. int r4 = r4.printdate
  1554. int r3 = r3.getStringId(r4)
  1555. java.lang.String r0 = r0.getString(r3)
  1556. r15.setText(r0)
  1557. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1558. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
  1559. r15.destructor()
  1560. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1561. android.widget.TextView r15 = r15.brightness
  1562. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1563. int r0 = r0.brightnessValue
  1564. java.lang.String r0 = java.lang.String.valueOf(r0)
  1565. r15.setText(r0)
  1566. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1567. android.widget.Button r15 = r15.brightnessMinus
  1568. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1569. int r0 = r0.brightnessValue
  1570. r3 = -50
  1571. if (r0 == r3) goto L_0x0c15
  1572. r0 = 1
  1573. goto L_0x0c16
  1574. L_0x0c15:
  1575. r0 = 0
  1576. L_0x0c16:
  1577. r15.setEnabled(r0)
  1578. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1579. android.widget.Button r15 = r15.brightnessPlus
  1580. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1581. int r0 = r0.brightnessValue
  1582. r4 = 50
  1583. if (r0 == r4) goto L_0x0c2b
  1584. r0 = 1
  1585. goto L_0x0c2c
  1586. L_0x0c2b:
  1587. r0 = 0
  1588. L_0x0c2c:
  1589. r15.setEnabled(r0)
  1590. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1591. android.widget.TextView r15 = r15.contrast
  1592. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1593. int r0 = r0.contrastValue
  1594. java.lang.String r0 = java.lang.String.valueOf(r0)
  1595. r15.setText(r0)
  1596. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1597. android.widget.Button r15 = r15.contrastMinus
  1598. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1599. int r0 = r0.contrastValue
  1600. if (r0 == r3) goto L_0x0c52
  1601. r0 = 1
  1602. goto L_0x0c53
  1603. L_0x0c52:
  1604. r0 = 0
  1605. L_0x0c53:
  1606. r15.setEnabled(r0)
  1607. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1608. android.widget.Button r15 = r15.contrastPlus
  1609. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1610. int r0 = r0.contrastValue
  1611. if (r0 == r4) goto L_0x0c66
  1612. r0 = 1
  1613. goto L_0x0c67
  1614. L_0x0c66:
  1615. r0 = 0
  1616. L_0x0c67:
  1617. r15.setEnabled(r0)
  1618. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1619. android.widget.TextView r15 = r15.saturation
  1620. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1621. int r0 = r0.saturationValue
  1622. java.lang.String r0 = java.lang.String.valueOf(r0)
  1623. r15.setText(r0)
  1624. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1625. android.widget.Button r15 = r15.saturationMinus
  1626. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1627. int r0 = r0.saturationValue
  1628. if (r0 == r3) goto L_0x0c8d
  1629. r0 = 1
  1630. goto L_0x0c8e
  1631. L_0x0c8d:
  1632. r0 = 0
  1633. L_0x0c8e:
  1634. r15.setEnabled(r0)
  1635. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1636. android.widget.Button r15 = r15.saturationPlus
  1637. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1638. int r0 = r0.saturationValue
  1639. if (r0 == r4) goto L_0x0ca0
  1640. r1 = 1
  1641. L_0x0ca0:
  1642. r15.setEnabled(r1)
  1643. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1644. r15.updateSettingView()
  1645. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1646. java.lang.Boolean r0 = java.lang.Boolean.valueOf(r2)
  1647. r15.setScreenState(r0)
  1648. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1649. boolean r0 = r15.undoFlag
  1650. boolean unused = r15.updateSupportedMediaFile(r0)
  1651. goto L_0x0e25
  1652. L_0x0cba:
  1653. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1654. epson.print.service.IEpsonService r15 = r15.mEpsonService
  1655. if (r15 != 0) goto L_0x0ccb
  1656. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1657. android.os.Handler r15 = r15.mHandler
  1658. r15.sendEmptyMessageDelayed(r5, r8)
  1659. goto L_0x0e25
  1660. L_0x0ccb:
  1661. java.lang.String r15 = "SettingScr"
  1662. java.lang.String r0 = "GET_DUPLEX"
  1663. epson.print.Util.EPLog.i(r15, r0)
  1664. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1665. int[] unused = r15.duplex_info = r7
  1666. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0cee }
  1667. epson.print.service.IEpsonService r15 = r15.mEpsonService // Catch:{ RemoteException -> 0x0cee }
  1668. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0cee }
  1669. int r0 = r0.sizeIndex // Catch:{ RemoteException -> 0x0cee }
  1670. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this // Catch:{ RemoteException -> 0x0cee }
  1671. int r3 = r3.typeIndex // Catch:{ RemoteException -> 0x0cee }
  1672. int r15 = r15.getDuplex(r0, r3) // Catch:{ RemoteException -> 0x0cee }
  1673. goto L_0x0cf7
  1674. L_0x0cee:
  1675. r15 = move-exception
  1676. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1677. r0.undoFlag = r2
  1678. r15.printStackTrace()
  1679. r15 = 0
  1680. L_0x0cf7:
  1681. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1682. java.lang.String r0 = r0.printerId
  1683. if (r0 != 0) goto L_0x0d2e
  1684. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1685. int r0 = r0.paperType
  1686. com.epson.mobilephone.common.PrintingLib.define.Constants$MediaName r3 = com.epson.mobilephone.common.PrintingLib.define.Constants.MediaName.EPS_MTID_PLAIN
  1687. int r3 = r3.getCode()
  1688. if (r0 != r3) goto L_0x0d2e
  1689. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1690. int[] r0 = new int[r6]
  1691. int[] unused = r15.duplex_info = r0
  1692. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1693. int[] r15 = r15.duplex_info
  1694. r15[r1] = r1
  1695. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1696. int[] r15 = r15.duplex_info
  1697. r15[r2] = r2
  1698. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1699. int[] r15 = r15.duplex_info
  1700. r15[r10] = r10
  1701. goto L_0x0da4
  1702. L_0x0d2e:
  1703. if (r15 == 0) goto L_0x0d95
  1704. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1705. int r0 = r0.paperSource
  1706. r3 = 16
  1707. if (r0 == r3) goto L_0x0d95
  1708. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1709. int r0 = r0.layout
  1710. if (r0 != r2) goto L_0x0d75
  1711. r15 = r15 & r10
  1712. if (r15 == 0) goto L_0x0d65
  1713. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1714. int[] r0 = new int[r6]
  1715. int[] unused = r15.duplex_info = r0
  1716. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1717. int[] r15 = r15.duplex_info
  1718. r15[r1] = r1
  1719. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1720. int[] r15 = r15.duplex_info
  1721. r15[r2] = r2
  1722. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1723. int[] r15 = r15.duplex_info
  1724. r15[r10] = r10
  1725. goto L_0x0da4
  1726. L_0x0d65:
  1727. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1728. int[] r0 = new int[r2]
  1729. int[] unused = r15.duplex_info = r0
  1730. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1731. int[] r15 = r15.duplex_info
  1732. r15[r1] = r1
  1733. goto L_0x0da4
  1734. L_0x0d75:
  1735. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1736. int[] r0 = new int[r6]
  1737. int[] unused = r15.duplex_info = r0
  1738. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1739. int[] r15 = r15.duplex_info
  1740. r15[r1] = r1
  1741. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1742. int[] r15 = r15.duplex_info
  1743. r15[r2] = r2
  1744. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1745. int[] r15 = r15.duplex_info
  1746. r15[r10] = r10
  1747. goto L_0x0da4
  1748. L_0x0d95:
  1749. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1750. int[] r0 = new int[r2]
  1751. int[] unused = r15.duplex_info = r0
  1752. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1753. int[] r15 = r15.duplex_info
  1754. r15[r1] = r1
  1755. L_0x0da4:
  1756. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1757. int[] r15 = r15.duplex_info
  1758. if (r15 == 0) goto L_0x0e17
  1759. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1760. int[] r15 = r15.duplex_info
  1761. int r15 = r15.length
  1762. if (r15 <= 0) goto L_0x0e17
  1763. r15 = 0
  1764. L_0x0db6:
  1765. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1766. int[] r0 = r0.duplex_info
  1767. int r0 = r0.length
  1768. if (r15 >= r0) goto L_0x0dd3
  1769. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1770. int r0 = r0.duplex
  1771. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1772. int[] r3 = r3.duplex_info
  1773. r3 = r3[r15]
  1774. if (r0 != r3) goto L_0x0dd0
  1775. goto L_0x0dd3
  1776. L_0x0dd0:
  1777. int r15 = r15 + 1
  1778. goto L_0x0db6
  1779. L_0x0dd3:
  1780. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1781. int[] r0 = r0.duplex_info
  1782. int r0 = r0.length
  1783. if (r15 < r0) goto L_0x0de7
  1784. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1785. int[] r0 = r15.duplex_info
  1786. r0 = r0[r1]
  1787. int unused = r15.duplex = r0
  1788. L_0x0de7:
  1789. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1790. com.epson.mobilephone.common.escpr.MediaInfo$Duplex r0 = new com.epson.mobilephone.common.escpr.MediaInfo$Duplex
  1791. r0.<init>()
  1792. com.epson.mobilephone.common.escpr.MediaInfo.AbstractInfo unused = r15.mLookupTable = r0
  1793. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1794. android.widget.TextView r15 = r15.duplexInfo
  1795. epson.print.screen.SettingScr r0 = epson.print.screen.SettingScr.this
  1796. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r1 = r0.mLookupTable
  1797. epson.print.screen.SettingScr r3 = epson.print.screen.SettingScr.this
  1798. int r3 = r3.duplex
  1799. int r1 = r1.getStringId(r3)
  1800. java.lang.String r0 = r0.getString(r1)
  1801. r15.setText(r0)
  1802. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1803. com.epson.mobilephone.common.escpr.MediaInfo$AbstractInfo r15 = r15.mLookupTable
  1804. r15.destructor()
  1805. L_0x0e17:
  1806. java.lang.String r15 = "SettingScr"
  1807. java.lang.String r0 = "get Color setScreenState = true"
  1808. epson.print.Util.EPLog.i(r15, r0)
  1809. epson.print.screen.SettingScr r15 = epson.print.screen.SettingScr.this
  1810. android.os.Handler r15 = r15.mHandler
  1811. r15.sendEmptyMessage(r4)
  1812. L_0x0e25:
  1813. return r2
  1814. */
  1815. throw new UnsupportedOperationException("Method not decompiled: epson.print.screen.SettingScr.C23643.handleMessage(android.os.Message):boolean");
  1816. }
  1817. });
  1818. /* access modifiers changed from: private */
  1819. public MediaInfo.AbstractInfo mLookupTable;
  1820. private MediaInfo.AbstractInfo mPaperSizeType;
  1821. private boolean mPrinterSelectDone;
  1822. private int mSharpnessValue;
  1823. private TextView mSharpnessValueText;
  1824. private boolean mWaiteInkReplenProgress;
  1825. /* access modifiers changed from: private */
  1826. public int paperSize;
  1827. /* access modifiers changed from: private */
  1828. public TextView paperSizeInfo;
  1829. /* access modifiers changed from: private */
  1830. public int paperSource;
  1831. /* access modifiers changed from: private */
  1832. public TextView paperSourceInfo;
  1833. /* access modifiers changed from: private */
  1834. public int paperType;
  1835. /* access modifiers changed from: private */
  1836. public TextView paperTypeInfo;
  1837. /* access modifiers changed from: private */
  1838. public int[] paper_size_info = null;
  1839. /* access modifiers changed from: private */
  1840. public int[] paper_source_info = null;
  1841. /* access modifiers changed from: private */
  1842. public int[] paper_type_info = null;
  1843. private int photoApfValueForLocalPrinter;
  1844. private boolean printAll;
  1845. /* access modifiers changed from: private */
  1846. public TextView printDateInfo;
  1847. /* access modifiers changed from: private */
  1848. public int printdate;
  1849. private MyPrinter printer = null;
  1850. private String printerDeviceId;
  1851. /* access modifiers changed from: private */
  1852. public String printerEmailAddress;
  1853. /* access modifiers changed from: private */
  1854. public String printerId;
  1855. /* access modifiers changed from: private */
  1856. public String printerIp;
  1857. /* access modifiers changed from: private */
  1858. public int printerLocation;
  1859. /* access modifiers changed from: private */
  1860. public TextView printerName;
  1861. private String printerSerialNo;
  1862. private View progressGetOption;
  1863. /* access modifiers changed from: private */
  1864. public int quality;
  1865. /* access modifiers changed from: private */
  1866. public TextView qualityInfo;
  1867. /* access modifiers changed from: private */
  1868. public int[] quality_info = null;
  1869. /* access modifiers changed from: private */
  1870. public TextView saturation;
  1871. /* access modifiers changed from: private */
  1872. public Button saturationMinus;
  1873. /* access modifiers changed from: private */
  1874. public Button saturationPlus;
  1875. /* access modifiers changed from: private */
  1876. public int saturationValue;
  1877. private int sheets = 1;
  1878. /* access modifiers changed from: private */
  1879. public int sizeIndex = 0;
  1880. /* access modifiers changed from: private */
  1881. public int startValue;
  1882. /* access modifiers changed from: private */
  1883. public int typeIndex = 0;
  1884. boolean undoFlag = true;
  1885. static /* synthetic */ int access$1208(SettingScr settingScr) {
  1886. int i = settingScr.sizeIndex;
  1887. settingScr.sizeIndex = i + 1;
  1888. return i;
  1889. }
  1890. static /* synthetic */ int access$1708(SettingScr settingScr) {
  1891. int i = settingScr.typeIndex;
  1892. settingScr.typeIndex = i + 1;
  1893. return i;
  1894. }
  1895. /* access modifiers changed from: protected */
  1896. public void onCreate(Bundle bundle) {
  1897. super.onCreate(bundle);
  1898. setContentView((int) R.layout.setting_layout);
  1899. setActionBar((int) R.string.str_btn_printer_settings, true);
  1900. bindEpsonService();
  1901. this.mContext = this;
  1902. this.isDocumentSetting = getIntent().getBooleanExtra(PrintProgress.PARAM_DOCUMENT_MODE, false);
  1903. if (this.isDocumentSetting) {
  1904. this.sheets = getIntent().getIntExtra("SHEETS", 1);
  1905. this.disablePrintArea = getIntent().getBooleanExtra("PRINTAREA", false);
  1906. }
  1907. this.printerName = (TextView) findViewById(R.id.printer_name);
  1908. this.paperSizeInfo = (TextView) findViewById(R.id.paper_size_info);
  1909. this.paperTypeInfo = (TextView) findViewById(R.id.paper_type_info);
  1910. this.layoutInfo = (TextView) findViewById(R.id.layout_info);
  1911. this.qualityInfo = (TextView) findViewById(R.id.quality_info);
  1912. this.paperSourceInfo = (TextView) findViewById(R.id.paper_source_info);
  1913. this.copies = (TextView) findViewById(R.id.copies);
  1914. this.copiesMinus = (Button) findViewById(R.id.copies_minus_button);
  1915. this.copiesPlus = (Button) findViewById(R.id.copies_plus_button);
  1916. LongTapRepeatAdapter.bless(this.copiesMinus);
  1917. LongTapRepeatAdapter.bless(this.copiesPlus);
  1918. this.colorInfo = (TextView) findViewById(R.id.color_info);
  1919. this.duplexInfo = (TextView) findViewById(R.id.duplex_info);
  1920. this.feedDirectionInfo = (TextView) findViewById(R.id.feed_direction_info);
  1921. this.printDateInfo = (TextView) findViewById(R.id.printdate_info);
  1922. this.apfStateText = (TextView) findViewById(R.id.apf_setting_text);
  1923. this.mSharpnessValueText = (TextView) findViewById(R.id.sharpness_setting_text);
  1924. this.brightness = (TextView) findViewById(R.id.brightness);
  1925. this.brightnessMinus = (Button) findViewById(R.id.brightness_minus_button);
  1926. this.brightnessPlus = (Button) findViewById(R.id.brightness_plus_button);
  1927. this.contrast = (TextView) findViewById(R.id.contrast);
  1928. this.contrastMinus = (Button) findViewById(R.id.contrast_minus_button);
  1929. this.contrastPlus = (Button) findViewById(R.id.contrast_plus_button);
  1930. this.saturation = (TextView) findViewById(R.id.saturation);
  1931. this.saturationMinus = (Button) findViewById(R.id.saturation_minus_button);
  1932. this.saturationPlus = (Button) findViewById(R.id.saturation_plus_button);
  1933. this.progressGetOption = findViewById(R.id.progressGetOption);
  1934. this.enableShowPreview = getSharedPreferences(Constants.PREFS_EPSON_CONNECT, 0).getBoolean(Constants.ENABLE_SHOW_PREVIEW, true);
  1935. loadConfig();
  1936. setClickListener();
  1937. updatePrinterIcon();
  1938. if (this.printerId != null) {
  1939. this.undoFlag = false;
  1940. if (loadSupportedMediaFile()) {
  1941. this.mHandler.sendEmptyMessage(1);
  1942. } else {
  1943. this.mHandler.sendEmptyMessage(17);
  1944. }
  1945. } else {
  1946. this.mHandler.sendEmptyMessage(1);
  1947. }
  1948. }
  1949. private void updatePrinterIcon() {
  1950. if (this.printerName.getText().equals(getString(R.string.str_lbl_title_scan))) {
  1951. ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setVisibility(8);
  1952. return;
  1953. }
  1954. ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setVisibility(0);
  1955. switch (this.printerLocation) {
  1956. case 1:
  1957. ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setImageResource(R.C2136drawable.print_local);
  1958. return;
  1959. case 2:
  1960. ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setImageResource(R.C2136drawable.print_remote);
  1961. return;
  1962. case 3:
  1963. ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setImageResource(R.C2136drawable.print_ip);
  1964. return;
  1965. default:
  1966. return;
  1967. }
  1968. }
  1969. private void setClickListener() {
  1970. this.copiesMinus.setOnClickListener(this);
  1971. this.copiesPlus.setOnClickListener(this);
  1972. this.brightnessMinus.setOnClickListener(this);
  1973. this.brightnessPlus.setOnClickListener(this);
  1974. this.contrastMinus.setOnClickListener(this);
  1975. this.contrastPlus.setOnClickListener(this);
  1976. this.saturationMinus.setOnClickListener(this);
  1977. this.saturationPlus.setOnClickListener(this);
  1978. if (this.isDocumentSetting) {
  1979. findViewById(R.id.page_range_setting).setOnClickListener(this);
  1980. }
  1981. findViewById(R.id.printer).setOnClickListener(this);
  1982. findViewById(R.id.paper_size).setOnClickListener(this);
  1983. findViewById(R.id.paper_type).setOnClickListener(this);
  1984. findViewById(R.id.layout).setOnClickListener(this);
  1985. findViewById(R.id.quality).setOnClickListener(this);
  1986. findViewById(R.id.paper_source).setOnClickListener(this);
  1987. findViewById(R.id.color).setOnClickListener(this);
  1988. findViewById(R.id.duplex).setOnClickListener(this);
  1989. findViewById(R.id.feed_direction).setOnClickListener(this);
  1990. findViewById(R.id.printdate).setOnClickListener(this);
  1991. findViewById(R.id.apf_setting_layout).setOnClickListener(this);
  1992. findViewById(R.id.sharpness_setting_layout).setOnClickListener(this);
  1993. }
  1994. private void loadConfig() {
  1995. MyPrinter curPrinter = MyPrinter.getCurPrinter(this);
  1996. if (curPrinter == null || curPrinter.getName() == null) {
  1997. this.printerName.setText(getString(R.string.str_lbl_title_scan));
  1998. } else {
  1999. this.printerName.setText(curPrinter.getUserDefName(this));
  2000. }
  2001. this.printerDeviceId = curPrinter.getName();
  2002. this.printerId = curPrinter.getPrinterId();
  2003. this.printerIp = curPrinter.getIp();
  2004. this.printerSerialNo = curPrinter.getSerialNo();
  2005. this.printerEmailAddress = curPrinter.getEmailAddress();
  2006. this.printerLocation = curPrinter.getLocation();
  2007. boolean z = true;
  2008. if (this.printerLocation == 0) {
  2009. this.printerLocation = 1;
  2010. }
  2011. this.autoConnectSsid = WiFiDirectManager.getConnectInfo(this, WiFiDirectManager.DEVICE_TYPE_PRINTER);
  2012. PrintSetting printSetting = new PrintSetting(this, this.isDocumentSetting ? PrintSetting.Kind.document : PrintSetting.Kind.photo);
  2013. printSetting.loadSettings();
  2014. this.mLookupTable = new MediaInfo.PaperSize();
  2015. this.paperSize = printSetting.paperSizeValue;
  2016. this.paperSizeInfo.setText(getString(this.mLookupTable.getStringId(this.paperSize)));
  2017. this.mLookupTable.destructor();
  2018. this.mLookupTable = new MediaInfo.PaperType();
  2019. this.paperType = printSetting.paperTypeValue;
  2020. this.paperTypeInfo.setText(getString(this.mLookupTable.getStringId(this.paperType)));
  2021. this.mLookupTable.destructor();
  2022. this.mPaperSizeType = printSetting.loadPaperSizeTypePear();
  2023. this.mPaperSizeType.putID(this.paperSize, this.paperType);
  2024. this.mLookupTable = new LayoutEx();
  2025. int i = printSetting.layoutMultiPageValue;
  2026. if (i != 0) {
  2027. this.layout = i;
  2028. } else {
  2029. this.layout = printSetting.layoutValue;
  2030. }
  2031. this.layoutInfo.setText(getString(this.mLookupTable.getStringId(this.layout)));
  2032. this.mLookupTable.destructor();
  2033. this.mLookupTable = new MediaInfo.Quality();
  2034. this.quality = printSetting.qualityValue;
  2035. this.qualityInfo.setText(getString(this.mLookupTable.getStringId(this.quality)));
  2036. this.mLookupTable.destructor();
  2037. this.mLookupTable = new MediaInfo.PaperSource();
  2038. this.paperSource = printSetting.paperSourceValue;
  2039. this.paperSourceInfo.setText(getString(this.mLookupTable.getStringId(this.paperSource)));
  2040. this.mLookupTable.destructor();
  2041. this.mLookupTable = new MediaInfo.Color();
  2042. this.color = printSetting.colorValue;
  2043. this.colorInfo.setText(getString(this.mLookupTable.getStringId(this.color)));
  2044. this.mLookupTable.destructor();
  2045. this.copiesValue = printSetting.copiesValue;
  2046. this.copies.setText(String.valueOf(this.copiesValue));
  2047. this.copiesMinus.setEnabled(this.copiesValue != 1);
  2048. Button button = this.copiesPlus;
  2049. if (this.copiesValue == 30) {
  2050. z = false;
  2051. }
  2052. button.setEnabled(z);
  2053. this.brightnessValue = printSetting.brightnessValue;
  2054. this.contrastValue = printSetting.contrastValue;
  2055. this.saturationValue = printSetting.saturationValue;
  2056. this.mLookupTable = new MediaInfo.Duplex();
  2057. this.duplex = printSetting.duplexValue;
  2058. this.duplexInfo.setText(getString(this.mLookupTable.getStringId(this.duplex)));
  2059. this.mLookupTable.destructor();
  2060. this.mLookupTable = new MediaInfo.FeedDirection();
  2061. this.feedDirection = printSetting.feedDirectionValue;
  2062. this.feedDirectionInfo.setText(getString(this.mLookupTable.getStringId(this.feedDirection)));
  2063. this.mLookupTable.destructor();
  2064. this.lang = curPrinter.getLang();
  2065. if (this.isDocumentSetting) {
  2066. this.printAll = printSetting.printAll;
  2067. this.startValue = printSetting.startValue;
  2068. this.endValue = printSetting.endValue;
  2069. ((TextView) findViewById(R.id.page_range_value)).setText(this.startValue + ".." + this.endValue);
  2070. return;
  2071. }
  2072. this.mLookupTable = new MediaInfo.PrintDate();
  2073. this.printdate = printSetting.printdate;
  2074. this.printDateInfo.setText(getString(this.mLookupTable.getStringId(this.printdate)));
  2075. this.mLookupTable.destructor();
  2076. this.photoApfValueForLocalPrinter = printSetting.photoApfValueForLocalPrinter;
  2077. displayApfState(this.photoApfValueForLocalPrinter);
  2078. this.mSharpnessValue = printSetting.sharpnessForPhoto;
  2079. displaySharpnessState(this.mSharpnessValue);
  2080. }
  2081. private void displayApfState(int i) {
  2082. MediaInfo.ApfState apfState = new MediaInfo.ApfState();
  2083. this.apfStateText.setText(apfState.getStringId(i));
  2084. apfState.destructor();
  2085. }
  2086. private void displaySharpnessState(int i) {
  2087. MediaInfo.SharpnessState sharpnessState = new MediaInfo.SharpnessState();
  2088. this.mSharpnessValueText.setText(sharpnessState.getStringId(i));
  2089. sharpnessState.destructor();
  2090. }
  2091. private boolean loadSupportedMediaFile() {
  2092. ExternalFileUtils instance = ExternalFileUtils.getInstance(this);
  2093. File savedSupportedMedia = instance.getSavedSupportedMedia();
  2094. File supportedMedia = instance.getSupportedMedia();
  2095. File preSupportedMedia = instance.getPreSupportedMedia();
  2096. EPLog.i("PrintSetting", "call loadSupportedMedia");
  2097. try {
  2098. if (!savedSupportedMedia.exists()) {
  2099. EPLog.w("loadSupportedMedia", savedSupportedMedia.getName() + " not exist");
  2100. return false;
  2101. }
  2102. Utils.copyFile(savedSupportedMedia, supportedMedia);
  2103. Utils.copyFile(savedSupportedMedia, preSupportedMedia);
  2104. File savedAreaInfo = instance.getSavedAreaInfo();
  2105. File areaInfo = instance.getAreaInfo();
  2106. File preAreaInfo = instance.getPreAreaInfo();
  2107. try {
  2108. if (!savedAreaInfo.exists()) {
  2109. return true;
  2110. }
  2111. Utils.copyFile(savedAreaInfo, areaInfo);
  2112. Utils.copyFile(savedAreaInfo, preAreaInfo);
  2113. return true;
  2114. } catch (Exception e) {
  2115. EPLog.w("loadSupportedMedia", "failure " + e.getMessage());
  2116. return false;
  2117. }
  2118. } catch (Exception e2) {
  2119. EPLog.w("loadSupportedMedia", "failure " + e2.getMessage());
  2120. return false;
  2121. }
  2122. }
  2123. /* access modifiers changed from: private */
  2124. public boolean updateSupportedMediaFile(boolean z) {
  2125. ExternalFileUtils instance = ExternalFileUtils.getInstance(this);
  2126. EPLog.i("PrintSetting", "call updateSupportedMedia");
  2127. File supportedMedia = instance.getSupportedMedia();
  2128. File preSupportedMedia = instance.getPreSupportedMedia();
  2129. if (z) {
  2130. File file = preSupportedMedia;
  2131. preSupportedMedia = supportedMedia;
  2132. supportedMedia = file;
  2133. }
  2134. try {
  2135. Utils.copyFile(supportedMedia, preSupportedMedia);
  2136. File areaInfo = instance.getAreaInfo();
  2137. File preAreaInfo = instance.getPreAreaInfo();
  2138. if (!z) {
  2139. File file2 = areaInfo;
  2140. areaInfo = preAreaInfo;
  2141. preAreaInfo = file2;
  2142. }
  2143. try {
  2144. if (!preAreaInfo.exists()) {
  2145. return true;
  2146. }
  2147. Utils.copyFile(preAreaInfo, areaInfo);
  2148. return true;
  2149. } catch (Exception e) {
  2150. if (preAreaInfo != null && preAreaInfo.exists()) {
  2151. preAreaInfo.delete();
  2152. }
  2153. if (areaInfo != null && areaInfo.exists()) {
  2154. areaInfo.delete();
  2155. }
  2156. EPLog.w("updateSupportedMediaFile", "failure " + e.getMessage());
  2157. return false;
  2158. }
  2159. } catch (Exception e2) {
  2160. if (supportedMedia != null && supportedMedia.exists()) {
  2161. supportedMedia.delete();
  2162. }
  2163. if (preSupportedMedia != null && preSupportedMedia.exists()) {
  2164. preSupportedMedia.delete();
  2165. }
  2166. EPLog.w("updateSupportedMediaFile", "failure " + e2.getMessage());
  2167. return false;
  2168. }
  2169. }
  2170. private boolean saveSupportedMediaFile() {
  2171. ExternalFileUtils instance = ExternalFileUtils.getInstance(this);
  2172. EPLog.i("PrintSetting", "call saveSupportedMedia");
  2173. File supportedMedia = instance.getSupportedMedia();
  2174. File savedSupportedMedia = instance.getSavedSupportedMedia();
  2175. try {
  2176. if (!supportedMedia.exists()) {
  2177. EPLog.w("updateSupportedMediaFile", supportedMedia.getName() + " not exist");
  2178. return false;
  2179. }
  2180. Utils.copyFile(supportedMedia, savedSupportedMedia);
  2181. File areaInfo = instance.getAreaInfo();
  2182. File savedAreaInfo = instance.getSavedAreaInfo();
  2183. int i = this.printerLocation;
  2184. if (i == 1 || i == 3) {
  2185. try {
  2186. if (!areaInfo.exists()) {
  2187. EPLog.w("updateSupportedMediaFile", areaInfo.getName() + " not exist");
  2188. return false;
  2189. }
  2190. Utils.copyFile(areaInfo, savedAreaInfo);
  2191. } catch (Exception e) {
  2192. EPLog.w("saveSupportedMediaFile", "failure " + e.getMessage());
  2193. return false;
  2194. }
  2195. } else {
  2196. EPLog.i("PrintSetting", "delete AreaInfo");
  2197. instance.removeAreaInfo();
  2198. }
  2199. return true;
  2200. } catch (Exception e2) {
  2201. EPLog.w("saveSupportedMediaFile", "failure " + e2.getMessage());
  2202. return false;
  2203. }
  2204. }
  2205. private void saveChanged() {
  2206. SharedPreferences.Editor edit = getSharedPreferences("PrintSetting", 0).edit();
  2207. edit.putInt(Constants.PREFS_INFO_PRINT_SAVE, 1);
  2208. edit.commit();
  2209. MyPrinter myPrinter = new MyPrinter(this.printerDeviceId, this.printerIp, this.printerId, this.printerSerialNo, this.printerEmailAddress, this.printerLocation);
  2210. myPrinter.setLang(this.lang);
  2211. myPrinter.setCurPrinter(this);
  2212. PrintSetting printSetting = new PrintSetting(this, this.isDocumentSetting ? PrintSetting.Kind.document : PrintSetting.Kind.photo);
  2213. printSetting.paperSizeValue = this.paperSize;
  2214. printSetting.paperTypeValue = this.paperType;
  2215. int i = this.layout;
  2216. if ((-65536 & i) != 0) {
  2217. printSetting.layoutValue = 2;
  2218. printSetting.layoutMultiPageValue = i;
  2219. } else {
  2220. printSetting.layoutValue = i;
  2221. printSetting.layoutMultiPageValue = 0;
  2222. }
  2223. printSetting.qualityValue = this.quality;
  2224. printSetting.paperSourceValue = this.paperSource;
  2225. printSetting.colorValue = this.color;
  2226. printSetting.duplexValue = this.duplex;
  2227. printSetting.feedDirectionValue = this.feedDirection;
  2228. printSetting.copiesValue = this.copiesValue;
  2229. printSetting.brightnessValue = this.brightnessValue;
  2230. printSetting.contrastValue = this.contrastValue;
  2231. printSetting.saturationValue = this.saturationValue;
  2232. if (this.isDocumentSetting) {
  2233. printSetting.printAll = this.printAll;
  2234. printSetting.startValue = this.startValue;
  2235. printSetting.endValue = this.endValue;
  2236. } else {
  2237. printSetting.printdate = this.printdate;
  2238. printSetting.photoApfValueForLocalPrinter = this.photoApfValueForLocalPrinter;
  2239. printSetting.sharpnessForPhoto = this.mSharpnessValue;
  2240. }
  2241. printSetting.saveSettings();
  2242. printSetting.savePaperSizeTypePear((MediaInfo.PaperSizeType) this.mPaperSizeType);
  2243. saveSupportedMediaFile();
  2244. String str = this.autoConnectSsid;
  2245. if (str == null || str.length() <= 0) {
  2246. WiFiDirectManager.resetConnectInfo(this, WiFiDirectManager.DEVICE_TYPE_PRINTER);
  2247. } else {
  2248. WiFiDirectManager.setConnectInfo(this, this.autoConnectSsid, WiFiDirectManager.DEVICE_TYPE_PRINTER, myPrinter.getName());
  2249. }
  2250. EPPrinterManager ePPrinterManager = new EPPrinterManager(this.mContext);
  2251. ePPrinterManager.commitIPPrinterInfo();
  2252. ePPrinterManager.commitRemotePrinterInfo();
  2253. refreshRemoteServiceRemotePrinter();
  2254. if (this.mPrinterSelectDone) {
  2255. new InkRplnRepository(false).savePermanently(this);
  2256. }
  2257. }
  2258. private void refreshRemoteServiceRemotePrinter() {
  2259. IEpsonService iEpsonService = this.mEpsonService;
  2260. if (iEpsonService != null) {
  2261. try {
  2262. iEpsonService.refreshRemotePrinterLogin();
  2263. } catch (RemoteException unused) {
  2264. }
  2265. }
  2266. }
  2267. /* access modifiers changed from: protected */
  2268. public void onDestroy() {
  2269. super.onDestroy();
  2270. unbindEpsonService();
  2271. EPLog.i("SettingScr", "onDestroy");
  2272. this.mPaperSizeType.destructor();
  2273. }
  2274. private void bindEpsonService() {
  2275. EPLog.m316v("SettingScr", "bindEpsonService");
  2276. if (this.mEpsonService == null) {
  2277. bindService(new Intent(this, EpsonService.class), this.mEpsonConnection, 1);
  2278. }
  2279. }
  2280. private void unbindEpsonService() {
  2281. EPLog.m316v("SettingScr", "unbindEpsonService");
  2282. IEpsonService iEpsonService = this.mEpsonService;
  2283. if (iEpsonService != null) {
  2284. try {
  2285. iEpsonService.unregisterCallback(this.mCallback);
  2286. unbindService(this.mEpsonConnection);
  2287. this.mEpsonService = null;
  2288. } catch (RemoteException e) {
  2289. e.printStackTrace();
  2290. }
  2291. }
  2292. }
  2293. public void onClick(View view) {
  2294. if (this.progressGetOption.getVisibility() == 8) {
  2295. IEpsonService iEpsonService = this.mEpsonService;
  2296. if (iEpsonService != null) {
  2297. try {
  2298. iEpsonService.cancelSearchPrinter();
  2299. } catch (RemoteException e) {
  2300. e.printStackTrace();
  2301. }
  2302. }
  2303. switch (view.getId()) {
  2304. case R.id.apf_setting_layout /*2131230819*/:
  2305. launchDetailScreen(this.photoApfValueForLocalPrinter, R.id.apf_setting_layout);
  2306. return;
  2307. case R.id.brightness_minus_button /*2131230848*/:
  2308. this.brightnessValue--;
  2309. if (this.brightnessValue <= -50) {
  2310. this.brightnessValue = -50;
  2311. this.brightnessMinus.setEnabled(false);
  2312. } else {
  2313. this.brightnessMinus.setEnabled(true);
  2314. }
  2315. this.brightnessPlus.setEnabled(true);
  2316. this.brightness.setText(String.valueOf(this.brightnessValue));
  2317. return;
  2318. case R.id.brightness_plus_button /*2131230850*/:
  2319. this.brightnessValue++;
  2320. if (this.brightnessValue >= 50) {
  2321. this.brightnessValue = 50;
  2322. this.brightnessPlus.setEnabled(false);
  2323. } else {
  2324. this.brightnessPlus.setEnabled(true);
  2325. }
  2326. this.brightnessMinus.setEnabled(true);
  2327. this.brightness.setText(String.valueOf(this.brightnessValue));
  2328. return;
  2329. case R.id.color /*2131230930*/:
  2330. launchDetailScreen(this.color, R.id.color);
  2331. return;
  2332. case R.id.contrast_minus_button /*2131230942*/:
  2333. this.contrastValue--;
  2334. if (this.contrastValue <= -50) {
  2335. this.contrastValue = -50;
  2336. this.contrastMinus.setEnabled(false);
  2337. } else {
  2338. this.contrastMinus.setEnabled(true);
  2339. }
  2340. this.contrastPlus.setEnabled(true);
  2341. this.contrast.setText(String.valueOf(this.contrastValue));
  2342. return;
  2343. case R.id.contrast_plus_button /*2131230943*/:
  2344. this.contrastValue++;
  2345. if (this.contrastValue >= 50) {
  2346. this.contrastValue = 50;
  2347. this.contrastPlus.setEnabled(false);
  2348. } else {
  2349. this.contrastPlus.setEnabled(true);
  2350. }
  2351. this.contrastMinus.setEnabled(true);
  2352. this.contrast.setText(String.valueOf(this.contrastValue));
  2353. return;
  2354. case R.id.copies_minus_button /*2131230945*/:
  2355. this.copiesValue--;
  2356. if (this.copiesValue <= 1) {
  2357. this.copiesValue = 1;
  2358. this.copiesMinus.setEnabled(false);
  2359. } else {
  2360. this.copiesMinus.setEnabled(true);
  2361. }
  2362. this.copiesPlus.setEnabled(true);
  2363. this.copies.setText(String.valueOf(this.copiesValue));
  2364. return;
  2365. case R.id.copies_plus_button /*2131230946*/:
  2366. this.copiesValue++;
  2367. if (this.copiesValue >= 30) {
  2368. this.copiesValue = 30;
  2369. this.copiesPlus.setEnabled(false);
  2370. } else {
  2371. this.copiesPlus.setEnabled(true);
  2372. }
  2373. this.copiesMinus.setEnabled(true);
  2374. this.copies.setText(String.valueOf(this.copiesValue));
  2375. return;
  2376. case R.id.duplex /*2131231005*/:
  2377. launchDetailScreen(this.duplex, R.id.duplex);
  2378. return;
  2379. case R.id.feed_direction /*2131231037*/:
  2380. launchDetailScreen(this.feedDirection, R.id.feed_direction);
  2381. return;
  2382. case R.id.layout /*2131231158*/:
  2383. launchDetailScreen(this.layout, R.id.layout);
  2384. return;
  2385. case R.id.page_range_setting /*2131231300*/:
  2386. Intent intent = new Intent(this, PageRangeSetting.class);
  2387. intent.putExtra("SHEETS", this.sheets);
  2388. intent.putExtra("printAll", this.printAll);
  2389. intent.putExtra("startValue", this.startValue);
  2390. intent.putExtra("endValue", this.endValue);
  2391. startActivityForResult(intent, 2);
  2392. return;
  2393. case R.id.paper_size /*2131231306*/:
  2394. launchDetailScreen(this.paperSize, R.id.paper_size);
  2395. return;
  2396. case R.id.paper_source /*2131231311*/:
  2397. int i = this.paperSource;
  2398. int[] iArr = this.paper_source_info;
  2399. if (iArr != null && iArr.length <= 1) {
  2400. i = 128;
  2401. }
  2402. launchDetailScreen(i, R.id.paper_source);
  2403. return;
  2404. case R.id.paper_type /*2131231314*/:
  2405. launchDetailScreen(this.paperType, R.id.paper_type);
  2406. return;
  2407. case R.id.printdate /*2131231355*/:
  2408. launchDetailScreen(this.printdate, R.id.printdate);
  2409. return;
  2410. case R.id.printer /*2131231358*/:
  2411. unbindEpsonService();
  2412. new AsyncTask<Void, Void, Void>() {
  2413. /* access modifiers changed from: protected */
  2414. public void onPreExecute() {
  2415. SettingScr.this.findViewById(R.id.printer).setClickable(false);
  2416. }
  2417. /* access modifiers changed from: protected */
  2418. public Void doInBackground(Void... voidArr) {
  2419. SettingScr settingScr = SettingScr.this;
  2420. WiFiDirectManager.disconnect(settingScr, WiFiDirectManager.DEVICE_TYPE_PRINTER, settingScr.printerIp);
  2421. SettingScr settingScr2 = SettingScr.this;
  2422. WiFiDirectManager.disconnectSimpleAP(settingScr2, settingScr2.autoConnectSsid, SettingScr.this.printerIp);
  2423. return null;
  2424. }
  2425. /* access modifiers changed from: protected */
  2426. public void onPostExecute(Void voidR) {
  2427. Intent intent = new Intent(SettingScr.this, SearchPrinterScr.class);
  2428. Bundle bundle = new Bundle();
  2429. bundle.putString(Constants.PRINTER_ID, SettingScr.this.printerId);
  2430. bundle.putString(Constants.PRINTER_IP, SettingScr.this.printerIp);
  2431. bundle.putString(Constants.PRINTER_EMAIL_ADDRESS, SettingScr.this.printerEmailAddress);
  2432. bundle.putInt(Constants.PRINTER_LOCATION, SettingScr.this.printerLocation);
  2433. bundle.putString(SettingScr.EXTRA_SIMPLEAP, SettingScr.this.autoConnectSsid);
  2434. intent.putExtras(bundle);
  2435. SettingScr.this.startActivityForResult(intent, 0);
  2436. SettingScr.this.findViewById(R.id.printer).setClickable(true);
  2437. }
  2438. }.execute(new Void[0]);
  2439. return;
  2440. case R.id.quality /*2131231392*/:
  2441. launchDetailScreen(this.quality, R.id.quality);
  2442. return;
  2443. case R.id.saturation_minus_button /*2131231425*/:
  2444. this.saturationValue--;
  2445. if (this.saturationValue <= -50) {
  2446. this.saturationValue = -50;
  2447. this.saturationMinus.setEnabled(false);
  2448. } else {
  2449. this.saturationMinus.setEnabled(true);
  2450. }
  2451. this.saturationPlus.setEnabled(true);
  2452. this.saturation.setText(String.valueOf(this.saturationValue));
  2453. return;
  2454. case R.id.saturation_plus_button /*2131231426*/:
  2455. this.saturationValue++;
  2456. if (this.saturationValue >= 50) {
  2457. this.saturationValue = 50;
  2458. this.saturationPlus.setEnabled(false);
  2459. } else {
  2460. this.saturationPlus.setEnabled(true);
  2461. }
  2462. this.saturationMinus.setEnabled(true);
  2463. this.saturation.setText(String.valueOf(this.saturationValue));
  2464. return;
  2465. case R.id.sharpness_setting_layout /*2131231482*/:
  2466. launchDetailScreen(this.mSharpnessValue, R.id.sharpness_setting_layout);
  2467. return;
  2468. default:
  2469. return;
  2470. }
  2471. }
  2472. }
  2473. private void launchDetailScreen(int i, int i2) {
  2474. Intent intent = new Intent(this, PrinterInfoDetail.class);
  2475. Bundle bundle = new Bundle();
  2476. bundle.putInt("ID", i2);
  2477. bundle.putInt("sizeIndex", this.sizeIndex);
  2478. bundle.putInt("typeIndex", this.typeIndex);
  2479. bundle.putInt("curValue", i);
  2480. bundle.putBoolean("isDocumentSetting", this.isDocumentSetting);
  2481. switch (i2) {
  2482. case R.id.color /*2131230930*/:
  2483. bundle.putIntArray(Constants.COLOR_INFO, this.color_info);
  2484. break;
  2485. case R.id.duplex /*2131231005*/:
  2486. bundle.putIntArray(Constants.DUPLEX_INFO, this.duplex_info);
  2487. break;
  2488. case R.id.layout /*2131231158*/:
  2489. bundle.putIntArray(Constants.LAYOUT_INFO, this.layout_info);
  2490. break;
  2491. case R.id.paper_size /*2131231306*/:
  2492. bundle.putIntArray(Constants.PAPER_SIZE_INFO, this.paper_size_info);
  2493. break;
  2494. case R.id.paper_source /*2131231311*/:
  2495. int[] iArr = this.paper_source_info;
  2496. bundle.putIntArray(Constants.PAPER_SOURCE_INFO, (iArr == null || iArr.length > 1) ? this.paper_source_info : new int[]{128});
  2497. break;
  2498. case R.id.paper_type /*2131231314*/:
  2499. bundle.putIntArray(Constants.PAPER_TYPE_INFO, this.paper_type_info);
  2500. break;
  2501. case R.id.quality /*2131231392*/:
  2502. bundle.putIntArray(Constants.PRINT_QUALITY_INFO, this.quality_info);
  2503. break;
  2504. }
  2505. intent.putExtras(bundle);
  2506. startActivityForResult(intent, 1);
  2507. }
  2508. /* access modifiers changed from: protected */
  2509. public void onActivityResult(int i, int i2, Intent intent) {
  2510. super.onActivityResult(i, i2, intent);
  2511. String callingPackage = getCallingPackage();
  2512. EPLog.i(callingPackage, "requestCode = " + i + " resultCode = " + i2);
  2513. if (i != 0) {
  2514. if (i != 4) {
  2515. if (i != 2) {
  2516. int i3 = 1;
  2517. if (i == 1 && i2 == -1) {
  2518. int i4 = intent.getExtras().getInt("curValue");
  2519. switch (intent.getExtras().getInt("ID")) {
  2520. case R.id.apf_setting_layout /*2131230819*/:
  2521. if (i4 != 1) {
  2522. i3 = 0;
  2523. }
  2524. this.photoApfValueForLocalPrinter = i3;
  2525. displayApfState(this.photoApfValueForLocalPrinter);
  2526. break;
  2527. case R.id.color /*2131230930*/:
  2528. this.mLookupTable = new MediaInfo.Color();
  2529. this.colorInfo.setText(getString(this.mLookupTable.getStringId(i4)));
  2530. this.mLookupTable.destructor();
  2531. this.color = i4;
  2532. break;
  2533. case R.id.duplex /*2131231005*/:
  2534. this.mLookupTable = new MediaInfo.Duplex();
  2535. this.duplexInfo.setText(getString(this.mLookupTable.getStringId(i4)));
  2536. this.mLookupTable.destructor();
  2537. this.duplex = i4;
  2538. break;
  2539. case R.id.feed_direction /*2131231037*/:
  2540. this.mLookupTable = new MediaInfo.FeedDirection();
  2541. this.feedDirectionInfo.setText(getString(this.mLookupTable.getStringId(i4)));
  2542. this.mLookupTable.destructor();
  2543. this.feedDirection = i4;
  2544. break;
  2545. case R.id.layout /*2131231158*/:
  2546. this.mLookupTable = new LayoutEx();
  2547. this.layoutInfo.setText(getString(this.mLookupTable.getStringId(i4)));
  2548. this.mLookupTable.destructor();
  2549. this.layout = i4;
  2550. this.undoFlag = false;
  2551. this.mHandler.sendEmptyMessage(32);
  2552. break;
  2553. case R.id.paper_size /*2131231306*/:
  2554. this.sizeIndex = intent.getExtras().getInt("INDEX");
  2555. this.mLookupTable = new MediaInfo.PaperSize();
  2556. this.paperSizeInfo.setText(getString(this.mLookupTable.getStringId(i4)));
  2557. this.mLookupTable.destructor();
  2558. this.paperSize = i4;
  2559. this.paperType = this.mPaperSizeType.getID(this.paperSize);
  2560. this.undoFlag = false;
  2561. this.mHandler.sendEmptyMessage(2);
  2562. break;
  2563. case R.id.paper_source /*2131231311*/:
  2564. this.mLookupTable = new MediaInfo.PaperSource();
  2565. this.paperSourceInfo.setText(getString(this.mLookupTable.getStringId(i4)));
  2566. this.mLookupTable.destructor();
  2567. int[] iArr = this.paper_source_info;
  2568. if (iArr != null && iArr.length > 1) {
  2569. this.paperSource = i4;
  2570. }
  2571. this.undoFlag = false;
  2572. this.mHandler.sendEmptyMessage(32);
  2573. break;
  2574. case R.id.paper_type /*2131231314*/:
  2575. this.typeIndex = intent.getExtras().getInt("INDEX");
  2576. this.mLookupTable = new MediaInfo.PaperType();
  2577. this.paperTypeInfo.setText(getString(this.mLookupTable.getStringId(i4)));
  2578. this.mLookupTable.destructor();
  2579. this.paperType = i4;
  2580. this.mPaperSizeType.putID(this.paperSize, this.paperType);
  2581. this.undoFlag = false;
  2582. this.mHandler.sendEmptyMessage(3);
  2583. break;
  2584. case R.id.printdate /*2131231355*/:
  2585. this.mLookupTable = new MediaInfo.PrintDate();
  2586. this.printDateInfo.setText(getString(this.mLookupTable.getStringId(i4)));
  2587. this.mLookupTable.destructor();
  2588. this.printdate = i4;
  2589. break;
  2590. case R.id.quality /*2131231392*/:
  2591. this.mLookupTable = new MediaInfo.Quality();
  2592. this.qualityInfo.setText(getString(this.mLookupTable.getStringId(i4)));
  2593. this.mLookupTable.destructor();
  2594. this.quality = i4;
  2595. break;
  2596. case R.id.sharpness_setting_layout /*2131231482*/:
  2597. if (i4 != 1) {
  2598. i3 = 0;
  2599. }
  2600. this.mSharpnessValue = i3;
  2601. displaySharpnessState(this.mSharpnessValue);
  2602. break;
  2603. }
  2604. }
  2605. } else if (i2 == -1) {
  2606. this.printAll = intent.getExtras().getBoolean("printAll");
  2607. this.startValue = intent.getExtras().getInt("startValue");
  2608. this.endValue = intent.getExtras().getInt("endValue");
  2609. this.mHandler.sendEmptyMessage(64);
  2610. }
  2611. } else {
  2612. endInkReplAndGoProbePrinter();
  2613. }
  2614. } else {
  2615. onPrinterSelectEnd(i2, intent);
  2616. }
  2617. updatePrinterIcon();
  2618. }
  2619. /* JADX WARNING: Can't fix incorrect switch cases order */
  2620. /* JADX WARNING: Code restructure failed: missing block: B:25:0x00ea, code lost:
  2621. if (r7.loadIpPrinterInfo(r6.printerId) == null) goto L_0x00f7;
  2622. */
  2623. /* JADX WARNING: Code restructure failed: missing block: B:27:0x00f3, code lost:
  2624. if (r7.loadRemotePrinterInfo(r6.printerEmailAddress) == null) goto L_0x00f7;
  2625. */
  2626. /* Code decompiled incorrectly, please refer to instructions dump. */
  2627. private void onPrinterSelectEnd(int r7, android.content.Intent r8) {
  2628. /*
  2629. r6 = this;
  2630. r0 = 0
  2631. r1 = 1
  2632. r2 = -1
  2633. if (r7 != r2) goto L_0x00d6
  2634. android.os.Bundle r7 = r8.getExtras()
  2635. java.lang.String r2 = "myprinter"
  2636. android.os.Parcelable r7 = r7.getParcelable(r2)
  2637. epson.print.MyPrinter r7 = (epson.print.MyPrinter) r7
  2638. r6.printer = r7
  2639. android.widget.TextView r7 = r6.printerName
  2640. epson.print.MyPrinter r2 = r6.printer
  2641. java.lang.String r2 = r2.getName()
  2642. r7.setText(r2)
  2643. epson.print.MyPrinter r7 = r6.printer
  2644. java.lang.String r7 = r7.getName()
  2645. r6.printerDeviceId = r7
  2646. epson.print.MyPrinter r7 = r6.printer
  2647. java.lang.String r7 = r7.getPrinterId()
  2648. r6.printerId = r7
  2649. epson.print.MyPrinter r7 = r6.printer
  2650. java.lang.String r7 = r7.getIp()
  2651. r6.printerIp = r7
  2652. epson.print.MyPrinter r7 = r6.printer
  2653. java.lang.String r7 = r7.getSerialNo()
  2654. r6.printerSerialNo = r7
  2655. epson.print.MyPrinter r7 = r6.printer
  2656. java.lang.String r7 = r7.getEmailAddress()
  2657. r6.printerEmailAddress = r7
  2658. epson.print.MyPrinter r7 = r6.printer
  2659. int r7 = r7.getLocation()
  2660. r6.printerLocation = r7
  2661. epson.print.EPPrinterManager r7 = new epson.print.EPPrinterManager
  2662. r7.<init>(r6)
  2663. int r2 = r6.printerLocation
  2664. switch(r2) {
  2665. case 2: goto L_0x0075;
  2666. case 3: goto L_0x0059;
  2667. default: goto L_0x0058;
  2668. }
  2669. L_0x0058:
  2670. goto L_0x0090
  2671. L_0x0059:
  2672. java.lang.String r2 = r6.printerId
  2673. epson.print.EPPrinterInfo r7 = r7.loadIpPrinterInfo(r2)
  2674. if (r7 == 0) goto L_0x0090
  2675. java.lang.String r2 = r7.userDefName
  2676. if (r2 == 0) goto L_0x0090
  2677. java.lang.String r2 = r7.userDefName
  2678. int r2 = r2.length()
  2679. if (r2 <= 0) goto L_0x0090
  2680. android.widget.TextView r2 = r6.printerName
  2681. java.lang.String r7 = r7.userDefName
  2682. r2.setText(r7)
  2683. goto L_0x0090
  2684. L_0x0075:
  2685. java.lang.String r2 = r6.printerEmailAddress
  2686. epson.print.EPPrinterInfo r7 = r7.loadRemotePrinterInfo(r2)
  2687. if (r7 == 0) goto L_0x0090
  2688. java.lang.String r2 = r7.userDefName
  2689. if (r2 == 0) goto L_0x0090
  2690. java.lang.String r2 = r7.userDefName
  2691. int r2 = r2.length()
  2692. if (r2 <= 0) goto L_0x0090
  2693. android.widget.TextView r2 = r6.printerName
  2694. java.lang.String r7 = r7.userDefName
  2695. r2.setText(r7)
  2696. L_0x0090:
  2697. android.os.Bundle r7 = r8.getExtras()
  2698. java.lang.String r8 = "simpleap"
  2699. java.lang.String r7 = r7.getString(r8)
  2700. r6.autoConnectSsid = r7
  2701. android.content.Context r7 = r6.getApplicationContext()
  2702. java.lang.String r8 = "PrintSetting"
  2703. java.lang.String r2 = "RE_SEARCH"
  2704. epson.common.Utils.savePref((android.content.Context) r7, (java.lang.String) r8, (java.lang.String) r2, (boolean) r1)
  2705. r6.undoFlag = r0
  2706. r6.mPrinterSelectDone = r1
  2707. r6.mWaiteInkReplenProgress = r1
  2708. android.content.Context r7 = r6.getApplicationContext()
  2709. java.lang.String r8 = r6.printerId
  2710. boolean r7 = epson.print.inkrpln.InkReplnHelper.isSimpleApOrP2p(r7, r8)
  2711. if (r7 != 0) goto L_0x00d2
  2712. epson.print.inkrpln.PrintSettingDependencyBuilder r7 = new epson.print.inkrpln.PrintSettingDependencyBuilder
  2713. java.lang.String r1 = r6.printerId
  2714. java.lang.String r2 = r6.printerIp
  2715. java.lang.String r3 = r6.printerSerialNo
  2716. int r4 = r6.printerLocation
  2717. java.lang.String r5 = r6.printerDeviceId
  2718. r0 = r7
  2719. r0.<init>(r1, r2, r3, r4, r5)
  2720. android.content.Intent r7 = epson.print.inkrpln.InkRplnProgressDialog.getStartIntent2(r6, r7)
  2721. r8 = 4
  2722. r6.startActivityForResult(r7, r8)
  2723. goto L_0x00fc
  2724. L_0x00d2:
  2725. r6.endInkReplAndGoProbePrinter()
  2726. goto L_0x00fc
  2727. L_0x00d6:
  2728. r6.bindEpsonService()
  2729. epson.print.EPPrinterManager r7 = new epson.print.EPPrinterManager
  2730. r7.<init>(r6)
  2731. int r8 = r6.printerLocation
  2732. switch(r8) {
  2733. case 2: goto L_0x00ed;
  2734. case 3: goto L_0x00e4;
  2735. default: goto L_0x00e3;
  2736. }
  2737. L_0x00e3:
  2738. goto L_0x00f6
  2739. L_0x00e4:
  2740. java.lang.String r8 = r6.printerId
  2741. epson.print.EPPrinterInfo r7 = r7.loadIpPrinterInfo(r8)
  2742. if (r7 != 0) goto L_0x00f6
  2743. goto L_0x00f7
  2744. L_0x00ed:
  2745. java.lang.String r8 = r6.printerEmailAddress
  2746. epson.print.EPPrinterInfo r7 = r7.loadRemotePrinterInfo(r8)
  2747. if (r7 != 0) goto L_0x00f6
  2748. goto L_0x00f7
  2749. L_0x00f6:
  2750. r1 = 0
  2751. L_0x00f7:
  2752. if (r1 == 0) goto L_0x00fc
  2753. r6.resetSettings()
  2754. L_0x00fc:
  2755. return
  2756. */
  2757. throw new UnsupportedOperationException("Method not decompiled: epson.print.screen.SettingScr.onPrinterSelectEnd(int, android.content.Intent):void");
  2758. }
  2759. private void endInkReplAndGoProbePrinter() {
  2760. this.mWaiteInkReplenProgress = false;
  2761. bindEpsonService();
  2762. this.mHandler.sendEmptyMessageDelayed(17, 100);
  2763. }
  2764. private void updateSettingView() {
  2765. int i = 8;
  2766. if (this.isDocumentSetting) {
  2767. if (this.printerLocation != 2) {
  2768. setVisibilityPageRange(true);
  2769. setClickablePageRange(true);
  2770. } else if (!this.enableShowPreview) {
  2771. setVisibilityPageRange(false);
  2772. } else if (this.disablePrintArea) {
  2773. setVisibilityPageRange(true);
  2774. setClickablePageRange(false);
  2775. } else {
  2776. setVisibilityPageRange(true);
  2777. setClickablePageRange(true);
  2778. }
  2779. if (this.sheets == 1) {
  2780. ((ImageView) findViewById(R.id.page_range_next_screen_imv)).setVisibility(8);
  2781. } else {
  2782. ((ImageView) findViewById(R.id.page_range_next_screen_imv)).setVisibility(0);
  2783. }
  2784. } else {
  2785. setVisibilityPageRange(false);
  2786. }
  2787. int[] iArr = this.color_info;
  2788. if (iArr == null) {
  2789. ((ImageView) findViewById(R.id.color_next_screen_imv)).setVisibility(8);
  2790. } else if (iArr.length <= 1) {
  2791. ((ImageView) findViewById(R.id.color_next_screen_imv)).setVisibility(8);
  2792. } else {
  2793. ((ImageView) findViewById(R.id.color_next_screen_imv)).setVisibility(0);
  2794. }
  2795. int[] iArr2 = this.duplex_info;
  2796. if (iArr2 == null) {
  2797. findViewById(R.id.duplex_view).setVisibility(8);
  2798. ((LinearLayout) findViewById(R.id.duplex)).setVisibility(8);
  2799. } else if (iArr2.length <= 1) {
  2800. findViewById(R.id.duplex_view).setVisibility(8);
  2801. ((LinearLayout) findViewById(R.id.duplex)).setVisibility(8);
  2802. } else {
  2803. findViewById(R.id.duplex_view).setVisibility(0);
  2804. ((LinearLayout) findViewById(R.id.duplex)).setVisibility(0);
  2805. }
  2806. switch (this.lang) {
  2807. case 2:
  2808. case 3:
  2809. findViewById(R.id.feed_direction_view).setVisibility(0);
  2810. findViewById(R.id.feed_direction).setVisibility(0);
  2811. break;
  2812. default:
  2813. findViewById(R.id.feed_direction_view).setVisibility(8);
  2814. findViewById(R.id.feed_direction).setVisibility(8);
  2815. break;
  2816. }
  2817. if (this.isDocumentSetting || this.printerLocation == 2) {
  2818. findViewById(R.id.printdate).setVisibility(8);
  2819. } else {
  2820. findViewById(R.id.printdate).setVisibility(0);
  2821. }
  2822. if (this.printerLocation != 2 && !this.isDocumentSetting) {
  2823. i = 0;
  2824. }
  2825. findViewById(R.id.viewGroupPhotoEffect).setVisibility(i);
  2826. findViewById(R.id.apf_setting_layout).setVisibility(i);
  2827. findViewById(R.id.sharpness_setting_layout).setVisibility(i);
  2828. }
  2829. private int getPrinterLang() {
  2830. int i;
  2831. IEpsonService iEpsonService;
  2832. if (!(this.printerLocation == 2 || (iEpsonService = this.mEpsonService) == null)) {
  2833. try {
  2834. i = iEpsonService.getLang();
  2835. } catch (RemoteException e) {
  2836. e.printStackTrace();
  2837. }
  2838. EPLog.d("PrintSetting", "getPrinterLang called : ret = " + i);
  2839. return i;
  2840. }
  2841. i = 1;
  2842. EPLog.d("PrintSetting", "getPrinterLang called : ret = " + i);
  2843. return i;
  2844. }
  2845. private void setVisibilityPageRange(boolean z) {
  2846. int i = 0;
  2847. findViewById(R.id.page_range_setting).setVisibility(z ? 0 : 8);
  2848. View findViewById = findViewById(R.id.page_range_separator);
  2849. if (!z) {
  2850. i = 8;
  2851. }
  2852. findViewById.setVisibility(i);
  2853. }
  2854. private void setClickablePageRange(boolean z) {
  2855. findViewById(R.id.page_range_setting).setClickable(z);
  2856. int i = 0;
  2857. findViewById(R.id.page_range_next_screen_imv).setVisibility(z ? 0 : 8);
  2858. View findViewById = findViewById(R.id.page_range_value);
  2859. if (!z) {
  2860. i = 8;
  2861. }
  2862. findViewById.setVisibility(i);
  2863. }
  2864. private void resetSettings() {
  2865. this.printerDeviceId = null;
  2866. this.printerId = null;
  2867. this.printerEmailAddress = null;
  2868. this.printerIp = null;
  2869. this.printerLocation = 0;
  2870. this.info = null;
  2871. this.paper_source_info = null;
  2872. this.color_info = null;
  2873. this.paper_size_info = null;
  2874. this.paper_type_info = null;
  2875. this.layout_info = null;
  2876. this.quality_info = null;
  2877. this.duplex_info = null;
  2878. this.autoConnectSsid = "";
  2879. this.printerName.setText(getString(R.string.str_lbl_title_scan));
  2880. ((ImageView) findViewById(R.id.imageViewPrinterLocation)).setVisibility(8);
  2881. updateSettingView();
  2882. setScreenState(true);
  2883. }
  2884. public void onBackPressed() {
  2885. super.onBackPressed();
  2886. this.mFinishRequested = true;
  2887. IEpsonService iEpsonService = this.mEpsonService;
  2888. if (iEpsonService != null) {
  2889. try {
  2890. iEpsonService.cancelSearchPrinter();
  2891. } catch (RemoteException e) {
  2892. e.printStackTrace();
  2893. }
  2894. }
  2895. loadSupportedMediaFile();
  2896. EPPrinterManager ePPrinterManager = new EPPrinterManager(this.mContext);
  2897. ePPrinterManager.rollbackRemotePrinterInfo();
  2898. ePPrinterManager.rollbackIPPrinterInfo();
  2899. new InkRplnRepository(false).deleteTemporaryData(this);
  2900. }
  2901. /* access modifiers changed from: private */
  2902. public void setScreenState(Boolean bool) {
  2903. if (bool.booleanValue()) {
  2904. this.progressGetOption.setVisibility(8);
  2905. } else {
  2906. this.progressGetOption.setVisibility(0);
  2907. }
  2908. findViewById(R.id.printer).setClickable(bool.booleanValue());
  2909. findViewById(R.id.paper_size).setClickable(bool.booleanValue());
  2910. findViewById(R.id.paper_type).setClickable(bool.booleanValue());
  2911. findViewById(R.id.layout).setClickable(bool.booleanValue());
  2912. findViewById(R.id.quality).setClickable(bool.booleanValue());
  2913. findViewById(R.id.paper_source).setClickable(bool.booleanValue());
  2914. findViewById(R.id.color).setClickable(bool.booleanValue());
  2915. findViewById(R.id.duplex).setClickable(bool.booleanValue());
  2916. findViewById(R.id.feed_direction).setClickable(bool.booleanValue());
  2917. findViewById(R.id.printdate).setClickable(bool.booleanValue());
  2918. }
  2919. public void showErrorDialog(String str, String str2) {
  2920. new CustomTitleAlertDialogBuilder(this).setCancelable(false).setTitle(str).setMessage(str2).setNegativeButton(getString(R.string.f343ok), new DialogInterface.OnClickListener() {
  2921. public void onClick(DialogInterface dialogInterface, int i) {
  2922. SettingScr.this.setScreenState(true);
  2923. dialogInterface.cancel();
  2924. }
  2925. }).create().show();
  2926. updateSupportedMediaFile(true);
  2927. }
  2928. /* access modifiers changed from: protected */
  2929. public void onResume() {
  2930. super.onResume();
  2931. EPLog.m307e("SettingScr", "onResume()");
  2932. if (this.printerId != null && this.printerLocation == 1 && this.isRetryAfterConnectSimpleAp && !this.mWaiteInkReplenProgress) {
  2933. this.undoFlag = false;
  2934. if (loadSupportedMediaFile()) {
  2935. this.mHandler.sendEmptyMessage(1);
  2936. } else {
  2937. this.mHandler.sendEmptyMessage(17);
  2938. }
  2939. }
  2940. }
  2941. /* access modifiers changed from: protected */
  2942. public void onPause() {
  2943. EPLog.d("SettingScr", "onPause");
  2944. super.onPause();
  2945. if (isFinishing()) {
  2946. this.mFinishRequested = true;
  2947. deleteLongTapMessage();
  2948. }
  2949. WiFiDirectManager.disconnect(this, WiFiDirectManager.DEVICE_TYPE_PRINTER, this.printerIp);
  2950. WiFiDirectManager.disconnectSimpleAP(this, this.autoConnectSsid, this.printerIp);
  2951. }
  2952. public boolean onCreateOptionsMenu(Menu menu) {
  2953. getMenuInflater().inflate(R.C2138menu.menu_done, menu);
  2954. return super.onCreateOptionsMenu(menu);
  2955. }
  2956. public boolean onOptionsItemSelected(MenuItem menuItem) {
  2957. if (menuItem.getItemId() != R.id.menuSettingsDone) {
  2958. return super.onOptionsItemSelected(menuItem);
  2959. }
  2960. saveChanged();
  2961. setResult(3, getIntent());
  2962. finish();
  2963. return true;
  2964. }
  2965. /* access modifiers changed from: protected */
  2966. public void deleteLongTapMessage() {
  2967. MotionEvent obtain = MotionEvent.obtain(SystemClock.uptimeMillis(), SystemClock.uptimeMillis() + 10, 1, 0.0f, 0.0f, 0);
  2968. this.copiesMinus.dispatchTouchEvent(obtain);
  2969. this.copiesPlus.dispatchTouchEvent(obtain);
  2970. }
  2971. public void onConfigurationChanged(Configuration configuration) {
  2972. super.onConfigurationChanged(configuration);
  2973. deleteLongTapMessage();
  2974. }
  2975. }