| | | |
Offset 363, 147 lines modified | Offset 363, 138 lines modified |
363 | ················while·(true)·{ | 363 | ················while·(true)·{ |
364 | ················Label_0222_Outer: | 364 | ················Label_0222_Outer: |
365 | ····················while·(true)·{ | 365 | ····················while·(true)·{ |
366 | ····················Label_0246_Outer: | 366 | ····················Label_0246_Outer: |
367 | ························while·(true)·{ | 367 | ························while·(true)·{ |
368 | ························Label_0251_Outer: | 368 | ························Label_0251_Outer: |
369 | ····························while·(true)·{ | 369 | ····························while·(true)·{ |
370 | ····························Label_0273_Outer: | |
371 | ································while·(true)·{ | 370 | ································while·(true)·{ |
372 | ····································while·(true)·{ | 371 | ····································switch·(n)·{ |
373 | ········································switch·(n)·{ | 372 | ········································case·12: |
374 | ············································case·12: | 373 | ········································case·13:·{ |
375 | ············································case·13:·{ | 374 | ············································try·{ |
| 375 | ················································Object·english·=·new·LauncherDbUtils$SQLiteTransaction(sqLiteDatabase); |
| 376 | ················································final·String·s·=·"ALTER·TABLE·favorites·ADD·COLUMN·appWidgetProvider·TEXT;"; |
376 | ················································try·{ | 377 | ················································try·{ |
377 | ····················································Object·english·=·new·LauncherDbUtils$SQLiteTransaction(sqLiteDatabase); | 378 | ····················································sqLiteDatabase.execSQL(s); |
378 | ····················································final·String·s·=·"ALTER·TABLE·favorites·ADD·COLUMN·appWidgetProvider·TEXT;"; | 379 | ····················································((LauncherDbUtils$SQLiteTransaction)english).commit(); |
| 380 | ····················································((LauncherDbUtils$SQLiteTransaction)english).close(); |
| 381 | ····················································english·=·"modified"; |
| 382 | ····················································if·(!this.addIntegerColumn(sqLiteDatabase,·(String)english,·n3))·{ |
| 383 | ························································break; |
| 384 | ····················································} |
| 385 | ····················································english·=·"restored"; |
| 386 | ····················································if·(!this.addIntegerColumn(sqLiteDatabase,·(String)english,·n3))·{ |
| 387 | ························································break; |
| 388 | ····················································} |
| 389 | ····················································if·(!this.addIntegerColumn(sqLiteDatabase,·"profileId",·this.getDefaultUserSerial()))·{ |
| 390 | ························································break; |
| 391 | ····················································} |
| 392 | ····················································if·(!this.updateFolderItemsRank(sqLiteDatabase,·n4·!=·0))·{ |
| 393 | ························································break; |
| 394 | ····················································} |
| 395 | ····················································english·=·"options"; |
| 396 | ····················································if·(!this.addIntegerColumn(sqLiteDatabase,·(String)english,·n3))·{ |
| 397 | ························································break; |
| 398 | ····················································} |
| 399 | ····················································this.convertShortcutsToLauncherActivities(sqLiteDatabase); |
| 400 | ····················································final·String·s2·=·"workspaceScreens"; |
| 401 | ····················································final·String·s3·=·"_id"; |
| 402 | ····················································final·String·s4·=·"screenRank"; |
| 403 | ····················································english·=·sqLiteDatabase; |
| 404 | ····················································queryIntArray·=·LauncherDbUtils.queryIntArray(sqLiteDatabase,·s2,·s3,·(String)null,·(String)null,·s4); |
| 405 | ····················································final·int[]·array·=·((IntArray)queryIntArray).toArray(); |
| 406 | ····················································Arrays.sort(array); |
| 407 | ····················································String·string·=·""; |
| 408 | ····················································int·n5·=·0; |
| 409 | ····················································english·=·null; |
| 410 | ····················································int·n6; |
| 411 | ····················································int·n7; |
| 412 | ····················································String·s5; |
| 413 | ····················································while·(true)·{ |
| 414 | ························································final·int·length·=·array.length; |
| 415 | ························································n6·=·3; |
| 416 | ························································n7·=·2; |
| 417 | ························································s5·=·"screen"; |
| 418 | ························································if·(n5·>=·length)·{ |
| 419 | ····························································break; |
| 420 | ························································} |
| 421 | ························································if·(((IntArray)queryIntArray).get(n5)·!=·array[n5])·{ |
| 422 | ····························································final·StringBuilder·sb·=·new·StringBuilder(); |
| 423 | ····························································sb.append(string); |
| 424 | ····························································final·Locale·english2·=·Locale.ENGLISH; |
| 425 | ····························································final·Object[]·args·=·new·Object[n6]; |
| 426 | ····························································args[0]·=·s5; |
| 427 | ····························································args[n4]·=·((IntArray)queryIntArray).get(n5); |
| 428 | ····························································args[n7]·=·array[n5]; |
| 429 | ····························································sb.append(String.format(english2,·"·WHEN·%1$s=%2$d·THEN·%3$d",·args)); |
| 430 | ····························································string·=·sb.toString(); |
| 431 | ························································} |
| 432 | ························································++n5; |
| 433 | ····················································} |
| 434 | ····················································if·(!TextUtils.isEmpty((CharSequence)string))·{ |
| 435 | ························································english·=·Locale.ENGLISH; |
| 436 | ························································final·Object[]·args2·=·new·Object[5]; |
| 437 | ························································args2[0]·=·"favorites"; |
| 438 | ························································args2[n4]·=·s5; |
| 439 | ························································args2[n7]·=·string; |
| 440 | ························································args2[n6]·=·"container"; |
| 441 | ························································args2[4]·=·-100; |
| 442 | ························································sqLiteDatabase.execSQL(String.format((Locale)english,·"UPDATE·%1$s·SET·%2$s=CASE·%3$s·ELSE·%2$s·END·WHERE·%4$s·=·%5$d",·args2)); |
| 443 | ····················································} |
| 444 | ····················································LauncherDbUtils.dropTable(sqLiteDatabase,·"workspaceScreens"); |
| 445 | ····················································return; |
| 446 | ················································} |
| 447 | ················································finally·{ |
379 | ····················································try·{ | 448 | ····················································try·{ |
380 | ························································sqLiteDatabase.execSQL(s); | |
381 | ························································((LauncherDbUtils$SQLiteTransaction)english).commit(); | |
382 | ························································((LauncherDbUtils$SQLiteTransaction)english).close(); | 449 | ························································((LauncherDbUtils$SQLiteTransaction)english).close(); |
383 | ························································english·=·"modified"; | |
384 | ························································if·(!this.addIntegerColumn(sqLiteDatabase,·(String)english,·n3))·{ | |
385 | ····························································break; | |
386 | ························································} | |
387 | ························································english·=·"restored"; | |
388 | ························································if·(!this.addIntegerColumn(sqLiteDatabase,·(String)english,·n3))·{ | |
389 | ····························································break; | |
390 | ························································} | |
391 | ························································if·(!this.addIntegerColumn(sqLiteDatabase,·"profileId",·this.getDefaultUserSerial()))·{ | |
392 | ····························································break; | |
393 | ························································} | |
394 | ························································if·(!this.updateFolderItemsRank(sqLiteDatabase,·n4·!=·0))·{ | |
395 | ····························································break; | |
396 | ························································} | |
397 | ························································english·=·"options"; | |
398 | ························································if·(!this.addIntegerColumn(sqLiteDatabase,·(String)english,·n3))·{ | |
399 | ····························································break; | |
400 | ························································} | |
401 | ························································this.convertShortcutsToLauncherActivities(sqLiteDatabase); | |
402 | ························································if·(!LauncherDbUtils.prepareScreenZeroToHostQsb(this.mContext,·sqLiteDatabase))·{ | |
403 | ····························································break; | |
404 | ························································} | |
405 | ························································final·String·s2·=·"workspaceScreens"; | |
406 | ························································final·String·s3·=·"_id"; | |
407 | ························································final·String·s4·=·"screenRank"; | |
408 | ························································english·=·sqLiteDatabase; | |
409 | ························································queryIntArray·=·LauncherDbUtils.queryIntArray(sqLiteDatabase,·s2,·s3,·(String)null,·(String)null,·s4); | |
410 | ························································final·int[]·array·=·((IntArray)queryIntArray).toArray(); | |
411 | ························································Arrays.sort(array); | |
412 | ························································String·string·=·""; | |
413 | ························································int·n5·=·0; | |
414 | ························································english·=·null; | |
415 | ························································int·n6; | |
416 | ························································int·n7; | |
417 | ························································String·s5; | |
418 | ························································while·(true)·{ | |
419 | ····························································final·int·length·=·array.length; | |
420 | ····························································n6·=·3; | |
421 | ····························································n7·=·2; | |
422 | ····························································s5·=·"screen"; | |
423 | ····························································if·(n5·>=·length)·{ | |
424 | ································································break; | |
425 | ····························································} | |
426 | ····························································if·(((IntArray)queryIntArray).get(n5)·!=·array[n5])·{ | |
427 | ································································final·StringBuilder·sb·=·new·StringBuilder(); | |
428 | ································································sb.append(string); | |
429 | ································································final·Locale·english2·=·Locale.ENGLISH; | |
430 | ································································final·Object[]·args·=·new·Object[n6]; | |
431 | ································································args[0]·=·s5; | |
432 | ································································args[n4]·=·((IntArray)queryIntArray).get(n5); | |
433 | ································································args[n7]·=·array[n5]; | |
434 | ································································sb.append(String.format(english2,·"·WHEN·%1$s=%2$d·THEN·%3$d",·args)); | |
435 | ································································string·=·sb.toString(); | |
436 | ····························································} | |
437 | ····························································++n5; | |
438 | ························································} | |
439 | ························································if·(!TextUtils.isEmpty((CharSequence)string))·{ | |
440 | ····························································english·=·Locale.ENGLISH; | |
441 | ····························································final·Object[]·args2·=·new·Object[5]; | |
442 | ····························································args2[0]·=·"favorites"; | |
443 | ····························································args2[n4]·=·s5; | |
444 | ····························································args2[n7]·=·string; | |
445 | ····························································args2[n6]·=·"container"; | |
446 | ····························································args2[4]·=·-100; | |
447 | ····························································sqLiteDatabase.execSQL(String.format((Locale)english,·"UPDATE·%1$s·SET·%2$s=CASE·%3$s·ELSE·%2$s·END·WHERE·%4$s·=·%5$d",·args2)); | |
448 | ························································} | |
449 | ························································LauncherDbUtils.dropTable(sqLiteDatabase,·"workspaceScreens"); | |
450 | ························································return; | |
451 | ····················································} | 450 | ····················································} |
452 | ····················································finally·{ | 451 | ····················································finally·{ |
453 | ························································try·{ | 452 | ························································final·Throwable·t; |
454 | ····························································((LauncherDbUtils$SQLiteTransaction)english).close(); | 453 | ························································final·Throwable·exception; |
455 | ························································} | 454 | ························································t.addSuppressed(exception); |
456 | ························································finally·{ | |
457 | ····························································final·Throwable·t; | |
458 | ····························································final·Throwable·exception; | |
459 | ····························································t.addSuppressed(exception); | |
460 | ························································} | |
461 | ····················································} | 455 | ····················································} |
462 | ················································} | 456 | ················································} |
463 | ················································catch·(SQLException·ex)·{ | |
464 | ····················································Log.e((String)queryIntArray,·ex.getMessage(),·(Throwable)ex); | |
465 | ················································} | |
466 | ················································break; | |
467 | ············································} | |
468 | ············································case·14:·{ | |
469 | ················································continue·Label_0151_Outer; | |
470 | ············································} | |
471 | ············································case·15:·{ | |
472 | ················································continue·Label_0175_Outer; | |
473 | ············································} | |
474 | ············································case·16: | |
475 | ············································case·17: | |
476 | ············································case·18: | |
477 | ············································case·19:·{ | |
478 | ················································continue·Label_0205_Outer; | |
479 | ············································} | |
480 | ············································case·20:·{ | |
481 | ················································continue·Label_0222_Outer; | |
482 | ············································} | |
483 | ············································case·21: | |
484 | ············································case·22:·{ | |
485 | ················································continue·Label_0246_Outer; | |
486 | ············································} | |
487 | ············································case·23: | |
488 | ············································case·24: | |
489 | ············································case·25:·{ | |
490 | ················································continue·Label_0251_Outer; | |
491 | ············································} | 457 | ············································} |
492 | ············································case·26:·{ | 458 | ············································catch·(SQLException·ex)·{ |
493 | ················································continue·Label_0273_Outer; | 459 | ················································Log.e((String)queryIntArray,·ex.getMessage(),·(Throwable)ex); |
494 | ············································} | |
495 | ············································case·27:·{ | |
496 | ················································continue; | |
497 | ············································} | |
498 | ············································case·28:·{ | |
499 | ················································return; | |
500 | ············································} | 460 | ············································} |
| 461 | ············································break; |
| 462 | ········································} |
| 463 | ········································case·14:·{ |
| 464 | ············································continue·Label_0151_Outer; |
| 465 | ········································} |
| 466 | ········································case·15:·{ |
| 467 | ············································continue·Label_0175_Outer; |
| 468 | ········································} |
| 469 | ········································case·16: |
| 470 | ········································case·17: |
| 471 | ········································case·18: |
| 472 | ········································case·19:·{ |
| 473 | ············································continue·Label_0205_Outer; |
| 474 | ········································} |
| 475 | ········································case·20:·{ |
| 476 | ············································continue·Label_0222_Outer; |
| 477 | ········································} |
| 478 | ········································case·21: |
| 479 | ········································case·22:·{ |
| 480 | ············································continue·Label_0246_Outer; |
| 481 | ········································} |
| 482 | ········································case·23: |
| 483 | ········································case·24: |
| 484 | ········································case·25:·{ |
| 485 | ············································continue·Label_0251_Outer; |
| 486 | ········································} |
| 487 | ········································case·26: |
| 488 | ········································case·27:·{ |
| 489 | ············································continue; |
| 490 | ········································} |
| 491 | ········································case·28:·{ |
| 492 | ············································return; |
501 | ········································} | 493 | ········································} |
502 | ········································break; | |
503 | ····································} | 494 | ····································} |
504 | ····································break; | 495 | ····································break; |
505 | ································} | 496 | ································} |
506 | ································break; | 497 | ································break; |
507 | ····························} | 498 | ····························} |
508 | ····························break; | 499 | ····························break; |
509 | ························} | 500 | ························} |