Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.92 KB | None | 0 0
  1. //
  2. // Decompiled by Procyon v0.5.30
  3. //
  4.  
  5. package com.amazon.kindle.settings;
  6.  
  7. import com.amazon.kindle.settings.view.readingtime.H;
  8. import com.amazon.kindle.settings.view.readingtime.lA;
  9. import com.amazon.kindle.device.G;
  10. import javax.swing.SwingUtilities;
  11. import com.amazon.kindle.settings.view.readingtime.FreeTimePasswordProtectedController;
  12. import com.amazon.kindle.control.PasswordProtectedController;
  13. import com.amazon.kindle.settings.view.l.F;
  14. import com.amazon.kindle.settings.view.s.K;
  15. import com.amazon.kindle.settings.view.o.b;
  16. import com.amazon.kindle.settings.view.p.k;
  17. import com.amazon.kindle.profile.Profile;
  18. import com.amazon.kindle.settings.e.q;
  19. import com.amazon.kindle.profile.AdultProfile;
  20. import com.amazon.kindle.settings.view.e.W;
  21. import com.amazon.kindle.settings.e.gA;
  22. import com.amazon.kindle.settings.b.g;
  23. import com.amazon.kindle.settings.view.e.t;
  24. import com.amazon.kindle.settings.view.readingtime.u;
  25. import com.amazon.kindle.settings.view.readingtime.cA;
  26. import com.amazon.kindle.profile.ChildProfile;
  27. import com.amazon.kindle.profile.household.HouseholdService;
  28. import com.amazon.kindle.settings.view.n.I;
  29. import com.amazon.kindle.settings.view.readingtime.dA;
  30. import com.amazon.kindle.settings.view.readingtime.GA;
  31. import com.amazon.kindle.settings.view.f.M;
  32. import com.amazon.kindle.settings.e.i;
  33. import com.amazon.kindle.settings.b.f;
  34. import com.amazon.kindle.restricted.webservices.social.L;
  35. import com.amazon.kindle.settings.view.d.E;
  36. import com.amazon.kindle.settings.view.registration.A;
  37. import com.amazon.kindle.booklet.Booklet;
  38. import com.amazon.kindle.apps.util.bA;
  39. import java.util.Map;
  40. import java.net.URI;
  41. import com.amazon.kindle.settings.view.b.D;
  42. import com.amazon.kindle.control.DisplayController;
  43. import com.amazon.kindle.util.lipc.LipcEvent;
  44. import com.amazon.kindle.device.UserStoreListener;
  45. import com.amazon.kindle.device.UserStoreService;
  46. import com.amazon.kindle.util.lipc.LipcException;
  47. import com.amazon.kindle.util.lipc.LipcEventListener;
  48. import com.amazon.kindle.util.lipc.helper.PowerTarget;
  49. import com.amazon.kindle.settings.b.B;
  50. import com.amazon.kindle.booklet.BookletContext;
  51. import com.amazon.ebook.util.log.e;
  52. import com.amazon.kindle.control.DCBooklet;
  53.  
  54. public class SettingsBooklet extends DCBooklet
  55. {
  56. private static final e K;
  57. private static final String G = "diagnosticMode";
  58. private volatile boolean f;
  59. private static final int I = 30000;
  60. private static final String i = "dest";
  61. public static final String g = "profileId";
  62. private B M;
  63. private f J;
  64. static /* synthetic */ Class A;
  65. static /* synthetic */ Class b;
  66.  
  67. public void create(final BookletContext a) {
  68. super.create(a);
  69. com.amazon.kindle.settings.b.B.klb(this);
  70. this.RMb();
  71. this.mPb();
  72. }
  73.  
  74. public void destroy() {
  75. SettingsBooklet settingsBooklet;
  76. try {
  77. new PowerTarget().removeLipcEventListener((LipcEventListener)this.M);
  78. settingsBooklet = this;
  79. }
  80. catch (LipcException a) {
  81. SettingsBooklet.K.ycb("Error removing Power Target listener", (Throwable)a);
  82. settingsBooklet = this;
  83. }
  84. final UserStoreService b;
  85. SettingsBooklet settingsBooklet2;
  86. if ((b = (UserStoreService)settingsBooklet.l.getService((SettingsBooklet.A == null) ? (SettingsBooklet.A = UeA("com.amazon.kindle.device.UserStoreService")) : SettingsBooklet.A)) == null) {
  87. SettingsBooklet.K.UNd(e.L, new String[] { "UserStoreService" }, (String)null);
  88. settingsBooklet2 = this;
  89. }
  90. else {
  91. b.Rk((UserStoreListener)this.J);
  92. settingsBooklet2 = this;
  93. }
  94. settingsBooklet2.destroy();
  95. }
  96.  
  97. private void mPb() {
  98. this.M = new LipcEventListener() {
  99. private final /* synthetic */ SettingsBooklet H = null;
  100.  
  101. public void onLipcEvent(final LipcEvent a) {
  102. if ("goingToScreenSaver".equals(a.getEventName()) || "userShutdown".equals(a.getEventName())) {
  103. this.H.HPb();
  104. }
  105. }
  106. };
  107. SettingsBooklet settingsBooklet;
  108. try {
  109. new PowerTarget().addLipcEventListener((LipcEventListener)this.M);
  110. settingsBooklet = this;
  111. }
  112. catch (LipcException a) {
  113. SettingsBooklet.K.J("Error removing Power Target listener");
  114. settingsBooklet = this;
  115. }
  116. final UserStoreService b;
  117. if ((b = (UserStoreService)settingsBooklet.getBookletContext().getService((SettingsBooklet.A == null) ? (SettingsBooklet.A = UeA("com.amazon.kindle.device.UserStoreService")) : SettingsBooklet.A)) == null) {
  118. SettingsBooklet.K.UNd(e.L, new String[] { "UserStoreService" }, (String)null);
  119. return;
  120. }
  121. b.Jk((UserStoreListener)(this.J = new UserStoreListener() {
  122. private final /* synthetic */ SettingsBooklet H = null;
  123.  
  124. public void HC(final com.amazon.kindle.device.B a) {
  125. if (a.raB() == com.amazon.kindle.device.B.f.e) {
  126. this.H.HPb();
  127. }
  128. }
  129. }));
  130. }
  131.  
  132. public DisplayController RMb() {
  133. return (DisplayController)D.ZBb(this);
  134. }
  135.  
  136. public void start(final URI a) {
  137. this.f = this.isActive();
  138. super.start(a);
  139. }
  140.  
  141. protected void vQb(final Map f) {
  142. final DisplayController e;
  143. SettingsBooklet settingsBooklet;
  144. if ((e = this.BRb(f)) != null) {
  145. settingsBooklet = this;
  146. e.qD(f);
  147. this.PPb(e, (Object)null, false);
  148. }
  149. else {
  150. if (f != null && f.containsKey("diagnosticMode")) {
  151. final Object c;
  152. if ((c = f.get("diagnosticMode")) instanceof String) {
  153. this.hqb((String)c);
  154. }
  155. else {
  156. this.Pqb("Diagnostic Request ID type expected: String");
  157. }
  158. }
  159. else if (f != null && f.containsKey("viewRequest")) {
  160. final Object d;
  161. if ((d = f.get("viewRequest")) instanceof String) {
  162. final int b = (this.D != null && this.D.bD()) ? 1 : 0;
  163. final DisplayController a;
  164. if (b == 0 && this.eRb(this.D) && (a = this.D.Tb()) != null && a.bD()) {
  165. this.QMb(a);
  166. }
  167. this.wRb((String)d, f);
  168. }
  169. else {
  170. this.Pqb("View Request ID type expected: String");
  171. }
  172. }
  173. else {
  174. this.YQb();
  175. }
  176. settingsBooklet = this;
  177. }
  178. settingsBooklet.Eob();
  179. }
  180.  
  181. public void wRb(final String l, final Map k) {
  182. if ("VIEW_REQUEST_ID_REGISTRATION".equals(l) && !this.f && !bA.DZC((Booklet)this)) {
  183. com.amazon.kindle.settings.view.registration.A.ZBb(this).Abb((Object)k);
  184. return;
  185. }
  186. if ("VIEW_REQUEST_ID_SOCIAL_NETWORKS".equals(l)) {
  187. E.ZBb(this).Sdb();
  188. return;
  189. }
  190. if ("VIEW_REQUEST_ID_FACEBOOK_LOGIN".equals(l)) {
  191. this.Rpb(L.B.e);
  192. return;
  193. }
  194. if ("VIEW_REQUEST_ID_GROK_FACEBOOK_LOGIN".equals(l)) {
  195. this.jqb(L.B.l);
  196. return;
  197. }
  198. if ("VIEW_REQUEST_ID_TWITTER_LOGIN".equals(l)) {
  199. this.Rpb(L.B.c);
  200. return;
  201. }
  202. if ("VIEW_REQUEST_ID_WEIBO_LOGIN".equals(l)) {
  203. if (com.amazon.kindle.settings.b.f.OJb()) {
  204. this.Rpb(L.B.B);
  205. return;
  206. }
  207. com.amazon.kindle.settings.b.f.LJb((Booklet)this);
  208. }
  209. else if ("VIEW_REQUEST_FREETIME_LANDING_PAGE".equals(l)) {
  210. final String g = k.get("dest");
  211. if ("HOUSEHOLD_PROFILE_DISPLAY".equals(g)) {
  212. com.amazon.kindle.settings.e.i.ZBb(this).Sdb();
  213. return;
  214. }
  215. com.amazon.kindle.settings.view.readingtime.E.ZBb(this).Sdb();
  216. }
  217. else {
  218. if ("VIEW_REQUEST_ID_FRONT_LIGHT".equals(l)) {
  219. com.amazon.kindle.settings.view.q.f.ZBb(this).Sdb();
  220. return;
  221. }
  222. if ("VIEW_REQUEST_ID_LANGUAGE_LEARNING".equals(l)) {
  223. com.amazon.kindle.settings.view.m.f.ZBb(this).Sdb();
  224. return;
  225. }
  226. if ("VIEW_REQUEST_ID_READING_OPTIONS".equals(l)) {
  227. com.amazon.kindle.settings.view.f.M.ZBb(this).Sdb();
  228. return;
  229. }
  230. if ("VIEW_REQUEST_FREETIME_STARTUP_PAGE".equals(l)) {
  231. GA.ZBb(this).Sdb();
  232. return;
  233. }
  234. if ("VIEW_REQUEST_FREETIME_UNLIMITED_PAGE".equals(l)) {
  235. dA.FGb(this, k.get("dest")).yCb((Object)null, true);
  236. return;
  237. }
  238. if ("VIEW_REQUEST_ID_LANGUAGE".equals(l)) {
  239. com.amazon.kindle.settings.view.n.I.ZBb(this).Sdb();
  240. return;
  241. }
  242. if (l != null && l.startsWith("VIEW_REQUEST_FREETIME_EDIT_PAGE_")) {
  243. final String h = l.substring("VIEW_REQUEST_FREETIME_EDIT_PAGE_".length());
  244. final HouseholdService d;
  245. final ChildProfile c;
  246. if ((d = (HouseholdService)this.getBookletContext().getService((SettingsBooklet.b == null) ? (SettingsBooklet.b = UeA("com.amazon.kindle.profile.household.HouseholdService")) : SettingsBooklet.b)) != null && (c = (ChildProfile)d.SF(h)) != null) {
  247. cA.ffb(this, c, "READING_TIME").Sdb();
  248. }
  249. }
  250. else if (l != null && l.startsWith("VIEW_REQUEST_FREETIME_EDIT_CATALOG_PAGE_")) {
  251. final String i;
  252. if (com.amazon.ebook.util.text.I.rAc(i = l.substring("VIEW_REQUEST_FREETIME_EDIT_CATALOG_PAGE_".length()))) {
  253. this.Pqb("Error handling profile catalog view, invalid profile id");
  254. return;
  255. }
  256. final HouseholdService f;
  257. if ((f = (HouseholdService)this.getBookletContext().getService((SettingsBooklet.b == null) ? (SettingsBooklet.b = UeA("com.amazon.kindle.profile.household.HouseholdService")) : SettingsBooklet.b)) == null) {
  258. this.Pqb("Unable to load Household Service");
  259. return;
  260. }
  261. final ChildProfile b;
  262. if ((b = (ChildProfile)f.SF(i)) == null) {
  263. this.Pqb("Unable to load profile during profile catalog load view request");
  264. return;
  265. }
  266. u.yfb(this, b, false, true, k.get("dest")).Abb((Object)b);
  267. }
  268. else {
  269. if ("ASR_SETTINGS".equalsIgnoreCase(l)) {
  270. t.ZBb(this).Abb((Object)k);
  271. return;
  272. }
  273. if ("VIEW_REQUEST_FREETIME_OPEN_PAGE".equals(l)) {
  274. com.amazon.kindle.settings.b.g.cLb(this);
  275. return;
  276. }
  277. if ("VIEW_REQUEST_LAUNCH_FREETIME_ON_SCREENSAVER".equals(l)) {
  278. com.amazon.kindle.settings.b.g.dlb(this, "ViewRequest", k.get("dest"));
  279. return;
  280. }
  281. if ("VIEW_REQUEST_ID_NOTES_AND_ABOUT_BOOK".equals(l)) {
  282. com.amazon.kindle.settings.view.k.f.ZBb(this).Sdb();
  283. return;
  284. }
  285. if ("VIEW_REQUEST_ID_ADD_PROFILE_TO_HOUSEHOLD_PAGE".equalsIgnoreCase(l)) {
  286. gA.ZBb(this).Abb((Object)k);
  287. return;
  288. }
  289. if ("VIEW_REQUEST_ID_HOUSEHOLD_PROFILES_PAGE".equalsIgnoreCase(l)) {
  290. com.amazon.kindle.settings.e.i.ZBb(this).Abb((Object)k);
  291. return;
  292. }
  293. if ("VIEW_REQUEST_ID_ASR_TUTORIAL".equalsIgnoreCase(l)) {
  294. W.ZBb(this).Abb((Object)k);
  295. return;
  296. }
  297. if ("VIEW_REQUEST_ID_JOIN_HOUSEHOLD_PAGE".equalsIgnoreCase(l)) {
  298. com.amazon.kindle.settings.e.A.ZBb(this).Abb((Object)k);
  299. return;
  300. }
  301. if ("VIEW_REQUEST_ID_EDIT_ADULT_PROFILE_PAGE".equals(l)) {
  302. final String j;
  303. if (com.amazon.ebook.util.text.I.rAc(j = k.get("profileId"))) {
  304. this.Pqb("loginId empty.");
  305. return;
  306. }
  307. final HouseholdService e;
  308. if ((e = (HouseholdService)this.getBookletContext().getService((SettingsBooklet.b == null) ? (SettingsBooklet.b = UeA("com.amazon.kindle.profile.household.HouseholdService")) : SettingsBooklet.b)) == null) {
  309. this.Pqb("Unable to load Household Service");
  310. return;
  311. }
  312. final Profile a;
  313. if ((a = e.SF(j)) == null) {
  314. this.Pqb("Profile with given login id not found");
  315. return;
  316. }
  317. q.pLb(this, (AdultProfile)a).Abb((Object)k);
  318. }
  319. else {
  320. if ("VIEW_REQUEST_ID_CONTENT_SHARING_PAGE".equalsIgnoreCase(l)) {
  321. com.amazon.kindle.settings.e.GA.ZBb(this).Abb((Object)k);
  322. return;
  323. }
  324. this.Pqb("Invalid View Request");
  325. }
  326. }
  327. }
  328. }
  329.  
  330. protected DisplayController cOb(final String a) {
  331. if ("DEVICE_OPTIONS".equals(a)) {
  332. return (DisplayController)com.amazon.kindle.settings.view.t.A.ZBb(this);
  333. }
  334. if ("READING_OPTIONS".equals(a)) {
  335. return (DisplayController)com.amazon.kindle.settings.view.f.M.ZBb(this);
  336. }
  337. if ("ADVANCED_OPTIONS".equals(a)) {
  338. return (DisplayController)com.amazon.kindle.settings.view.u.m.ZBb(this);
  339. }
  340. if ("SPECIAL_OFFERS".equals(a)) {
  341. return (DisplayController)com.amazon.kindle.settings.view.c.B.ZBb(this);
  342. }
  343. if ("REGISTRATION".equals(a)) {
  344. return (DisplayController)com.amazon.kindle.settings.view.registration.A.ZBb(this);
  345. }
  346. if ("INTERNATIONAL".equals(a)) {
  347. return (DisplayController)k.ZBb(this);
  348. }
  349. if ("SELECT_DICTIONARY".equals(a)) {
  350. return (DisplayController)com.amazon.kindle.settings.view.r.k.ZBb(this);
  351. }
  352. if ("PASSCODE".equals(a)) {
  353. return (DisplayController)com.amazon.kindle.settings.view.h.L.ZBb(this);
  354. }
  355. if ("KEYBOARD".equals(a)) {
  356. return (DisplayController)com.amazon.kindle.settings.view.o.b.ZBb(this);
  357. }
  358. if ("LANGUAGE".equals(a)) {
  359. return (DisplayController)com.amazon.kindle.settings.view.n.I.ZBb(this);
  360. }
  361. if ("PERSONALIZE".equals(a)) {
  362. return (DisplayController)com.amazon.kindle.settings.view.g.b.ZBb(this);
  363. }
  364. if ("DEFAULT_PARENTAL_CONTROLS".equals(a)) {
  365. return (DisplayController)com.amazon.kindle.settings.view.i.b.ZBb(this);
  366. }
  367. if ("DICTIONARY_LANGUAGES".equals(a)) {
  368. return (DisplayController)com.amazon.kindle.settings.view.r.I.ZBb(this);
  369. }
  370. if ("711".equals(a)) {
  371. return (DisplayController)com.amazon.kindle.settings.view.s.D.ZBb(this);
  372. }
  373. if ("411".equals(a)) {
  374. return (DisplayController)com.amazon.kindle.settings.view.s.K.ZBb(this);
  375. }
  376. if ("311".equals(a)) {
  377. return (DisplayController)com.amazon.kindle.settings.view.s.b.ZBb(this);
  378. }
  379. if ("611".equals(a)) {
  380. return (DisplayController)com.amazon.kindle.settings.view.s.A.ZBb(this);
  381. }
  382. if ("LEGAL".equals(a)) {
  383. return (DisplayController)F.ZBb(this);
  384. }
  385. if ("SOCIAL_NETWORKS".equals(a)) {
  386. return (DisplayController)E.ZBb(this);
  387. }
  388. if ("CONNECT_SOCIAL_NETWORK".equals(a)) {
  389. return (DisplayController)com.amazon.kindle.settings.view.d.e.ZBb(this);
  390. }
  391. if ("FRONT_LIGHT".equals(a)) {
  392. return (DisplayController)com.amazon.kindle.settings.view.q.f.ZBb(this);
  393. }
  394. if ("READING_TIME".equals(a)) {
  395. return (DisplayController)com.amazon.kindle.settings.view.readingtime.E.ZBb(this);
  396. }
  397. if ("PARENTAL_CONTROLS_RESTRICTIONS".equals(a)) {
  398. return (DisplayController)com.amazon.kindle.settings.view.i.L.ZBb(this);
  399. }
  400. if ("PROFILE_CONTENT_CONTROLLER".equals(a)) {
  401. return (DisplayController)dA.ZBb(this);
  402. }
  403. if ("ASR_SETTINGS".equals(a)) {
  404. return (DisplayController)t.ZBb(this);
  405. }
  406. SettingsBooklet.K.UNd(SettingsBooklet.E, new String[] { a }, "Use: Default Controller");
  407. return this.RMb();
  408. }
  409.  
  410. private void Rpb(final L.B c) {
  411. //
  412. // This method could not be decompiled.
  413. //
  414. // Original Bytecode:
  415. //
  416. // 0: new Ljavax/swing/Timer;
  417. // 3: dup
  418. // 4: sipush 30000
  419. // 7: new Lcom/amazon/kindle/settings/m;
  420. // 10: dup
  421. // 11: aload_0 /* d */
  422. // 12: aload_1 /* c */
  423. // 13: invokespecial com/amazon/kindle/settings/m.<init>:(Lcom/amazon/kindle/settings/SettingsBooklet;Lcom/amazon/kindle/restricted/webservices/social/B;)V
  424. // 16: invokespecial javax/swing/Timer.<init>:(ILjava/awt/event/ActionListener;)V
  425. // 19: astore_2
  426. // 20: aload_0 /* d */
  427. // 21: aload_1 /* c */
  428. // 22: aload_2 /* b */
  429. // 23: dup_x2
  430. // 24: aload_2 /* b */
  431. // 25: iconst_0
  432. // 26: invokevirtual javax/swing/Timer.setRepeats:(Z)V
  433. // 29: invokevirtual javax/swing/Timer.start:()V
  434. // 32: iconst_0
  435. // 33: invokespecial com/amazon/kindle/settings/SettingsBooklet.xqb:(Lcom/amazon/kindle/restricted/webservices/social/B;Z)Lcom/amazon/kindle/restricted/webservices/social/L;
  436. // 36: astore_3 /* a */
  437. // 37: invokevirtual javax/swing/Timer.isRunning:()Z
  438. // 40: ifeq 95
  439. // 43: aload_3 /* a */
  440. // 44: aload_2 /* b */
  441. // 45: invokevirtual javax/swing/Timer.stop:()V
  442. // 48: ifnull 68
  443. // 51: aload_3 /* a */
  444. // 52: invokevirtual com/amazon/kindle/restricted/webservices/social/L.qP:()Z
  445. // 55: ifne 68
  446. // 58: aload_0 /* d */
  447. // 59: invokestatic com/amazon/kindle/settings/view/d/e.ZBb:(Lcom/amazon/kindle/settings/SettingsBooklet;)Lcom/amazon/kindle/control/social/B;
  448. // 62: aload_3 /* a */
  449. // 63: invokevirtual com/amazon/kindle/control/social/B.Abb:(Ljava/lang/Object;)V
  450. // 66: return
  451. // 67: pop
  452. // 68: aload_0 /* d */
  453. // 69: new Ljava/lang/StringBuffer;
  454. // 72: dup
  455. // 73: invokespecial java/lang/StringBuffer.<init>:()V
  456. // 76: iconst_0
  457. // 77: ldc "Couldn't switch to "
  458. // 79: invokevirtual java/lang/StringBuffer.insert:(ILjava/lang/String;)Ljava/lang/StringBuffer;
  459. // 82: aload_1 /* c */
  460. // 83: invokevirtual com/amazon/kindle/restricted/webservices/social/B.name:()Ljava/lang/String;
  461. // 86: invokevirtual java/lang/StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
  462. // 89: invokevirtual java/lang/StringBuffer.toString:()Ljava/lang/String;
  463. // 92: invokespecial com/amazon/kindle/settings/SettingsBooklet.Pqb:(Ljava/lang/String;)V
  464. // 95: return
  465. // LocalVariableTable:
  466. // Start Length Slot Name Signature
  467. // ----- ------ ---- ---- ---------------------------------------------------
  468. // 0 96 0 d Lcom/amazon/kindle/settings/SettingsBooklet;
  469. // 0 96 1 c Lcom/amazon/kindle/restricted/webservices/social/B;
  470. // 22 74 2 b Ljavax/swing/Timer;
  471. // 24 72 3 a Lcom/amazon/kindle/restricted/webservices/social/L;
  472. //
  473. // The error that occurred was:
  474. //
  475. // java.lang.NullPointerException
  476. //
  477. throw new IllegalStateException("An error occurred while decompiling this method.");
  478. }
  479.  
  480. private void jqb(final L.B e) {
  481. //
  482. // This method could not be decompiled.
  483. //
  484. // Original Bytecode:
  485. //
  486. // 0: aload_0 /* f */
  487. // 1: invokevirtual com/amazon/kindle/settings/SettingsBooklet.getBookletContext:()Lcom/amazon/kindle/booklet/BookletContext;
  488. // 4: getstatic com/amazon/kindle/settings/SettingsBooklet.c:Ljava/lang/Class;
  489. // 7: ifnonnull 23
  490. // 10: ldc "com.amazon.kindle.restricted.webservices.grok.GrokService"
  491. // 12: invokestatic com/amazon/kindle/settings/SettingsBooklet.UeA:(Ljava/lang/String;)Ljava/lang/Class;
  492. // 15: dup
  493. // 16: putstatic com/amazon/kindle/settings/SettingsBooklet.c:Ljava/lang/Class;
  494. // 19: goto 26
  495. // 22: pop
  496. // 23: getstatic com/amazon/kindle/settings/SettingsBooklet.c:Ljava/lang/Class;
  497. // 26: invokeinterface com/amazon/kindle/booklet/BookletContext.getService:(Ljava/lang/Class;)Ljava/lang/Object;
  498. // 31: checkcast Lcom/amazon/kindle/restricted/webservices/grok/GrokService;
  499. // 34: dup
  500. // 35: astore_2 /* d */
  501. // 36: ifnonnull 61
  502. // 39: getstatic com/amazon/kindle/settings/SettingsBooklet.K:Lcom/amazon/ebook/util/log/e;
  503. // 42: getstatic com/amazon/ebook/util/log/e.L:Lcom/amazon/ebook/util/log/H;
  504. // 45: iconst_1
  505. // 46: anewarray Ljava/lang/String;
  506. // 49: iconst_1
  507. // 50: dup
  508. // 51: pop2
  509. // 52: dup
  510. // 53: iconst_0
  511. // 54: ldc "GrokService"
  512. // 56: aastore
  513. // 57: aconst_null
  514. // 58: invokevirtual com/amazon/ebook/util/log/e.UNd:(Lcom/amazon/ebook/util/log/H;[Ljava/lang/String;Ljava/lang/String;)V
  515. // 61: new Ljavax/swing/Timer;
  516. // 64: dup
  517. // 65: sipush 30000
  518. // 68: new Lcom/amazon/kindle/settings/k;
  519. // 71: dup
  520. // 72: aload_0 /* f */
  521. // 73: aload_1 /* e */
  522. // 74: invokespecial com/amazon/kindle/settings/k.<init>:(Lcom/amazon/kindle/settings/SettingsBooklet;Lcom/amazon/kindle/restricted/webservices/social/B;)V
  523. // 77: invokespecial javax/swing/Timer.<init>:(ILjava/awt/event/ActionListener;)V
  524. // 80: astore_3
  525. // 81: aload_0 /* f */
  526. // 82: aload_1 /* e */
  527. // 83: aload_3 /* c */
  528. // 84: dup_x2
  529. // 85: aload_3 /* c */
  530. // 86: iconst_0
  531. // 87: invokevirtual javax/swing/Timer.setRepeats:(Z)V
  532. // 90: invokevirtual javax/swing/Timer.start:()V
  533. // 93: iconst_1
  534. // 94: invokespecial com/amazon/kindle/settings/SettingsBooklet.xqb:(Lcom/amazon/kindle/restricted/webservices/social/B;Z)Lcom/amazon/kindle/restricted/webservices/social/L;
  535. // 97: astore b
  536. // 99: invokevirtual javax/swing/Timer.isRunning:()Z
  537. // 102: ifeq 206
  538. // 105: aload b
  539. // 107: aload_3 /* c */
  540. // 108: invokevirtual javax/swing/Timer.stop:()V
  541. // 111: ifnull 179
  542. // 114: aload b
  543. // 116: invokevirtual com/amazon/kindle/restricted/webservices/social/L.qP:()Z
  544. // 119: ifne 179
  545. // 122: aload_2 /* d */
  546. // 123: invokeinterface com/amazon/kindle/restricted/webservices/grok/GrokService.dG:()Z
  547. // 128: ifeq 206
  548. // 131: getstatic com/amazon/kindle/restricted/webservices/social/B.l:Lcom/amazon/kindle/restricted/webservices/social/B;
  549. // 134: invokevirtual com/amazon/kindle/restricted/webservices/social/B.name:()Ljava/lang/String;
  550. // 137: aload b
  551. // 139: invokevirtual com/amazon/kindle/restricted/webservices/social/L.zRb:()Ljava/lang/String;
  552. // 142: invokevirtual java/lang/String.equals:(Ljava/lang/Object;)Z
  553. // 145: ifeq 206
  554. // 148: new Ljava/util/HashMap;
  555. // 151: dup
  556. // 152: invokespecial java/util/HashMap.<init>:()V
  557. // 155: dup
  558. // 156: astore a
  559. // 158: ldc "VIEW_MODE"
  560. // 160: ldc "FACEBOOK_LOGIN_MODE"
  561. // 162: invokeinterface java/util/Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
  562. // 167: aload_0 /* f */
  563. // 168: invokestatic com/amazon/kindle/settings/view/d/g.ZBb:(Lcom/amazon/kindle/settings/SettingsBooklet;)Lcom/amazon/kindle/settings/view/d/g;
  564. // 171: aload a
  565. // 173: invokevirtual com/amazon/kindle/settings/view/d/g.Abb:(Ljava/lang/Object;)V
  566. // 176: pop
  567. // 177: return
  568. // 178: iconst_0
  569. // 179: aload_0 /* f */
  570. // 180: new Ljava/lang/StringBuffer;
  571. // 183: dup
  572. // 184: invokespecial java/lang/StringBuffer.<init>:()V
  573. // 187: iconst_0
  574. // 188: ldc "Couldn't switch to "
  575. // 190: invokevirtual java/lang/StringBuffer.insert:(ILjava/lang/String;)Ljava/lang/StringBuffer;
  576. // 193: aload_1 /* e */
  577. // 194: invokevirtual com/amazon/kindle/restricted/webservices/social/B.name:()Ljava/lang/String;
  578. // 197: invokevirtual java/lang/StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
  579. // 200: invokevirtual java/lang/StringBuffer.toString:()Ljava/lang/String;
  580. // 203: invokespecial com/amazon/kindle/settings/SettingsBooklet.Pqb:(Ljava/lang/String;)V
  581. // 206: return
  582. // LocalVariableTable:
  583. // Start Length Slot Name Signature
  584. // ----- ------ ---- ---- -----------------------------------------------------------
  585. // 0 207 0 f Lcom/amazon/kindle/settings/SettingsBooklet;
  586. // 0 207 1 e Lcom/amazon/kindle/restricted/webservices/social/B;
  587. // 35 172 2 d Lcom/amazon/kindle/restricted/webservices/grok/GrokService;
  588. // 83 124 3 c Ljavax/swing/Timer;
  589. // 85 122 4 b Lcom/amazon/kindle/restricted/webservices/social/L;
  590. // 156 28 5 a Ljava/util/Map;
  591. //
  592. // The error that occurred was:
  593. //
  594. // java.lang.NullPointerException
  595. //
  596. throw new IllegalStateException("An error occurred while decompiling this method.");
  597. }
  598.  
  599. private L xqb(final L.B d, final boolean c) {
  600. //
  601. // This method could not be decompiled.
  602. //
  603. // Original Bytecode:
  604. //
  605. // 0: iload_2 /* c */
  606. // 1: ifeq 12
  607. // 4: aload_0 /* e */
  608. // 5: invokestatic com/amazon/kindle/control/util/k.pQC:(Lcom/amazon/kindle/control/DCBooklet;)Ljava/util/Map;
  609. // 8: goto 16
  610. // 11: pop
  611. // 12: aload_0 /* e */
  612. // 13: invokestatic com/amazon/kindle/control/util/k.WQC:(Lcom/amazon/kindle/control/DCBooklet;)Ljava/util/Map;
  613. // 16: astore_3
  614. // 17: aload_3
  615. // 18: goto 31
  616. // 21: iconst_0
  617. // 22: astore 4
  618. // 24: aconst_null
  619. // 25: aload_0 /* e */
  620. // 26: invokestatic com/amazon/kindle/control/util/k.qpC:(Lcom/amazon/kindle/booklet/Booklet;)V
  621. // 29: areturn
  622. // 30: aload_3 /* b */
  623. // 31: ifnull 48
  624. // 34: aload_3 /* b */
  625. // 35: aload_1 /* d */
  626. // 36: invokevirtual com/amazon/kindle/restricted/webservices/social/B.name:()Ljava/lang/String;
  627. // 39: invokeinterface java/util/Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
  628. // 44: checkcast Lcom/amazon/kindle/restricted/webservices/social/L;
  629. // 47: areturn
  630. // 48: aconst_null
  631. // 49: areturn
  632. // LocalVariableTable:
  633. // Start Length Slot Name Signature
  634. // ----- ------ ---- ---- ---------------------------------------------------
  635. // 0 50 0 e Lcom/amazon/kindle/settings/SettingsBooklet;
  636. // 0 50 1 d Lcom/amazon/kindle/restricted/webservices/social/B;
  637. // 0 50 2 c I
  638. // 18 32 3 b Ljava/util/Map;
  639. // 25 11 4 a Lcom/amazon/kindle/net/g;
  640. // Exceptions:
  641. // Try Handler
  642. // Start End Start End Type
  643. // ----- ----- ----- ----- -------------------------
  644. // 0 17 22 30 Lcom/amazon/kindle/net/g;
  645. //
  646. // The error that occurred was:
  647. //
  648. // java.lang.NullPointerException
  649. //
  650. throw new IllegalStateException("An error occurred while decompiling this method.");
  651. }
  652.  
  653. private void hqb(final String b) {
  654. final DisplayController a;
  655. if (!((a = this.pRb()) instanceof com.amazon.kindle.settings.view.s.b) && b.equalsIgnoreCase(";311")) {
  656. this.Pqb(null);
  657. com.amazon.kindle.settings.view.s.b.ZBb(this).yCb(null, this.f);
  658. return;
  659. }
  660. if (!(a instanceof K) && b.equalsIgnoreCase(";411")) {
  661. com.amazon.kindle.settings.view.s.K.ZBb(this).Sdb();
  662. return;
  663. }
  664. if (!(a instanceof com.amazon.kindle.settings.view.s.A) && b.equalsIgnoreCase(";611")) {
  665. com.amazon.kindle.settings.view.s.A.ZBb(this).Sdb();
  666. return;
  667. }
  668. if (!(a instanceof com.amazon.kindle.settings.view.s.D) && b.equalsIgnoreCase(";711")) {
  669. com.amazon.kindle.settings.view.s.D.ZBb(this).Sdb();
  670. return;
  671. }
  672. this.Pqb(new StringBuffer().insert(0, "Failed to load diagnostic view: ").append(b).toString());
  673. }
  674.  
  675. public void Erb(final DisplayController f, final Object e, final boolean d, final int c, final boolean b) {
  676. final DisplayController a = this.D;
  677. super.Erb(f, e, d, c, b);
  678. if (a != null && f != null) {
  679. com.amazon.kindle.control.util.F.vqC(new StringBuffer().insert(0, "Settings:").append(a.Lc()).toString(), new StringBuffer().insert(0, "Settings:").append(f.Lc()).toString());
  680. }
  681. }
  682.  
  683. private void Pqb(final String a) {
  684. String s;
  685. if (!this.f) {
  686. s = a;
  687. this.YQb();
  688. }
  689. else {
  690. this.D.Zb().repaint();
  691. s = a;
  692. }
  693. if (s != null) {
  694. SettingsBooklet.K.J(a);
  695. }
  696. }
  697.  
  698. private void YQb() {
  699. this.PPb(this.RMb(), (Object)null, false);
  700. }
  701.  
  702. private void hpb(final PasswordProtectedController a) {
  703. if (a instanceof FreeTimePasswordProtectedController) {
  704. SwingUtilities.invokeLater(new com.amazon.kindle.settings.L(this, a));
  705. final String s = "KFT";
  706. final String s2 = "Settings";
  707. final String s3 = "PasswordInvalidated";
  708. final int n = 1;
  709. final Map map = null;
  710. final int n2 = 0;
  711. com.amazon.kindle.device.G.qmC(s, s2, s3, n, map, n2, n2);
  712. }
  713. }
  714.  
  715. private boolean eRb(final DisplayController a) {
  716. return a instanceof cA || a instanceof u || a instanceof lA || a instanceof H || a instanceof dA;
  717. }
  718.  
  719. private void HPb() {
  720. final DisplayController a;
  721. if ((a = this.pRb()) == null) {
  722. return;
  723. }
  724. if (a instanceof PasswordProtectedController) {
  725. this.hpb((PasswordProtectedController)a);
  726. }
  727. }
  728.  
  729. static /* synthetic */ Class UeA(final String b) {
  730. try {
  731. return Class.forName(b);
  732. }
  733. catch (ClassNotFoundException a) {
  734. throw new NoClassDefFoundError().initCause(a);
  735. }
  736. }
  737.  
  738. static {
  739. K = e.bvA("SettingsBooklet");
  740. }
  741. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement