.class public Lcom/scaleasw/powercalc/MainActivity;
.super Landroid/app/Activity;
.source "MainActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/view/View$OnLongClickListener;
.implements Landroid/view/View$OnTouchListener;


# static fields
.field public static final FREE_VERSION:Z = true


# instance fields
.field private angleModeView:Landroid/widget/TextView;

.field private appVersion:Ljava/lang/String;

.field private buttonsBottom:[[Landroid/widget/ImageButton;

.field private buttonsTop:[[Landroid/widget/ImageButton;

.field private complexModeView:Landroid/widget/TextView;

.field private display:Lcom/scaleasw/powercalc/CalcDisplay;

.field private displayLayout:Landroid/widget/LinearLayout;

.field private editor:Lcom/scaleasw/powercalc/Editor;

.field private fontScale:D

.field private hypView:Landroid/widget/TextView;

.field private imagesBottomShift:[[Landroid/widget/ImageView;

.field private imagesTopShift:[[Landroid/widget/ImageView;

.field private layoutBottom:[Landroid/widget/LinearLayout;

.field private layoutTop:[Landroid/widget/LinearLayout;

.field private prevCalcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

.field private resultView:Landroid/widget/EditText;

.field private shiftView:Landroid/widget/TextView;

.field private viewModeView:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 48
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method static synthetic access$000(Lcom/scaleasw/powercalc/MainActivity;)Lcom/scaleasw/powercalc/Editor;
    .locals 1
    .param p0, "x0"    # Lcom/scaleasw/powercalc/MainActivity;

    .prologue
    .line 48
    iget-object v0, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    return-object v0
.end method

.method static synthetic access$100(Lcom/scaleasw/powercalc/MainActivity;)V
    .locals 0
    .param p0, "x0"    # Lcom/scaleasw/powercalc/MainActivity;

    .prologue
    .line 48
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->updateModeState()V

    return-void
.end method

.method private createLayout()V
    .locals 34
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "ResourceAsColor"
        }
    .end annotation

    .prologue
    .line 387
    invoke-virtual/range {p0 .. p0}, Lcom/scaleasw/powercalc/MainActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v29

    invoke-interface/range {v29 .. v29}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v8

    .line 388
    .local v8, "display":Landroid/view/Display;
    const v29, 0x7f0b0001

    move-object/from16 v0, p0

    move/from16 v1, v29

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v18

    check-cast v18, Landroid/widget/LinearLayout;

    .line 390
    .local v18, "ll1":Landroid/widget/LinearLayout;
    new-instance v29, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v30, -0x1

    const/16 v31, -0x1

    invoke-direct/range {v29 .. v31}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    move-object/from16 v0, v18

    move-object/from16 v1, v29

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 391
    invoke-virtual/range {p0 .. p0}, Lcom/scaleasw/powercalc/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v29

    const/high16 v30, 0x7f060000

    invoke-virtual/range {v29 .. v30}, Landroid/content/res/Resources;->getColor(I)I

    move-result v29

    move-object/from16 v0, v18

    move/from16 v1, v29

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    .line 392
    const/16 v29, 0x1

    move-object/from16 v0, v18

    move/from16 v1, v29

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 394
    const v29, 0x7f0b0002

    move-object/from16 v0, p0

    move/from16 v1, v29

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v29

    check-cast v29, Landroid/widget/LinearLayout;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->displayLayout:Landroid/widget/LinearLayout;

    .line 395
    invoke-virtual {v8}, Landroid/view/Display;->getWidth()I

    move-result v29

    move/from16 v0, v29

    int-to-float v0, v0

    move/from16 v29, v0

    move/from16 v0, v29

    float-to-double v0, v0

    move-wide/from16 v30, v0

    const-wide v32, 0x3fa020c49ba5e354L    # 0.0315

    mul-double v30, v30, v32

    move-wide/from16 v0, v30

    double-to-int v0, v0

    move/from16 v19, v0

    .line 396
    .local v19, "margin":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->displayLayout:Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    const v30, 0x7f020048

    invoke-virtual/range {v29 .. v30}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 398
    const v29, 0x7f0b0008

    move-object/from16 v0, p0

    move/from16 v1, v29

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v29

    check-cast v29, Lcom/scaleasw/powercalc/CalcDisplay;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->display:Lcom/scaleasw/powercalc/CalcDisplay;

    .line 399
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->display:Lcom/scaleasw/powercalc/CalcDisplay;

    move-object/from16 v29, v0

    const-string v30, ""

    invoke-virtual/range {v29 .. v30}, Lcom/scaleasw/powercalc/CalcDisplay;->setText(Ljava/lang/CharSequence;)V

    .line 400
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->display:Lcom/scaleasw/powercalc/CalcDisplay;

    move-object/from16 v29, v0

    const/high16 v30, -0x1000000

    invoke-virtual/range {v29 .. v30}, Lcom/scaleasw/powercalc/CalcDisplay;->setTextColor(I)V

    .line 402
    const v29, 0x7f0b0003

    move-object/from16 v0, p0

    move/from16 v1, v29

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v29

    check-cast v29, Landroid/widget/TextView;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->shiftView:Landroid/widget/TextView;

    .line 403
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->shiftView:Landroid/widget/TextView;

    move-object/from16 v29, v0

    const-string v30, ""

    invoke-virtual/range {v29 .. v30}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 404
    const v29, 0x7f0b0004

    move-object/from16 v0, p0

    move/from16 v1, v29

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v29

    check-cast v29, Landroid/widget/TextView;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->hypView:Landroid/widget/TextView;

    .line 405
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->hypView:Landroid/widget/TextView;

    move-object/from16 v29, v0

    const-string v30, ""

    invoke-virtual/range {v29 .. v30}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 406
    const v29, 0x7f0b0005

    move-object/from16 v0, p0

    move/from16 v1, v29

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v29

    check-cast v29, Landroid/widget/TextView;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->angleModeView:Landroid/widget/TextView;

    .line 407
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->angleModeView:Landroid/widget/TextView;

    move-object/from16 v29, v0

    const-string v30, ""

    invoke-virtual/range {v29 .. v30}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 408
    const v29, 0x7f0b0006

    move-object/from16 v0, p0

    move/from16 v1, v29

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v29

    check-cast v29, Landroid/widget/TextView;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->viewModeView:Landroid/widget/TextView;

    .line 409
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->viewModeView:Landroid/widget/TextView;

    move-object/from16 v29, v0

    const-string v30, ""

    invoke-virtual/range {v29 .. v30}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 410
    const v29, 0x7f0b0007

    move-object/from16 v0, p0

    move/from16 v1, v29

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v29

    check-cast v29, Landroid/widget/TextView;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->complexModeView:Landroid/widget/TextView;

    .line 411
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->complexModeView:Landroid/widget/TextView;

    move-object/from16 v29, v0

    const-string v30, ""

    invoke-virtual/range {v29 .. v30}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 413
    const/16 v29, 0x8

    move/from16 v0, v29

    new-array v0, v0, [Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    .line 414
    const/16 v29, 0x6

    const/16 v30, 0x4

    filled-new-array/range {v29 .. v30}, [I

    move-result-object v29

    const-class v30, Landroid/widget/ImageView;

    move-object/from16 v0, v30

    move-object/from16 v1, v29

    invoke-static {v0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v29

    check-cast v29, [[Landroid/widget/ImageView;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    .line 415
    const/16 v29, 0x6

    const/16 v30, 0x4

    filled-new-array/range {v29 .. v30}, [I

    move-result-object v29

    const-class v30, Landroid/widget/ImageButton;

    move-object/from16 v0, v30

    move-object/from16 v1, v29

    invoke-static {v0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v29

    check-cast v29, [[Landroid/widget/ImageButton;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    .line 417
    invoke-virtual {v8}, Landroid/view/Display;->getWidth()I

    move-result v29

    div-int/lit8 v24, v29, 0x6

    .line 418
    .local v24, "topShiftWidth":I
    invoke-virtual {v8}, Landroid/view/Display;->getWidth()I

    move-result v29

    move/from16 v0, v29

    int-to-float v0, v0

    move/from16 v29, v0

    move/from16 v0, v29

    float-to-double v0, v0

    move-wide/from16 v30, v0

    const-wide v32, 0x3fc14dbdf8f47304L    # 0.135185

    mul-double v30, v30, v32

    const-wide v32, 0x3ff0cccccccccccdL    # 1.05

    mul-double v30, v30, v32

    move-wide/from16 v0, v30

    double-to-int v0, v0

    move/from16 v23, v0

    .line 419
    .local v23, "topButtonWidth":I
    const/16 v25, 0x0

    .line 421
    .local v25, "totalHeight":I
    const-wide v16, 0x3fa19a415f45e0b5L    # 0.03438

    .line 422
    .local v16, "heightTopShift":D
    const-wide v14, 0x3faaaa3ad18d25eeL    # 0.05208

    .line 423
    .local v14, "heightTop":D
    const-wide v12, 0x3f9aaaace7543790L    # 0.0260417

    .line 424
    .local v12, "heightBottomShift":D
    const-wide v10, 0x3fb11148fd9fd36fL    # 0.06667

    .line 426
    .local v10, "heightBottom":D
    const-wide/high16 v20, 0x3ff0000000000000L    # 1.0

    .line 428
    .local v20, "multiplier":D
    const-wide v20, 0x3ff1eb851eb851ecL    # 1.12

    .line 430
    mul-double v16, v16, v20

    .line 431
    mul-double v14, v14, v20

    .line 432
    mul-double v12, v12, v20

    .line 433
    mul-double v10, v10, v20

    .line 435
    const/16 v28, 0x0

    .local v28, "y":I
    :goto_0
    const/16 v29, 0x8

    move/from16 v0, v28

    move/from16 v1, v29

    if-ge v0, v1, :cond_4

    .line 437
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    new-instance v30, Landroid/widget/LinearLayout;

    move-object/from16 v0, v30

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    aput-object v30, v29, v28

    .line 438
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    const/16 v30, 0x11

    invoke-virtual/range {v29 .. v30}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 439
    rem-int/lit8 v29, v28, 0x2

    if-nez v29, :cond_0

    .line 441
    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v29

    move/from16 v0, v29

    int-to-float v0, v0

    move/from16 v29, v0

    move/from16 v0, v29

    float-to-double v0, v0

    move-wide/from16 v30, v0

    mul-double v30, v30, v16

    move-wide/from16 v0, v30

    double-to-int v9, v0

    .line 442
    .local v9, "height":I
    add-int v25, v25, v9

    .line 443
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    new-instance v30, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v31, -0x1

    move-object/from16 v0, v30

    move/from16 v1, v31

    invoke-direct {v0, v1, v9}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual/range {v29 .. v30}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 444
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    move-object/from16 v0, v18

    move-object/from16 v1, v29

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 445
    const/16 v27, 0x0

    .local v27, "x":I
    :goto_1
    const/16 v29, 0x6

    move/from16 v0, v27

    move/from16 v1, v29

    if-ge v0, v1, :cond_3

    .line 447
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    new-instance v31, Landroid/widget/ImageView;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    aput-object v31, v29, v30

    .line 448
    new-instance v22, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v29, -0x1

    move-object/from16 v0, v22

    move/from16 v1, v24

    move/from16 v2, v29

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 449
    .local v22, "params":Landroid/widget/LinearLayout$LayoutParams;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    move-object/from16 v0, v29

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 450
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    sget-object v30, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual/range {v29 .. v30}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 451
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    const/16 v30, 0x1

    invoke-virtual/range {v29 .. v30}, Landroid/widget/ImageView;->setAdjustViewBounds(Z)V

    .line 452
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    move-object/from16 v30, v0

    aget-object v30, v30, v27

    shr-int/lit8 v31, v28, 0x1

    aget-object v30, v30, v31

    invoke-virtual/range {v29 .. v30}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 445
    add-int/lit8 v27, v27, 0x1

    goto :goto_1

    .line 457
    .end local v9    # "height":I
    .end local v22    # "params":Landroid/widget/LinearLayout$LayoutParams;
    .end local v27    # "x":I
    :cond_0
    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v29

    move/from16 v0, v29

    int-to-float v0, v0

    move/from16 v29, v0

    move/from16 v0, v29

    float-to-double v0, v0

    move-wide/from16 v30, v0

    mul-double v30, v30, v14

    move-wide/from16 v0, v30

    double-to-int v9, v0

    .line 458
    .restart local v9    # "height":I
    add-int v25, v25, v9

    .line 459
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    new-instance v30, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v31, -0x1

    move-object/from16 v0, v30

    move/from16 v1, v31

    invoke-direct {v0, v1, v9}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual/range {v29 .. v30}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 460
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    move-object/from16 v0, v18

    move-object/from16 v1, v29

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 461
    const/16 v27, 0x0

    .restart local v27    # "x":I
    :goto_2
    const/16 v29, 0x6

    move/from16 v0, v27

    move/from16 v1, v29

    if-ge v0, v1, :cond_3

    .line 463
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    new-instance v31, Landroid/widget/ImageButton;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;)V

    aput-object v31, v29, v30

    .line 464
    new-instance v22, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v29, -0x1

    move-object/from16 v0, v22

    move/from16 v1, v23

    move/from16 v2, v29

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 465
    .restart local v22    # "params":Landroid/widget/LinearLayout$LayoutParams;
    sub-int v29, v24, v23

    shr-int/lit8 v29, v29, 0x1

    const/16 v30, 0x0

    sub-int v31, v24, v23

    shr-int/lit8 v31, v31, 0x1

    const/16 v32, 0x0

    move-object/from16 v0, v22

    move/from16 v1, v29

    move/from16 v2, v30

    move/from16 v3, v31

    move/from16 v4, v32

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 467
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    move-object/from16 v0, v29

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 468
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    sget-object v30, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual/range {v29 .. v30}, Landroid/widget/ImageButton;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 469
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    const/16 v30, 0x1

    invoke-virtual/range {v29 .. v30}, Landroid/widget/ImageButton;->setAdjustViewBounds(Z)V

    .line 470
    mul-int/lit8 v29, v28, 0x6

    add-int v29, v29, v27

    const/16 v30, 0x6

    move/from16 v0, v29

    move/from16 v1, v30

    if-ne v0, v1, :cond_1

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    const v30, 0x7f0200b7

    invoke-virtual/range {v29 .. v30}, Landroid/widget/ImageButton;->setBackgroundResource(I)V

    .line 474
    :goto_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 475
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 476
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    .line 477
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v30, v0

    aget-object v30, v30, v27

    shr-int/lit8 v31, v28, 0x1

    aget-object v30, v30, v31

    invoke-virtual/range {v29 .. v30}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 461
    add-int/lit8 v27, v27, 0x1

    goto/16 :goto_2

    .line 471
    :cond_1
    mul-int/lit8 v29, v28, 0x6

    add-int v29, v29, v27

    const/16 v30, 0xb

    move/from16 v0, v29

    move/from16 v1, v30

    if-ne v0, v1, :cond_2

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    const v30, 0x7f0200b4

    invoke-virtual/range {v29 .. v30}, Landroid/widget/ImageButton;->setBackgroundResource(I)V

    goto :goto_3

    .line 472
    :cond_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    const v30, 0x7f0200b1

    invoke-virtual/range {v29 .. v30}, Landroid/widget/ImageButton;->setBackgroundResource(I)V

    goto/16 :goto_3

    .line 435
    .end local v22    # "params":Landroid/widget/LinearLayout$LayoutParams;
    :cond_3
    add-int/lit8 v28, v28, 0x1

    goto/16 :goto_0

    .line 482
    .end local v9    # "height":I
    .end local v27    # "x":I
    :cond_4
    const/16 v29, 0x8

    move/from16 v0, v29

    new-array v0, v0, [Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    .line 483
    const/16 v29, 0x5

    const/16 v30, 0x4

    filled-new-array/range {v29 .. v30}, [I

    move-result-object v29

    const-class v30, Landroid/widget/ImageView;

    move-object/from16 v0, v30

    move-object/from16 v1, v29

    invoke-static {v0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v29

    check-cast v29, [[Landroid/widget/ImageView;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    .line 484
    const/16 v29, 0x5

    const/16 v30, 0x4

    filled-new-array/range {v29 .. v30}, [I

    move-result-object v29

    const-class v30, Landroid/widget/ImageButton;

    move-object/from16 v0, v30

    move-object/from16 v1, v29

    invoke-static {v0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v29

    check-cast v29, [[Landroid/widget/ImageButton;

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    .line 486
    invoke-virtual {v8}, Landroid/view/Display;->getWidth()I

    move-result v29

    div-int/lit8 v7, v29, 0x5

    .line 487
    .local v7, "btmShiftWidth":I
    invoke-virtual {v8}, Landroid/view/Display;->getWidth()I

    move-result v29

    move/from16 v0, v29

    int-to-float v0, v0

    move/from16 v29, v0

    move/from16 v0, v29

    float-to-double v0, v0

    move-wide/from16 v30, v0

    const-wide v32, 0x3fc60b5ed8d36b4cL    # 0.172222

    mul-double v30, v30, v32

    move-wide/from16 v0, v30

    double-to-int v6, v0

    .line 489
    .local v6, "btmButtonWidth":I
    const/16 v28, 0x0

    :goto_4
    const/16 v29, 0x8

    move/from16 v0, v28

    move/from16 v1, v29

    if-ge v0, v1, :cond_7

    .line 491
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    new-instance v30, Landroid/widget/LinearLayout;

    move-object/from16 v0, v30

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    aput-object v30, v29, v28

    .line 492
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    const/16 v30, 0x11

    invoke-virtual/range {v29 .. v30}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 493
    rem-int/lit8 v29, v28, 0x2

    if-nez v29, :cond_5

    .line 495
    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v29

    move/from16 v0, v29

    int-to-float v0, v0

    move/from16 v29, v0

    move/from16 v0, v29

    float-to-double v0, v0

    move-wide/from16 v30, v0

    mul-double v30, v30, v12

    move-wide/from16 v0, v30

    double-to-int v9, v0

    .line 496
    .restart local v9    # "height":I
    add-int v25, v25, v9

    .line 497
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    new-instance v30, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v31, -0x1

    move-object/from16 v0, v30

    move/from16 v1, v31

    invoke-direct {v0, v1, v9}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual/range {v29 .. v30}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 498
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    move-object/from16 v0, v18

    move-object/from16 v1, v29

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 499
    const/16 v27, 0x0

    .restart local v27    # "x":I
    :goto_5
    const/16 v29, 0x5

    move/from16 v0, v27

    move/from16 v1, v29

    if-ge v0, v1, :cond_6

    .line 501
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    new-instance v31, Landroid/widget/ImageView;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    aput-object v31, v29, v30

    .line 502
    new-instance v22, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v29, -0x1

    move-object/from16 v0, v22

    move/from16 v1, v29

    invoke-direct {v0, v7, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 503
    .restart local v22    # "params":Landroid/widget/LinearLayout$LayoutParams;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    move-object/from16 v0, v29

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 504
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    sget-object v30, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual/range {v29 .. v30}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 505
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    const/16 v30, 0x1

    invoke-virtual/range {v29 .. v30}, Landroid/widget/ImageView;->setAdjustViewBounds(Z)V

    .line 506
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    move-object/from16 v30, v0

    aget-object v30, v30, v27

    shr-int/lit8 v31, v28, 0x1

    aget-object v30, v30, v31

    invoke-virtual/range {v29 .. v30}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 499
    add-int/lit8 v27, v27, 0x1

    goto :goto_5

    .line 511
    .end local v9    # "height":I
    .end local v22    # "params":Landroid/widget/LinearLayout$LayoutParams;
    .end local v27    # "x":I
    :cond_5
    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v29

    move/from16 v0, v29

    int-to-float v0, v0

    move/from16 v29, v0

    move/from16 v0, v29

    float-to-double v0, v0

    move-wide/from16 v30, v0

    mul-double v30, v30, v10

    move-wide/from16 v0, v30

    double-to-int v9, v0

    .line 512
    .restart local v9    # "height":I
    add-int v25, v25, v9

    .line 513
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    new-instance v30, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v31, -0x1

    move-object/from16 v0, v30

    move/from16 v1, v31

    invoke-direct {v0, v1, v9}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual/range {v29 .. v30}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 514
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    move-object/from16 v0, v18

    move-object/from16 v1, v29

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 515
    const/16 v27, 0x0

    .restart local v27    # "x":I
    :goto_6
    const/16 v29, 0x5

    move/from16 v0, v27

    move/from16 v1, v29

    if-ge v0, v1, :cond_6

    .line 517
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    new-instance v31, Landroid/widget/ImageButton;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;)V

    aput-object v31, v29, v30

    .line 518
    new-instance v22, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v29, -0x1

    move-object/from16 v0, v22

    move/from16 v1, v29

    invoke-direct {v0, v6, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 519
    .restart local v22    # "params":Landroid/widget/LinearLayout$LayoutParams;
    sub-int v29, v7, v6

    shr-int/lit8 v29, v29, 0x1

    const/16 v30, 0x0

    sub-int v31, v7, v6

    shr-int/lit8 v31, v31, 0x1

    const/16 v32, 0x0

    move-object/from16 v0, v22

    move/from16 v1, v29

    move/from16 v2, v30

    move/from16 v3, v31

    move/from16 v4, v32

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 521
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    move-object/from16 v0, v29

    move-object/from16 v1, v22

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 522
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    sget-object v30, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual/range {v29 .. v30}, Landroid/widget/ImageButton;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 523
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    const/16 v30, 0x1

    invoke-virtual/range {v29 .. v30}, Landroid/widget/ImageButton;->setAdjustViewBounds(Z)V

    .line 524
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    const v30, 0x7f020001

    invoke-virtual/range {v29 .. v30}, Landroid/widget/ImageButton;->setBackgroundResource(I)V

    .line 525
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 526
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 527
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v29, v0

    aget-object v29, v29, v27

    shr-int/lit8 v30, v28, 0x1

    aget-object v29, v29, v30

    move-object/from16 v0, v29

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    .line 528
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    aget-object v29, v29, v28

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v30, v0

    aget-object v30, v30, v27

    shr-int/lit8 v31, v28, 0x1

    aget-object v30, v30, v31

    invoke-virtual/range {v29 .. v30}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 515
    add-int/lit8 v27, v27, 0x1

    goto/16 :goto_6

    .line 489
    .end local v22    # "params":Landroid/widget/LinearLayout$LayoutParams;
    :cond_6
    add-int/lit8 v28, v28, 0x1

    goto/16 :goto_4

    .line 532
    .end local v9    # "height":I
    .end local v27    # "x":I
    :cond_7
    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v29

    move/from16 v0, v29

    int-to-float v0, v0

    move/from16 v29, v0

    move/from16 v0, v29

    float-to-double v0, v0

    move-wide/from16 v30, v0

    const-wide v32, 0x3f9aaaace7543790L    # 0.0260417

    mul-double v30, v30, v32

    const-wide/high16 v32, 0x3fe0000000000000L    # 0.5

    mul-double v30, v30, v32

    move-wide/from16 v0, v30

    double-to-int v0, v0

    move/from16 v29, v0

    add-int v25, v25, v29

    .line 533
    new-instance v26, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v29, -0x1

    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v30

    sub-int v30, v30, v25

    mul-int/lit8 v31, v19, 0x2

    sub-int v30, v30, v31

    move-object/from16 v0, v26

    move/from16 v1, v29

    move/from16 v2, v30

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 534
    .local v26, "tvParams":Landroid/widget/LinearLayout$LayoutParams;
    move-object/from16 v0, v26

    move/from16 v1, v19

    move/from16 v2, v19

    move/from16 v3, v19

    move/from16 v4, v19

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 535
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->displayLayout:Landroid/widget/LinearLayout;

    move-object/from16 v29, v0

    move-object/from16 v0, v29

    move-object/from16 v1, v26

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 537
    move-object/from16 v0, p0

    move-object/from16 v1, v18

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->setContentView(Landroid/view/View;)V

    .line 538
    return-void
.end method

.method private createLayoutLandscape()V
    .locals 36
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "ResourceAsColor"
        }
    .end annotation

    .prologue
    .line 544
    invoke-virtual/range {p0 .. p0}, Lcom/scaleasw/powercalc/MainActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v31

    invoke-interface/range {v31 .. v31}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v8

    .line 545
    .local v8, "display":Landroid/view/Display;
    const v31, 0x7f0b0001

    move-object/from16 v0, p0

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v19

    check-cast v19, Landroid/widget/LinearLayout;

    .line 546
    .local v19, "ll1":Landroid/widget/LinearLayout;
    const v31, 0x7f0b000a

    move-object/from16 v0, p0

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v18

    check-cast v18, Landroid/widget/LinearLayout;

    .line 547
    .local v18, "leftLayout":Landroid/widget/LinearLayout;
    const v31, 0x7f0b000b

    move-object/from16 v0, p0

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v24

    check-cast v24, Landroid/widget/LinearLayout;

    .line 549
    .local v24, "rightLayout":Landroid/widget/LinearLayout;
    new-instance v31, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v32, -0x1

    const/16 v33, -0x1

    invoke-direct/range {v31 .. v33}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    move-object/from16 v0, v19

    move-object/from16 v1, v31

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 550
    invoke-virtual/range {p0 .. p0}, Lcom/scaleasw/powercalc/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v31

    const/high16 v32, 0x7f060000

    invoke-virtual/range {v31 .. v32}, Landroid/content/res/Resources;->getColor(I)I

    move-result v31

    move-object/from16 v0, v19

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    .line 551
    const/16 v31, 0x0

    move-object/from16 v0, v19

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 553
    const v31, 0x7f0b0002

    move-object/from16 v0, p0

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v31

    check-cast v31, Landroid/widget/LinearLayout;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->displayLayout:Landroid/widget/LinearLayout;

    .line 554
    invoke-virtual {v8}, Landroid/view/Display;->getWidth()I

    move-result v31

    move/from16 v0, v31

    int-to-float v0, v0

    move/from16 v31, v0

    move/from16 v0, v31

    float-to-double v0, v0

    move-wide/from16 v32, v0

    const-wide v34, 0x3fa020c49ba5e354L    # 0.0315

    mul-double v32, v32, v34

    const-wide/high16 v34, 0x3fe0000000000000L    # 0.5

    mul-double v32, v32, v34

    move-wide/from16 v0, v32

    double-to-int v0, v0

    move/from16 v20, v0

    .line 555
    .local v20, "margin":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->displayLayout:Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    const v32, 0x7f020048

    invoke-virtual/range {v31 .. v32}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 557
    const v31, 0x7f0b0008

    move-object/from16 v0, p0

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v31

    check-cast v31, Lcom/scaleasw/powercalc/CalcDisplay;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->display:Lcom/scaleasw/powercalc/CalcDisplay;

    .line 558
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->display:Lcom/scaleasw/powercalc/CalcDisplay;

    move-object/from16 v31, v0

    const-string v32, ""

    invoke-virtual/range {v31 .. v32}, Lcom/scaleasw/powercalc/CalcDisplay;->setText(Ljava/lang/CharSequence;)V

    .line 559
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->display:Lcom/scaleasw/powercalc/CalcDisplay;

    move-object/from16 v31, v0

    const/high16 v32, -0x1000000

    invoke-virtual/range {v31 .. v32}, Lcom/scaleasw/powercalc/CalcDisplay;->setTextColor(I)V

    .line 561
    const v31, 0x7f0b0003

    move-object/from16 v0, p0

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v31

    check-cast v31, Landroid/widget/TextView;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->shiftView:Landroid/widget/TextView;

    .line 562
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->shiftView:Landroid/widget/TextView;

    move-object/from16 v31, v0

    const-string v32, ""

    invoke-virtual/range {v31 .. v32}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 563
    const v31, 0x7f0b0004

    move-object/from16 v0, p0

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v31

    check-cast v31, Landroid/widget/TextView;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->hypView:Landroid/widget/TextView;

    .line 564
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->hypView:Landroid/widget/TextView;

    move-object/from16 v31, v0

    const-string v32, ""

    invoke-virtual/range {v31 .. v32}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 565
    const v31, 0x7f0b0005

    move-object/from16 v0, p0

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v31

    check-cast v31, Landroid/widget/TextView;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->angleModeView:Landroid/widget/TextView;

    .line 566
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->angleModeView:Landroid/widget/TextView;

    move-object/from16 v31, v0

    const-string v32, ""

    invoke-virtual/range {v31 .. v32}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 567
    const v31, 0x7f0b0006

    move-object/from16 v0, p0

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v31

    check-cast v31, Landroid/widget/TextView;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->viewModeView:Landroid/widget/TextView;

    .line 568
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->viewModeView:Landroid/widget/TextView;

    move-object/from16 v31, v0

    const-string v32, ""

    invoke-virtual/range {v31 .. v32}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 569
    const v31, 0x7f0b0007

    move-object/from16 v0, p0

    move/from16 v1, v31

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v31

    check-cast v31, Landroid/widget/TextView;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->complexModeView:Landroid/widget/TextView;

    .line 570
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->complexModeView:Landroid/widget/TextView;

    move-object/from16 v31, v0

    const-string v32, ""

    invoke-virtual/range {v31 .. v32}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 572
    const/16 v31, 0x8

    move/from16 v0, v31

    new-array v0, v0, [Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    .line 573
    const/16 v31, 0x6

    const/16 v32, 0x4

    filled-new-array/range {v31 .. v32}, [I

    move-result-object v31

    const-class v32, Landroid/widget/ImageView;

    move-object/from16 v0, v32

    move-object/from16 v1, v31

    invoke-static {v0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v31

    check-cast v31, [[Landroid/widget/ImageView;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    .line 574
    const/16 v31, 0x6

    const/16 v32, 0x4

    filled-new-array/range {v31 .. v32}, [I

    move-result-object v31

    const-class v32, Landroid/widget/ImageButton;

    move-object/from16 v0, v32

    move-object/from16 v1, v31

    invoke-static {v0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v31

    check-cast v31, [[Landroid/widget/ImageButton;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    .line 576
    invoke-virtual {v8}, Landroid/view/Display;->getWidth()I

    move-result v31

    div-int/lit8 v26, v31, 0xc

    .line 577
    .local v26, "topShiftWidth":I
    invoke-virtual {v8}, Landroid/view/Display;->getWidth()I

    move-result v31

    move/from16 v0, v31

    int-to-float v0, v0

    move/from16 v31, v0

    move/from16 v0, v31

    float-to-double v0, v0

    move-wide/from16 v32, v0

    const-wide v34, 0x3fc14dbdf8f47304L    # 0.135185

    mul-double v32, v32, v34

    const-wide v34, 0x3ff0cccccccccccdL    # 1.05

    mul-double v32, v32, v34

    const-wide/high16 v34, 0x3fe0000000000000L    # 0.5

    mul-double v32, v32, v34

    move-wide/from16 v0, v32

    double-to-int v0, v0

    move/from16 v25, v0

    .line 578
    .local v25, "topButtonWidth":I
    const/16 v27, 0x0

    .line 580
    .local v27, "totalHeight":I
    const-wide v16, 0x3fb19a415f45e0b5L    # 0.06876

    .line 581
    .local v16, "heightTopShift":D
    const-wide v14, 0x3fbaaa3ad18d25eeL    # 0.10416

    .line 582
    .local v14, "heightTop":D
    const-wide v12, 0x3faaaaace7543790L    # 0.0520834

    .line 583
    .local v12, "heightBottomShift":D
    const-wide v10, 0x3fc02be8bc169c24L    # 0.12634

    .line 585
    .local v10, "heightBottom":D
    const-wide v22, 0x3ff1eb851eb851ecL    # 1.12

    .line 587
    .local v22, "multiplier":D
    const-wide v22, 0x3ff1eb851eb851ecL    # 1.12

    .line 589
    mul-double v16, v16, v22

    .line 590
    mul-double v14, v14, v22

    .line 591
    mul-double v12, v12, v22

    .line 592
    mul-double v10, v10, v22

    .line 594
    const/16 v30, 0x0

    .local v30, "y":I
    :goto_0
    const/16 v31, 0x8

    move/from16 v0, v30

    move/from16 v1, v31

    if-ge v0, v1, :cond_8

    .line 596
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    new-instance v32, Landroid/widget/LinearLayout;

    move-object/from16 v0, v32

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    aput-object v32, v31, v30

    .line 597
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    const/16 v32, 0x11

    invoke-virtual/range {v31 .. v32}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 598
    rem-int/lit8 v31, v30, 0x2

    if-nez v31, :cond_2

    .line 601
    if-nez v30, :cond_0

    .line 602
    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v31

    move/from16 v0, v31

    int-to-float v0, v0

    move/from16 v31, v0

    move/from16 v0, v31

    float-to-double v0, v0

    move-wide/from16 v32, v0

    mul-double v32, v32, v16

    const-wide v34, 0x3ff1eb851eb851ecL    # 1.12

    mul-double v32, v32, v34

    div-double v32, v32, v22

    move-wide/from16 v0, v32

    double-to-int v9, v0

    .line 605
    .local v9, "height":I
    :goto_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    new-instance v32, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v33, -0x1

    move-object/from16 v0, v32

    move/from16 v1, v33

    invoke-direct {v0, v1, v9}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual/range {v31 .. v32}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 606
    if-nez v30, :cond_1

    .line 607
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    move-object/from16 v0, v24

    move-object/from16 v1, v31

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 613
    :goto_2
    const/16 v29, 0x0

    .local v29, "x":I
    :goto_3
    const/16 v31, 0x6

    move/from16 v0, v29

    move/from16 v1, v31

    if-ge v0, v1, :cond_7

    .line 615
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    new-instance v33, Landroid/widget/ImageView;

    move-object/from16 v0, v33

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    aput-object v33, v31, v32

    .line 616
    new-instance v21, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v31, -0x1

    move-object/from16 v0, v21

    move/from16 v1, v26

    move/from16 v2, v31

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 617
    .local v21, "params":Landroid/widget/LinearLayout$LayoutParams;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    move-object/from16 v0, v31

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 618
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    sget-object v32, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual/range {v31 .. v32}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 619
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    const/16 v32, 0x1

    invoke-virtual/range {v31 .. v32}, Landroid/widget/ImageView;->setAdjustViewBounds(Z)V

    .line 620
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    move-object/from16 v32, v0

    aget-object v32, v32, v29

    shr-int/lit8 v33, v30, 0x1

    aget-object v32, v32, v33

    invoke-virtual/range {v31 .. v32}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 613
    add-int/lit8 v29, v29, 0x1

    goto :goto_3

    .line 604
    .end local v9    # "height":I
    .end local v21    # "params":Landroid/widget/LinearLayout$LayoutParams;
    .end local v29    # "x":I
    :cond_0
    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v31

    move/from16 v0, v31

    int-to-float v0, v0

    move/from16 v31, v0

    move/from16 v0, v31

    float-to-double v0, v0

    move-wide/from16 v32, v0

    mul-double v32, v32, v16

    move-wide/from16 v0, v32

    double-to-int v9, v0

    .restart local v9    # "height":I
    goto/16 :goto_1

    .line 610
    :cond_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    move-object/from16 v0, v18

    move-object/from16 v1, v31

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 611
    add-int v27, v27, v9

    goto/16 :goto_2

    .line 626
    .end local v9    # "height":I
    :cond_2
    const/16 v31, 0x1

    move/from16 v0, v30

    move/from16 v1, v31

    if-ne v0, v1, :cond_3

    .line 627
    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v31

    move/from16 v0, v31

    int-to-float v0, v0

    move/from16 v31, v0

    move/from16 v0, v31

    float-to-double v0, v0

    move-wide/from16 v32, v0

    mul-double v32, v32, v14

    const-wide v34, 0x3ff1eb851eb851ecL    # 1.12

    mul-double v32, v32, v34

    div-double v32, v32, v22

    move-wide/from16 v0, v32

    double-to-int v9, v0

    .line 630
    .restart local v9    # "height":I
    :goto_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    new-instance v32, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v33, -0x1

    move-object/from16 v0, v32

    move/from16 v1, v33

    invoke-direct {v0, v1, v9}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual/range {v31 .. v32}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 631
    const/16 v31, 0x1

    move/from16 v0, v30

    move/from16 v1, v31

    if-ne v0, v1, :cond_4

    .line 632
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    move-object/from16 v0, v24

    move-object/from16 v1, v31

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 638
    :goto_5
    const/16 v29, 0x0

    .restart local v29    # "x":I
    :goto_6
    const/16 v31, 0x6

    move/from16 v0, v29

    move/from16 v1, v31

    if-ge v0, v1, :cond_7

    .line 640
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    new-instance v33, Landroid/widget/ImageButton;

    move-object/from16 v0, v33

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;)V

    aput-object v33, v31, v32

    .line 641
    new-instance v21, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v31, -0x1

    move-object/from16 v0, v21

    move/from16 v1, v25

    move/from16 v2, v31

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 642
    .restart local v21    # "params":Landroid/widget/LinearLayout$LayoutParams;
    sub-int v31, v26, v25

    shr-int/lit8 v31, v31, 0x1

    const/16 v32, 0x0

    sub-int v33, v26, v25

    shr-int/lit8 v33, v33, 0x1

    const/16 v34, 0x0

    move-object/from16 v0, v21

    move/from16 v1, v31

    move/from16 v2, v32

    move/from16 v3, v33

    move/from16 v4, v34

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 644
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    move-object/from16 v0, v31

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 645
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    sget-object v32, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual/range {v31 .. v32}, Landroid/widget/ImageButton;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 646
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    const/16 v32, 0x1

    invoke-virtual/range {v31 .. v32}, Landroid/widget/ImageButton;->setAdjustViewBounds(Z)V

    .line 647
    mul-int/lit8 v31, v30, 0x6

    add-int v31, v31, v29

    const/16 v32, 0x6

    move/from16 v0, v31

    move/from16 v1, v32

    if-ne v0, v1, :cond_5

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    const v32, 0x7f0200b7

    invoke-virtual/range {v31 .. v32}, Landroid/widget/ImageButton;->setBackgroundResource(I)V

    .line 651
    :goto_7
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 652
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 653
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    .line 654
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v32, v0

    aget-object v32, v32, v29

    shr-int/lit8 v33, v30, 0x1

    aget-object v32, v32, v33

    invoke-virtual/range {v31 .. v32}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 638
    add-int/lit8 v29, v29, 0x1

    goto/16 :goto_6

    .line 629
    .end local v9    # "height":I
    .end local v21    # "params":Landroid/widget/LinearLayout$LayoutParams;
    .end local v29    # "x":I
    :cond_3
    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v31

    move/from16 v0, v31

    int-to-float v0, v0

    move/from16 v31, v0

    move/from16 v0, v31

    float-to-double v0, v0

    move-wide/from16 v32, v0

    mul-double v32, v32, v14

    move-wide/from16 v0, v32

    double-to-int v9, v0

    .restart local v9    # "height":I
    goto/16 :goto_4

    .line 635
    :cond_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutTop:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    move-object/from16 v0, v18

    move-object/from16 v1, v31

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 636
    add-int v27, v27, v9

    goto/16 :goto_5

    .line 648
    .restart local v21    # "params":Landroid/widget/LinearLayout$LayoutParams;
    .restart local v29    # "x":I
    :cond_5
    mul-int/lit8 v31, v30, 0x6

    add-int v31, v31, v29

    const/16 v32, 0xb

    move/from16 v0, v31

    move/from16 v1, v32

    if-ne v0, v1, :cond_6

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    const v32, 0x7f0200b4

    invoke-virtual/range {v31 .. v32}, Landroid/widget/ImageButton;->setBackgroundResource(I)V

    goto/16 :goto_7

    .line 649
    :cond_6
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    const v32, 0x7f0200b1

    invoke-virtual/range {v31 .. v32}, Landroid/widget/ImageButton;->setBackgroundResource(I)V

    goto/16 :goto_7

    .line 594
    .end local v21    # "params":Landroid/widget/LinearLayout$LayoutParams;
    :cond_7
    add-int/lit8 v30, v30, 0x1

    goto/16 :goto_0

    .line 659
    .end local v9    # "height":I
    .end local v29    # "x":I
    :cond_8
    const/16 v31, 0x8

    move/from16 v0, v31

    new-array v0, v0, [Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    .line 660
    const/16 v31, 0x5

    const/16 v32, 0x4

    filled-new-array/range {v31 .. v32}, [I

    move-result-object v31

    const-class v32, Landroid/widget/ImageView;

    move-object/from16 v0, v32

    move-object/from16 v1, v31

    invoke-static {v0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v31

    check-cast v31, [[Landroid/widget/ImageView;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    .line 661
    const/16 v31, 0x5

    const/16 v32, 0x4

    filled-new-array/range {v31 .. v32}, [I

    move-result-object v31

    const-class v32, Landroid/widget/ImageButton;

    move-object/from16 v0, v32

    move-object/from16 v1, v31

    invoke-static {v0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;

    move-result-object v31

    check-cast v31, [[Landroid/widget/ImageButton;

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    .line 663
    invoke-virtual {v8}, Landroid/view/Display;->getWidth()I

    move-result v31

    div-int/lit8 v7, v31, 0xa

    .line 664
    .local v7, "btmShiftWidth":I
    invoke-virtual {v8}, Landroid/view/Display;->getWidth()I

    move-result v31

    move/from16 v0, v31

    int-to-float v0, v0

    move/from16 v31, v0

    move/from16 v0, v31

    float-to-double v0, v0

    move-wide/from16 v32, v0

    const-wide v34, 0x3fc60b5ed8d36b4cL    # 0.172222

    mul-double v32, v32, v34

    const-wide/high16 v34, 0x3fe0000000000000L    # 0.5

    mul-double v32, v32, v34

    move-wide/from16 v0, v32

    double-to-int v6, v0

    .line 666
    .local v6, "btmButtonWidth":I
    const/16 v30, 0x0

    :goto_8
    const/16 v31, 0x8

    move/from16 v0, v30

    move/from16 v1, v31

    if-ge v0, v1, :cond_b

    .line 668
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    new-instance v32, Landroid/widget/LinearLayout;

    move-object/from16 v0, v32

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    aput-object v32, v31, v30

    .line 669
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    const/16 v32, 0x11

    invoke-virtual/range {v31 .. v32}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 670
    rem-int/lit8 v31, v30, 0x2

    if-nez v31, :cond_9

    .line 672
    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v31

    move/from16 v0, v31

    int-to-float v0, v0

    move/from16 v31, v0

    move/from16 v0, v31

    float-to-double v0, v0

    move-wide/from16 v32, v0

    mul-double v32, v32, v12

    move-wide/from16 v0, v32

    double-to-int v9, v0

    .line 673
    .restart local v9    # "height":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    new-instance v32, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v33, -0x1

    move-object/from16 v0, v32

    move/from16 v1, v33

    invoke-direct {v0, v1, v9}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual/range {v31 .. v32}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 674
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    move-object/from16 v0, v24

    move-object/from16 v1, v31

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 675
    const/16 v29, 0x0

    .restart local v29    # "x":I
    :goto_9
    const/16 v31, 0x5

    move/from16 v0, v29

    move/from16 v1, v31

    if-ge v0, v1, :cond_a

    .line 677
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    new-instance v33, Landroid/widget/ImageView;

    move-object/from16 v0, v33

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    aput-object v33, v31, v32

    .line 678
    new-instance v21, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v31, -0x1

    move-object/from16 v0, v21

    move/from16 v1, v31

    invoke-direct {v0, v7, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 679
    .restart local v21    # "params":Landroid/widget/LinearLayout$LayoutParams;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    move-object/from16 v0, v31

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 680
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    sget-object v32, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual/range {v31 .. v32}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 681
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    const/16 v32, 0x1

    invoke-virtual/range {v31 .. v32}, Landroid/widget/ImageView;->setAdjustViewBounds(Z)V

    .line 682
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    move-object/from16 v32, v0

    aget-object v32, v32, v29

    shr-int/lit8 v33, v30, 0x1

    aget-object v32, v32, v33

    invoke-virtual/range {v31 .. v32}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 675
    add-int/lit8 v29, v29, 0x1

    goto :goto_9

    .line 687
    .end local v9    # "height":I
    .end local v21    # "params":Landroid/widget/LinearLayout$LayoutParams;
    .end local v29    # "x":I
    :cond_9
    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v31

    move/from16 v0, v31

    int-to-float v0, v0

    move/from16 v31, v0

    move/from16 v0, v31

    float-to-double v0, v0

    move-wide/from16 v32, v0

    mul-double v32, v32, v10

    move-wide/from16 v0, v32

    double-to-int v9, v0

    .line 688
    .restart local v9    # "height":I
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    new-instance v32, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v33, -0x1

    move-object/from16 v0, v32

    move/from16 v1, v33

    invoke-direct {v0, v1, v9}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual/range {v31 .. v32}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 689
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    move-object/from16 v0, v24

    move-object/from16 v1, v31

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 690
    const/16 v29, 0x0

    .restart local v29    # "x":I
    :goto_a
    const/16 v31, 0x5

    move/from16 v0, v29

    move/from16 v1, v31

    if-ge v0, v1, :cond_a

    .line 692
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    new-instance v33, Landroid/widget/ImageButton;

    move-object/from16 v0, v33

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;)V

    aput-object v33, v31, v32

    .line 693
    new-instance v21, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v31, -0x1

    move-object/from16 v0, v21

    move/from16 v1, v31

    invoke-direct {v0, v6, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 694
    .restart local v21    # "params":Landroid/widget/LinearLayout$LayoutParams;
    sub-int v31, v7, v6

    shr-int/lit8 v31, v31, 0x1

    const/16 v32, 0x0

    sub-int v33, v7, v6

    shr-int/lit8 v33, v33, 0x1

    const/16 v34, 0x0

    move-object/from16 v0, v21

    move/from16 v1, v31

    move/from16 v2, v32

    move/from16 v3, v33

    move/from16 v4, v34

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 696
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    move-object/from16 v0, v31

    move-object/from16 v1, v21

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 697
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    sget-object v32, Landroid/widget/ImageView$ScaleType;->FIT_CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual/range {v31 .. v32}, Landroid/widget/ImageButton;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 698
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    const/16 v32, 0x1

    invoke-virtual/range {v31 .. v32}, Landroid/widget/ImageButton;->setAdjustViewBounds(Z)V

    .line 699
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    const v32, 0x7f020001

    invoke-virtual/range {v31 .. v32}, Landroid/widget/ImageButton;->setBackgroundResource(I)V

    .line 700
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 701
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 702
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v31, v0

    aget-object v31, v31, v29

    shr-int/lit8 v32, v30, 0x1

    aget-object v31, v31, v32

    move-object/from16 v0, v31

    move-object/from16 v1, p0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    .line 703
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->layoutBottom:[Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    aget-object v31, v31, v30

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    move-object/from16 v32, v0

    aget-object v32, v32, v29

    shr-int/lit8 v33, v30, 0x1

    aget-object v32, v32, v33

    invoke-virtual/range {v31 .. v32}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 690
    add-int/lit8 v29, v29, 0x1

    goto/16 :goto_a

    .line 666
    .end local v21    # "params":Landroid/widget/LinearLayout$LayoutParams;
    :cond_a
    add-int/lit8 v30, v30, 0x1

    goto/16 :goto_8

    .line 707
    .end local v9    # "height":I
    .end local v29    # "x":I
    :cond_b
    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v31

    move/from16 v0, v31

    int-to-float v0, v0

    move/from16 v31, v0

    move/from16 v0, v31

    float-to-double v0, v0

    move-wide/from16 v32, v0

    const-wide v34, 0x3f9aaaace7543790L    # 0.0260417

    mul-double v32, v32, v34

    const-wide/high16 v34, 0x3fe0000000000000L    # 0.5

    mul-double v32, v32, v34

    move-wide/from16 v0, v32

    double-to-int v0, v0

    move/from16 v31, v0

    add-int v27, v27, v31

    .line 708
    new-instance v28, Landroid/widget/LinearLayout$LayoutParams;

    const/16 v31, -0x1

    invoke-virtual {v8}, Landroid/view/Display;->getHeight()I

    move-result v32

    sub-int v32, v32, v27

    mul-int/lit8 v33, v20, 0x2

    sub-int v32, v32, v33

    move-object/from16 v0, v28

    move/from16 v1, v31

    move/from16 v2, v32

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 709
    .local v28, "tvParams":Landroid/widget/LinearLayout$LayoutParams;
    move-object/from16 v0, v28

    move/from16 v1, v20

    move/from16 v2, v20

    move/from16 v3, v20

    move/from16 v4, v20

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 710
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/scaleasw/powercalc/MainActivity;->displayLayout:Landroid/widget/LinearLayout;

    move-object/from16 v31, v0

    move-object/from16 v0, v31

    move-object/from16 v1, v28

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 712
    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Lcom/scaleasw/powercalc/MainActivity;->setContentView(Landroid/view/View;)V

    .line 713
    return-void
.end method

.method private openAngleModeDialog()V
    .locals 4

    .prologue
    .line 1438
    const/4 v2, 0x3

    new-array v0, v2, [Ljava/lang/CharSequence;

    .line 1440
    .local v0, "items":[Ljava/lang/CharSequence;
    const/4 v2, 0x0

    const v3, 0x7f080001

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v2

    .line 1441
    const/4 v2, 0x1

    const v3, 0x7f080003

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v2

    .line 1442
    const/4 v2, 0x2

    const v3, 0x7f080002

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v2

    .line 1444
    new-instance v1, Landroid/app/AlertDialog$Builder;

    invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 1445
    .local v1, "modeDialog":Landroid/app/AlertDialog$Builder;
    const v2, 0x7f080004

    invoke-virtual {p0, v2}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 1446
    new-instance v2, Lcom/scaleasw/powercalc/MainActivity$2;

    invoke-direct {v2, p0}, Lcom/scaleasw/powercalc/MainActivity$2;-><init>(Lcom/scaleasw/powercalc/MainActivity;)V

    invoke-virtual {v1, v0, v2}, Landroid/app/AlertDialog$Builder;->setItems([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 1457
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 1458
    return-void
.end method

.method private openBitModeDialog()V
    .locals 4

    .prologue
    .line 1571
    const/4 v2, 0x4

    new-array v0, v2, [Ljava/lang/CharSequence;

    .line 1573
    .local v0, "items":[Ljava/lang/CharSequence;
    const/4 v2, 0x0

    const v3, 0x7f08000c

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v2

    .line 1574
    const/4 v2, 0x1

    const v3, 0x7f080009

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v2

    .line 1575
    const/4 v2, 0x2

    const v3, 0x7f08000a

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v2

    .line 1576
    const/4 v2, 0x3

    const v3, 0x7f08000b

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v2

    .line 1578
    new-instance v1, Landroid/app/AlertDialog$Builder;

    invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 1579
    .local v1, "modeDialog":Landroid/app/AlertDialog$Builder;
    const v2, 0x7f08000f

    invoke-virtual {p0, v2}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 1580
    new-instance v2, Lcom/scaleasw/powercalc/MainActivity$10;

    invoke-direct {v2, p0}, Lcom/scaleasw/powercalc/MainActivity$10;-><init>(Lcom/scaleasw/powercalc/MainActivity;)V

    invoke-virtual {v1, v0, v2}, Landroid/app/AlertDialog$Builder;->setItems([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 1594
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 1595
    return-void
.end method

.method private openComplexModeDialog()V
    .locals 4

    .prologue
    .line 1547
    const/4 v2, 0x2

    new-array v0, v2, [Ljava/lang/CharSequence;

    .line 1549
    .local v0, "items":[Ljava/lang/CharSequence;
    const/4 v2, 0x0

    const v3, 0x7f080015

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v2

    .line 1550
    const/4 v2, 0x1

    const v3, 0x7f080017

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v2

    .line 1552
    new-instance v1, Landroid/app/AlertDialog$Builder;

    invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 1553
    .local v1, "modeDialog":Landroid/app/AlertDialog$Builder;
    const v2, 0x7f08002a

    invoke-virtual {p0, v2}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 1554
    new-instance v2, Lcom/scaleasw/powercalc/MainActivity$9;

    invoke-direct {v2, p0}, Lcom/scaleasw/powercalc/MainActivity$9;-><init>(Lcom/scaleasw/powercalc/MainActivity;)V

    invoke-virtual {v1, v0, v2}, Landroid/app/AlertDialog$Builder;->setItems([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 1565
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 1566
    return-void
.end method

.method private openViewModeDialog()V
    .locals 6

    .prologue
    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 1463
    const/4 v3, 0x5

    new-array v0, v3, [Ljava/lang/CharSequence;

    .line 1464
    .local v0, "items":[Ljava/lang/CharSequence;
    new-array v2, v5, [I

    .line 1465
    .local v2, "selectedIndex":[I
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->viewMode:Lcom/scaleasw/powercalc/Editor$ViewMode;

    invoke-virtual {v3}, Lcom/scaleasw/powercalc/Editor$ViewMode;->ordinal()I

    move-result v3

    aput v3, v2, v4

    .line 1467
    const v3, 0x7f080027

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v4

    .line 1468
    const v3, 0x7f080026

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v0, v5

    .line 1469
    const/4 v3, 0x2

    const v4, 0x7f080029

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v0, v3

    .line 1470
    const/4 v3, 0x3

    const v4, 0x7f080024

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v0, v3

    .line 1471
    const/4 v3, 0x4

    const v4, 0x7f080025

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v0, v3

    .line 1473
    new-instance v1, Landroid/app/AlertDialog$Builder;

    invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 1474
    .local v1, "modeDialog":Landroid/app/AlertDialog$Builder;
    const v3, 0x7f08002a

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 1475
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->viewMode:Lcom/scaleasw/powercalc/Editor$ViewMode;

    invoke-virtual {v3}, Lcom/scaleasw/powercalc/Editor$ViewMode;->ordinal()I

    move-result v3

    new-instance v4, Lcom/scaleasw/powercalc/MainActivity$3;

    invoke-direct {v4, p0, v2}, Lcom/scaleasw/powercalc/MainActivity$3;-><init>(Lcom/scaleasw/powercalc/MainActivity;[I)V

    invoke-virtual {v1, v0, v3, v4}, Landroid/app/AlertDialog$Builder;->setSingleChoiceItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 1482
    const v3, 0x7f080028

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    new-instance v4, Lcom/scaleasw/powercalc/MainActivity$4;

    invoke-direct {v4, p0, v2}, Lcom/scaleasw/powercalc/MainActivity$4;-><init>(Lcom/scaleasw/powercalc/MainActivity;[I)V

    invoke-virtual {v1, v3, v4}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 1493
    const v3, 0x7f080023

    invoke-virtual {p0, v3}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    new-instance v4, Lcom/scaleasw/powercalc/MainActivity$5;

    invoke-direct {v4, p0}, Lcom/scaleasw/powercalc/MainActivity$5;-><init>(Lcom/scaleasw/powercalc/MainActivity;)V

    invoke-virtual {v1, v3, v4}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 1499
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 1500
    return-void
.end method

.method private updateHypState()V
    .locals 2

    .prologue
    .line 1393
    iget-object v0, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v0, v0, Lcom/scaleasw/powercalc/Editor;->hypState:Lcom/scaleasw/powercalc/Keyboard$HypState;

    sget-object v1, Lcom/scaleasw/powercalc/Keyboard$HypState;->HYP_OFF:Lcom/scaleasw/powercalc/Keyboard$HypState;

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/scaleasw/powercalc/MainActivity;->hypView:Landroid/widget/TextView;

    const v1, 0x7f08001b

    invoke-virtual {p0, v1}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1395
    :goto_0
    return-void

    .line 1394
    :cond_0
    iget-object v0, p0, Lcom/scaleasw/powercalc/MainActivity;->hypView:Landroid/widget/TextView;

    const v1, 0x7f08001c

    invoke-virtual {p0, v1}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method private updateModeState()V
    .locals 6

    .prologue
    .line 1400
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "("

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->viewDecimals:I

    invoke-static {v4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ")"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 1402
    .local v1, "dec":Ljava/lang/String;
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->prevCalcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, v4, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v4, v4, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-eq v3, v4, :cond_0

    .line 1403
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_1

    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->setFloatLayout()V

    .line 1405
    :goto_0
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    iput-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->prevCalcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    .line 1408
    :cond_0
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_9

    .line 1409
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->angleMode:Lcom/scaleasw/powercalc/Solver$AngleMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$AngleMode;->MODE_DEG:Lcom/scaleasw/powercalc/Solver$AngleMode;

    if-ne v3, v4, :cond_2

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->angleModeView:Landroid/widget/TextView;

    const v4, 0x7f080005

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1413
    :goto_1
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->viewMode:Lcom/scaleasw/powercalc/Editor$ViewMode;

    sget-object v4, Lcom/scaleasw/powercalc/Editor$ViewMode;->MODE_NORMAL:Lcom/scaleasw/powercalc/Editor$ViewMode;

    if-ne v3, v4, :cond_4

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->viewModeView:Landroid/widget/TextView;

    const v4, 0x7f08002e

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1419
    :goto_2
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->complexMode:Lcom/scaleasw/powercalc/Solver$ComplexMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$ComplexMode;->MODE_NORMAL:Lcom/scaleasw/powercalc/Solver$ComplexMode;

    if-ne v3, v4, :cond_8

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->complexModeView:Landroid/widget/TextView;

    const v4, 0x7f080019

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1433
    :goto_3
    return-void

    .line 1404
    :cond_1
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->setRadixLayout()V

    goto :goto_0

    .line 1410
    :cond_2
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->angleMode:Lcom/scaleasw/powercalc/Solver$AngleMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$AngleMode;->MODE_RAD:Lcom/scaleasw/powercalc/Solver$AngleMode;

    if-ne v3, v4, :cond_3

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->angleModeView:Landroid/widget/TextView;

    const v4, 0x7f080007

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 1411
    :cond_3
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->angleModeView:Landroid/widget/TextView;

    const v4, 0x7f080006

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 1414
    :cond_4
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->viewMode:Lcom/scaleasw/powercalc/Editor$ViewMode;

    sget-object v4, Lcom/scaleasw/powercalc/Editor$ViewMode;->MODE_FIXED:Lcom/scaleasw/powercalc/Editor$ViewMode;

    if-ne v3, v4, :cond_5

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->viewModeView:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const v5, 0x7f08002d

    invoke-virtual {p0, v5}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_2

    .line 1415
    :cond_5
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->viewMode:Lcom/scaleasw/powercalc/Editor$ViewMode;

    sget-object v4, Lcom/scaleasw/powercalc/Editor$ViewMode;->MODE_SCIENTIFIC:Lcom/scaleasw/powercalc/Editor$ViewMode;

    if-ne v3, v4, :cond_6

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->viewModeView:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const v5, 0x7f08002f

    invoke-virtual {p0, v5}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 1416
    :cond_6
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->viewMode:Lcom/scaleasw/powercalc/Editor$ViewMode;

    sget-object v4, Lcom/scaleasw/powercalc/Editor$ViewMode;->MODE_ENGINEER:Lcom/scaleasw/powercalc/Editor$ViewMode;

    if-ne v3, v4, :cond_7

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->viewModeView:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const v5, 0x7f08002b

    invoke-virtual {p0, v5}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 1417
    :cond_7
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->viewModeView:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const v5, 0x7f08002c

    invoke-virtual {p0, v5}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 1420
    :cond_8
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->complexModeView:Landroid/widget/TextView;

    const v4, 0x7f08001a

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_3

    .line 1423
    :cond_9
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->angleModeView:Landroid/widget/TextView;

    const-string v4, ""

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1424
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->viewModeView:Landroid/widget/TextView;

    const-string v4, ""

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1425
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "("

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, v4, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget v4, v4, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    invoke-static {v4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ")"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 1427
    .local v0, "bits":Ljava/lang/String;
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_BIN:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_a

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f080010

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 1431
    .local v2, "mode":Ljava/lang/String;
    :goto_4
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->complexModeView:Landroid/widget/TextView;

    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_3

    .line 1428
    .end local v2    # "mode":Ljava/lang/String;
    :cond_a
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_DEC:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_b

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f080011

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .restart local v2    # "mode":Ljava/lang/String;
    goto :goto_4

    .line 1429
    .end local v2    # "mode":Ljava/lang/String;
    :cond_b
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_HEX:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_c

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f080012

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .restart local v2    # "mode":Ljava/lang/String;
    goto :goto_4

    .line 1430
    .end local v2    # "mode":Ljava/lang/String;
    :cond_c
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f080013

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .restart local v2    # "mode":Ljava/lang/String;
    goto :goto_4
.end method

.method private updateShiftState()V
    .locals 2

    .prologue
    .line 1385
    iget-object v0, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v0, v0, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    sget-object v1, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_OFF:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/scaleasw/powercalc/MainActivity;->shiftView:Landroid/widget/TextView;

    const v1, 0x7f08001e

    invoke-virtual {p0, v1}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1388
    :goto_0
    return-void

    .line 1386
    :cond_0
    iget-object v0, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v0, v0, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    sget-object v1, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_ON:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/scaleasw/powercalc/MainActivity;->shiftView:Landroid/widget/TextView;

    const v1, 0x7f08001f

    invoke-virtual {p0, v1}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 1387
    :cond_1
    iget-object v0, p0, Lcom/scaleasw/powercalc/MainActivity;->shiftView:Landroid/widget/TextView;

    const v1, 0x7f08001d

    invoke-virtual {p0, v1}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method


# virtual methods
.method public applyAllSettings()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 152
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 153
    .local v0, "prefs":Landroid/content/SharedPreferences;
    iget-object v1, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v1, v1, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    invoke-static {}, Lcom/scaleasw/powercalc/Solver$AngleMode;->values()[Lcom/scaleasw/powercalc/Solver$AngleMode;

    move-result-object v2

    const-string v3, "prefAngleMode"

    invoke-interface {v0, v3, v4}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    aget-object v2, v2, v3

    iput-object v2, v1, Lcom/scaleasw/powercalc/Solver;->angleMode:Lcom/scaleasw/powercalc/Solver$AngleMode;

    .line 154
    iget-object v1, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    const-string v2, "prefDisplayDecimals"

    const/4 v3, 0x1

    invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v2

    iput v2, v1, Lcom/scaleasw/powercalc/Editor;->viewDecimals:I

    .line 155
    iget-object v1, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    invoke-static {}, Lcom/scaleasw/powercalc/Editor$ViewMode;->values()[Lcom/scaleasw/powercalc/Editor$ViewMode;

    move-result-object v2

    const-string v3, "prefViewMode"

    invoke-interface {v0, v3, v4}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    aget-object v2, v2, v3

    iput-object v2, v1, Lcom/scaleasw/powercalc/Editor;->viewMode:Lcom/scaleasw/powercalc/Editor$ViewMode;

    .line 156
    iget-object v1, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v1, v1, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    invoke-static {}, Lcom/scaleasw/powercalc/Solver$ComplexMode;->values()[Lcom/scaleasw/powercalc/Solver$ComplexMode;

    move-result-object v2

    const-string v3, "prefComplexMode"

    invoke-interface {v0, v3, v4}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v3

    aget-object v2, v2, v3

    iput-object v2, v1, Lcom/scaleasw/powercalc/Solver;->complexMode:Lcom/scaleasw/powercalc/Solver$ComplexMode;

    .line 157
    iget-object v1, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v1, v1, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    const-string v2, "prefBitsCount"

    const/16 v3, 0x20

    invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v2

    iput v2, v1, Lcom/scaleasw/powercalc/Solver;->calcBits:I

    .line 158
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->applyPreferences()V

    .line 159
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->updateShiftState()V

    .line 160
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->updateModeState()V

    .line 161
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->applyFontScale()V

    .line 162
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->getWindow()Landroid/view/Window;

    move-result-object v1

    const/4 v2, 0x3

    invoke-virtual {v1, v2}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 163
    return-void
.end method

.method public applyFontScale()V
    .locals 8

    .prologue
    const-wide/high16 v6, 0x4034000000000000L    # 20.0

    const-wide/high16 v4, 0x3ff0000000000000L    # 1.0

    .line 168
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 169
    .local v1, "prefs":Landroid/content/SharedPreferences;
    const-string v2, "prefFontScale"

    const-string v3, "1"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    .line 172
    .local v0, "font":I
 #   const/4 v0, 0x1

    .line 174
    packed-switch v0, :pswitch_data_0

    .line 189
    iput-wide v4, p0, Lcom/scaleasw/powercalc/MainActivity;->fontScale:D

    .line 192
    :goto_0
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->display:Lcom/scaleasw/powercalc/CalcDisplay;

    iget-wide v4, p0, Lcom/scaleasw/powercalc/MainActivity;->fontScale:D

    mul-double/2addr v4, v6

    invoke-static {v4, v5}, Ljava/lang/Math;->round(D)J

    move-result-wide v4

    long-to-float v3, v4

    invoke-virtual {v2, v3}, Lcom/scaleasw/powercalc/CalcDisplay;->setTextSize(F)V

    .line 193
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->resultView:Landroid/widget/EditText;

    iget-wide v4, p0, Lcom/scaleasw/powercalc/MainActivity;->fontScale:D

    mul-double/2addr v4, v6

    invoke-static {v4, v5}, Ljava/lang/Math;->round(D)J

    move-result-wide v4

    long-to-float v3, v4

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setTextSize(F)V

    .line 195
    return-void

    .line 177
    :pswitch_0
    const-wide/high16 v2, 0x3fe8000000000000L    # 0.75

    iput-wide v2, p0, Lcom/scaleasw/powercalc/MainActivity;->fontScale:D

    goto :goto_0

    .line 180
    :pswitch_1
    iput-wide v4, p0, Lcom/scaleasw/powercalc/MainActivity;->fontScale:D

    goto :goto_0

    .line 183
    :pswitch_2
    const-wide/high16 v2, 0x3ff8000000000000L    # 1.5

    iput-wide v2, p0, Lcom/scaleasw/powercalc/MainActivity;->fontScale:D

    goto :goto_0

    .line 186
    :pswitch_3
    const-wide/high16 v2, 0x4000000000000000L    # 2.0

    iput-wide v2, p0, Lcom/scaleasw/powercalc/MainActivity;->fontScale:D

    goto :goto_0

    .line 174
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public applyPreferences()V
    .locals 5

    .prologue
    const/4 v4, -0x1

    .line 199
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 200
    .local v0, "prefs":Landroid/content/SharedPreferences;
    const-string v2, "prefScreen"

    const/4 v3, 0x0

    invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    invoke-virtual {p0, p0, v2}, Lcom/scaleasw/powercalc/MainActivity;->setKeepScreenOn(Landroid/app/Activity;Z)V

    .line 201
    const-string v2, "prefHistory"

    const-string v3, "20"

    invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    .line 202
    .local v1, "size":I
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    invoke-virtual {v2, v1}, Lcom/scaleasw/powercalc/Editor;->setHistorySize(I)V

    .line 203
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v2, v2, Lcom/scaleasw/powercalc/Editor;->editing:Ljava/lang/Boolean;

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-nez v2, :cond_0

    .line 204
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v2, v2, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v2, v2, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v3, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v2, v3, :cond_1

    .line 205
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v2, v2, Lcom/scaleasw/powercalc/Editor;->historyIndexFloat:I

    if-le v2, v4, :cond_0

    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    invoke-virtual {v2}, Lcom/scaleasw/powercalc/Editor;->historyGetLine()V

    .line 210
    :cond_0
    :goto_0
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    invoke-virtual {v2}, Lcom/scaleasw/powercalc/Editor;->updateEditorView()V

    .line 212
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->applyFontScale()V

    .line 213
    return-void

    .line 207
    :cond_1
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v2, v2, Lcom/scaleasw/powercalc/Editor;->historyIndexRadix:I

    if-le v2, v4, :cond_0

    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    invoke-virtual {v2}, Lcom/scaleasw/powercalc/Editor;->historyGetLine()V

    goto :goto_0
.end method

.method public applyScreenOrientation()V
    .locals 7

    .prologue
    const/4 v6, 0x6

    const/4 v5, 0x4

    const/4 v4, 0x1

    .line 217
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 218
    .local v1, "prefs":Landroid/content/SharedPreferences;
    const-string v2, "prefScreenRotation"

    const-string v3, "1"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    .line 221
    .local v0, "orientation":I
#
#    const/4 v0, 0x1

    .line 223
    if-nez v0, :cond_1

    .line 224
    invoke-virtual {p0, v5}, Lcom/scaleasw/powercalc/MainActivity;->setRequestedOrientation(I)V

    .line 237
    :cond_0
    :goto_0
    return-void

    .line 225
    :cond_1
    if-ne v0, v4, :cond_2

    .line 226
    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/MainActivity;->setRequestedOrientation(I)V

    goto :goto_0

    .line 227
    :cond_2
    const/4 v2, 0x2

    if-ne v0, v2, :cond_3

    .line 228
    const/16 v2, 0x9

    invoke-virtual {p0, v2}, Lcom/scaleasw/powercalc/MainActivity;->setRequestedOrientation(I)V

    goto :goto_0

    .line 229
    :cond_3
    const/4 v2, 0x3

    if-ne v0, v2, :cond_4

    .line 230
    const/4 v2, 0x7

    invoke-virtual {p0, v2}, Lcom/scaleasw/powercalc/MainActivity;->setRequestedOrientation(I)V

    goto :goto_0

    .line 231
    :cond_4
    if-ne v0, v5, :cond_5

    .line 232
    const/4 v2, 0x0

    invoke-virtual {p0, v2}, Lcom/scaleasw/powercalc/MainActivity;->setRequestedOrientation(I)V

    goto :goto_0

    .line 233
    :cond_5
    const/4 v2, 0x5

    if-ne v0, v2, :cond_6

    .line 234
    const/16 v2, 0x8

    invoke-virtual {p0, v2}, Lcom/scaleasw/powercalc/MainActivity;->setRequestedOrientation(I)V

    goto :goto_0

    .line 235
    :cond_6
    if-ne v0, v6, :cond_0

    .line 236
    invoke-virtual {p0, v6}, Lcom/scaleasw/powercalc/MainActivity;->setRequestedOrientation(I)V

    goto :goto_0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 9
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    const/4 v8, 0x1

    const/4 v7, 0x0

    const/4 v6, -0x1

    .line 304
    packed-switch p1, :pswitch_data_0

    .line 381
    :cond_0
    :goto_0
    return-void

    .line 306
    :pswitch_0
    if-ne p2, v6, :cond_0

    .line 307
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->editing:Ljava/lang/Boolean;

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v3

    if-nez v3, :cond_1

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->line:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->clear()V

    .line 308
    :cond_1
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    invoke-static {v8}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v4

    iput-object v4, v3, Lcom/scaleasw/powercalc/Editor;->editing:Ljava/lang/Boolean;

    .line 309
    const-string v3, "element"

    invoke-virtual {p3, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 310
    .local v0, "element":Ljava/lang/String;
    const-string v3, ""

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_3

    .line 311
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    invoke-static {v0}, Lcom/scaleasw/powercalc/Element;->valueOf(Ljava/lang/String;)Lcom/scaleasw/powercalc/Element;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    .line 361
    :cond_2
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    invoke-static {v8}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v4

    iput-object v4, v3, Lcom/scaleasw/powercalc/Editor;->editing:Ljava/lang/Boolean;

    .line 362
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_4

    .line 363
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iput v7, v3, Lcom/scaleasw/powercalc/Editor;->historyIndexFloat:I

    .line 368
    :goto_1
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iput v6, v3, Lcom/scaleasw/powercalc/Editor;->errorIndex:I

    .line 369
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    invoke-virtual {v3}, Lcom/scaleasw/powercalc/Editor;->updateEditorView()V

    goto :goto_0

    .line 314
    :cond_3
    const-string v3, "value"

    invoke-virtual {p3, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 315
    .local v2, "value":Ljava/lang/String;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_2
    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v3

    if-ge v1, v3, :cond_2

    .line 317
    invoke-virtual {v2, v1}, Ljava/lang/String;->charAt(I)C

    move-result v3

    sparse-switch v3, :sswitch_data_0

    .line 315
    :goto_3
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 320
    :sswitch_0
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->N0:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto :goto_3

    .line 323
    :sswitch_1
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->N1:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto :goto_3

    .line 326
    :sswitch_2
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->N2:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto :goto_3

    .line 329
    :sswitch_3
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->N3:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto :goto_3

    .line 332
    :sswitch_4
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->N4:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto :goto_3

    .line 335
    :sswitch_5
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->N5:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto :goto_3

    .line 338
    :sswitch_6
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->N6:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto :goto_3

    .line 341
    :sswitch_7
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->N7:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto :goto_3

    .line 344
    :sswitch_8
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->N8:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto :goto_3

    .line 347
    :sswitch_9
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->N9:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto :goto_3

    .line 350
    :sswitch_a
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->NDOT:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto/16 :goto_3

    .line 353
    :sswitch_b
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->NSIGN:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto/16 :goto_3

    .line 356
    :sswitch_c
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v4, v4, Lcom/scaleasw/powercalc/Editor;->index:I

    sget-object v5, Lcom/scaleasw/powercalc/Element;->NEXP:Lcom/scaleasw/powercalc/Element;

    invoke-virtual {v3, v4, v5}, Lcom/scaleasw/powercalc/Editor;->insertElement(ILcom/scaleasw/powercalc/Element;)V

    goto/16 :goto_3

    .line 366
    .end local v1    # "i":I
    .end local v2    # "value":Ljava/lang/String;
    :cond_4
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iput v7, v3, Lcom/scaleasw/powercalc/Editor;->historyIndexRadix:I

    goto/16 :goto_1

    .line 375
    .end local v0    # "element":Ljava/lang/String;
    :pswitch_1
    if-ne p2, v6, :cond_0

    .line 376
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->applyPreferences()V

    goto/16 :goto_0

    .line 304
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch

    .line 317
    :sswitch_data_0
    .sparse-switch
        0x2d -> :sswitch_b
        0x2e -> :sswitch_a
        0x30 -> :sswitch_0
        0x31 -> :sswitch_1
        0x32 -> :sswitch_2
        0x33 -> :sswitch_3
        0x34 -> :sswitch_4
        0x35 -> :sswitch_5
        0x36 -> :sswitch_6
        0x37 -> :sswitch_7
        0x38 -> :sswitch_8
        0x39 -> :sswitch_9
        0x65 -> :sswitch_c
    .end sparse-switch
.end method

.method public onClick(Landroid/view/View;)V
    .locals 9
    .param p1, "v"    # Landroid/view/View;

    .prologue
    const/4 v8, 0x5

    const/4 v7, 0x1

    const/4 v6, 0x4

    const/4 v5, 0x0

    .line 1316
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v3, v3, v7

    aget-object v3, v3, v5

    if-ne p1, v3, :cond_1

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_ON:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    if-ne v3, v4, :cond_1

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_1

    .line 1317
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->openAngleModeDialog()V

    .line 1318
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_OFF:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    .line 1319
    const/4 p1, 0x0

    .line 1366
    :cond_0
    :goto_0
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->updateShiftState()V

    .line 1367
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->updateHypState()V

    .line 1368
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->updateModeState()V

    .line 1369
    return-void

    .line 1321
    :cond_1
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    const/4 v4, 0x2

    aget-object v3, v3, v4

    aget-object v3, v3, v5

    if-ne p1, v3, :cond_2

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_ON:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    if-ne v3, v4, :cond_2

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_2

    .line 1322
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->openViewModeDialog()V

    .line 1323
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_OFF:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    .line 1324
    const/4 p1, 0x0

    goto :goto_0

    .line 1326
    :cond_2
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    const/4 v4, 0x3

    aget-object v3, v3, v4

    aget-object v3, v3, v5

    if-ne p1, v3, :cond_3

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_ON:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    if-ne v3, v4, :cond_3

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_3

    .line 1327
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->openComplexModeDialog()V

    .line 1328
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_OFF:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    .line 1329
    const/4 p1, 0x0

    goto :goto_0

    .line 1331
    :cond_3
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v3, v3, v6

    aget-object v3, v3, v5

    if-ne p1, v3, :cond_4

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_ON:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    if-ne v3, v4, :cond_4

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-eq v3, v4, :cond_4

    .line 1332
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->openBitModeDialog()V

    .line 1333
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_OFF:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    .line 1334
    const/4 p1, 0x0

    goto :goto_0

    .line 1336
    :cond_4
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v3, v3, v8

    aget-object v3, v3, v5

    if-ne p1, v3, :cond_5

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_ON:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    if-ne v3, v4, :cond_5

    .line 1337
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_OFF:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    .line 1338
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->finish()V

    .line 1339
    const/4 p1, 0x0

    goto/16 :goto_0

    .line 1341
    :cond_5
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v3, v3, v6

    aget-object v3, v3, v7

    if-ne p1, v3, :cond_6

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_OFF:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    if-ne v3, v4, :cond_6

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->solver:Lcom/scaleasw/powercalc/Solver;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Solver;->calcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    if-ne v3, v4, :cond_6

    .line 1342
    new-instance v0, Landroid/content/Intent;

    const-class v3, Lcom/scaleasw/powercalc/ConstantActivity;

    invoke-direct {v0, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 1343
    .local v0, "intent":Landroid/content/Intent;
    invoke-virtual {p0, v0, v5}, Lcom/scaleasw/powercalc/MainActivity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 1344
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_OFF:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    .line 1345
    const/4 p1, 0x0

    .line 1346
    goto/16 :goto_0

    .line 1347
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_6
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v3, v3, v6

    aget-object v3, v3, v5

    if-ne p1, v3, :cond_7

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v3, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_ON:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    if-ne v3, v4, :cond_7

    .line 1348
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_OFF:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    iput-object v4, v3, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    .line 1349
    invoke-super {p0}, Landroid/app/Activity;->openOptionsMenu()V

    .line 1350
    const/4 p1, 0x0

    goto/16 :goto_0

    .line 1353
    :cond_7
    const/4 v1, 0x0

    .local v1, "x":I
    :goto_1
    const/4 v3, 0x6

    if-ge v1, v3, :cond_a

    .line 1354
    const/4 v2, 0x0

    .local v2, "y":I
    :goto_2
    if-ge v2, v6, :cond_9

    .line 1356
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v3, v3, v1

    aget-object v3, v3, v2

    if-ne p1, v3, :cond_8

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$KeyboardType;->KEYBOARD_TOP:Lcom/scaleasw/powercalc/Keyboard$KeyboardType;

    invoke-virtual {v3, v1, v2, v4}, Lcom/scaleasw/powercalc/Editor;->buttonClick(IILcom/scaleasw/powercalc/Keyboard$KeyboardType;)V

    .line 1354
    :cond_8
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    .line 1353
    :cond_9
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    .line 1359
    .end local v2    # "y":I
    :cond_a
    const/4 v1, 0x0

    :goto_3
    if-ge v1, v8, :cond_0

    .line 1360
    const/4 v2, 0x0

    .restart local v2    # "y":I
    :goto_4
    if-ge v2, v6, :cond_c

    .line 1362
    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v3, v3, v1

    aget-object v3, v3, v2

    if-ne p1, v3, :cond_b

    iget-object v3, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    sget-object v4, Lcom/scaleasw/powercalc/Keyboard$KeyboardType;->KEYBOARD_BOTTOM:Lcom/scaleasw/powercalc/Keyboard$KeyboardType;

    invoke-virtual {v3, v1, v2, v4}, Lcom/scaleasw/powercalc/Editor;->buttonClick(IILcom/scaleasw/powercalc/Keyboard$KeyboardType;)V

    .line 1360
    :cond_b
    add-int/lit8 v2, v2, 0x1

    goto :goto_4

    .line 1359
    :cond_c
    add-int/lit8 v1, v1, 0x1

    goto :goto_3
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 11
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    const/16 v10, 0x400

    const/4 v9, 0x1

    const/4 v8, 0x0

    .line 77
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 79
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    .line 82
    .local v2, "manager":Landroid/content/pm/PackageManager;
    :try_start_0
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->getPackageName()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    invoke-virtual {v2, v4, v5}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v1

    .line 83
    .local v1, "info":Landroid/content/pm/PackageInfo;
    iget-object v4, v1, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    iput-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->appVersion:Ljava/lang/String;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 88
    .end local v1    # "info":Landroid/content/pm/PackageInfo;
    :goto_0
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v3

    .line 89
    .local v3, "prefs":Landroid/content/SharedPreferences;
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefDecimal"

    const-string v6, "prefDecimal"

    const-string v7, "."

    invoke-interface {v3, v6, v7}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 90
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefGroup"

    const-string v6, "prefGroup"

    const-string v7, "0"

    invoke-interface {v3, v6, v7}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 91
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefComplexMode"

    const-string v6, "prefComplexMode"

    invoke-interface {v3, v6, v8}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 92
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefFeedback"

    const-string v6, "prefFeedback"

    invoke-interface {v3, v6, v9}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 93
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefLongpress"

    const-string v6, "prefLongpress"

    invoke-interface {v3, v6, v9}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 94
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefAngleMode"

    const-string v6, "prefAngleMode"

    invoke-interface {v3, v6, v8}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 95
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefDisplayMode"

    const-string v6, "prefDisplayMode"

    invoke-interface {v3, v6, v8}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 96
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefDisplayDecimals"

    const-string v6, "prefDisplayDecimals"

    invoke-interface {v3, v6, v9}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 97
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefComplexMode"

    const-string v6, "prefComplexMode"

    invoke-interface {v3, v6, v8}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 98
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefBitsCount"

    const-string v6, "prefBitsCount"

    const/16 v7, 0x20

    invoke-interface {v3, v6, v7}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 99
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefFontScale"

    const-string v6, "prefFontScale"

    const-string v7, "1"

    invoke-interface {v3, v6, v7}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 100
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefHistory"

    const-string v6, "prefHistory"

    const-string v7, "20"

    invoke-interface {v3, v6, v7}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 101
    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "prefScreenRotation"

    const-string v6, "prefScreenRotation"

    const-string v7, "1"

    invoke-interface {v3, v6, v7}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    invoke-interface {v4}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 103
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->applyScreenOrientation()V

    .line 104
    invoke-virtual {p0, v9}, Lcom/scaleasw/powercalc/MainActivity;->requestWindowFeature(I)Z

    .line 105
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->getWindow()Landroid/view/Window;

    move-result-object v4

    invoke-virtual {v4, v10, v10}, Landroid/view/Window;->setFlags(II)V

    .line 107
    const v4, 0x7f030001

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/MainActivity;->setContentView(I)V

    .line 108
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v4

    iget v0, v4, Landroid/content/res/Configuration;->orientation:I

    .line 110
    .local v0, "i":I
    if-ne v0, v9, :cond_0

    .line 111
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->createLayout()V

    .line 115
    :goto_1
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->setFloatLayout()V

    .line 116
    sget-object v4, Lcom/scaleasw/powercalc/Solver$CalcMode;->MODE_FLOAT:Lcom/scaleasw/powercalc/Solver$CalcMode;

    iput-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->prevCalcMode:Lcom/scaleasw/powercalc/Solver$CalcMode;

    .line 117
    const v4, 0x7f0b0009

    invoke-virtual {p0, v4}, Lcom/scaleasw/powercalc/MainActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/EditText;

    iput-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->resultView:Landroid/widget/EditText;

    .line 118
    new-instance v4, Lcom/scaleasw/powercalc/Editor;

    invoke-direct {v4}, Lcom/scaleasw/powercalc/Editor;-><init>()V

    iput-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    .line 119
    iget-object v4, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v5, p0, Lcom/scaleasw/powercalc/MainActivity;->display:Lcom/scaleasw/powercalc/CalcDisplay;

    iget-object v6, p0, Lcom/scaleasw/powercalc/MainActivity;->resultView:Landroid/widget/EditText;

    invoke-virtual {v4, p0, v5, v6}, Lcom/scaleasw/powercalc/Editor;->setControls(Landroid/app/Activity;Lcom/scaleasw/powercalc/CalcDisplay;Landroid/widget/EditText;)V

    .line 120
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->applyAllSettings()V

    .line 121
    return-void

    .line 113
    :cond_0
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->createLayoutLandscape()V

    goto :goto_1

    .line 84
    .end local v0    # "i":I
    .end local v3    # "prefs":Landroid/content/SharedPreferences;
    :catch_0
    move-exception v4

    goto/16 :goto_0
.end method

.method public onCreateContextMenu(Landroid/view/ContextMenu;Landroid/view/View;Landroid/view/ContextMenu$ContextMenuInfo;)V
    .locals 3
    .param p1, "menu"    # Landroid/view/ContextMenu;
    .param p2, "view"    # Landroid/view/View;
    .param p3, "menuInfo"    # Landroid/view/ContextMenu$ContextMenuInfo;

    .prologue
    const/4 v2, 0x0

    .line 247
    invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onCreateContextMenu(Landroid/view/ContextMenu;Landroid/view/View;Landroid/view/ContextMenu$ContextMenuInfo;)V

    .line 249
    const-string v0, "Context Menu"

    invoke-interface {p1, v0}, Landroid/view/ContextMenu;->setHeaderTitle(Ljava/lang/CharSequence;)Landroid/view/ContextMenu;

    .line 250
    invoke-virtual {p2}, Landroid/view/View;->getId()I

    move-result v0

    const-string v1, "Action 1"

    invoke-interface {p1, v2, v0, v2, v1}, Landroid/view/ContextMenu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    .line 251
    return-void
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 2
    .param p1, "menu"    # Landroid/view/Menu;

    .prologue
    .line 255
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->getMenuInflater()Landroid/view/MenuInflater;

    move-result-object v0

    const/high16 v1, 0x7f0a0000

    invoke-virtual {v0, v1, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    .line 257
    const/4 v0, 0x1

    return v0
.end method

.method public onLongClick(Landroid/view/View;)Z
    .locals 3
    .param p1, "v"    # Landroid/view/View;

    .prologue
    const/4 v1, 0x0

    .line 1373
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 1374
    .local v0, "prefs":Landroid/content/SharedPreferences;
    const-string v2, "prefLongpress"

    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 1375
    iget-object v1, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    sget-object v2, Lcom/scaleasw/powercalc/Keyboard$ShiftState;->SHIFT_ON:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    iput-object v2, v1, Lcom/scaleasw/powercalc/Editor;->shiftState:Lcom/scaleasw/powercalc/Keyboard$ShiftState;

    .line 1376
    invoke-virtual {p0, p1}, Lcom/scaleasw/powercalc/MainActivity;->onClick(Landroid/view/View;)V

    .line 1377
    const/4 v1, 0x1

    .line 1379
    :cond_0
    return v1
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 11
    .param p1, "item"    # Landroid/view/MenuItem;

    .prologue
    const/4 v6, 0x1

    .line 261
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v7

    packed-switch v7, :pswitch_data_0

    .line 299
    invoke-super {p0, p1}, Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z

    move-result v6

    :goto_0
    return v6

    .line 263
    :pswitch_0
    new-instance v4, Landroid/content/Intent;

    const-class v7, Lcom/scaleasw/powercalc/PreferencesActivity;

    invoke-direct {v4, p0, v7}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 264
    .local v4, "intent":Landroid/content/Intent;
    invoke-virtual {p0, v4, v6}, Lcom/scaleasw/powercalc/MainActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 267
    .end local v4    # "intent":Landroid/content/Intent;
    :pswitch_1
    new-instance v7, Landroid/app/AlertDialog$Builder;

    invoke-direct {v7, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v7}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 268
    .local v0, "alertDialog":Landroid/app/AlertDialog;
    const v7, 0x7f080008

    invoke-virtual {p0, v7}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    .line 269
    .local v5, "name":Ljava/lang/String;
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, " v"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/scaleasw/powercalc/MainActivity;->appVersion:Ljava/lang/String;

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 270
    invoke-static {v5}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v7

    invoke-virtual {v0, v7}, Landroid/app/AlertDialog;->setTitle(Ljava/lang/CharSequence;)V

    .line 271
    const/high16 v7, 0x7f080000

    invoke-virtual {p0, v7}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v7

    invoke-virtual {v0, v7}, Landroid/app/AlertDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 272
    const-string v7, "OK"

    new-instance v8, Lcom/scaleasw/powercalc/MainActivity$1;

    invoke-direct {v8, p0}, Lcom/scaleasw/powercalc/MainActivity$1;-><init>(Lcom/scaleasw/powercalc/MainActivity;)V

    invoke-virtual {v0, v7, v8}, Landroid/app/AlertDialog;->setButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)V

    .line 276
    const v7, 0x7f02004b

    invoke-virtual {v0, v7}, Landroid/app/AlertDialog;->setIcon(I)V

    .line 277
    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    goto :goto_0

    .line 281
    .end local v0    # "alertDialog":Landroid/app/AlertDialog;
    .end local v5    # "name":Ljava/lang/String;
    :pswitch_2
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v8

    invoke-virtual {v8}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "pro"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 283
    .local v3, "appNamePro":Ljava/lang/String;
    :try_start_0
    new-instance v7, Landroid/content/Intent;

    const-string v8, "android.intent.action.VIEW"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "market://details?id="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v9

    invoke-direct {v7, v8, v9}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v7}, Lcom/scaleasw/powercalc/MainActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 284
    :catch_0
    move-exception v1

    .line 285
    .local v1, "anfe":Landroid/content/ActivityNotFoundException;
    new-instance v7, Landroid/content/Intent;

    const-string v8, "android.intent.action.VIEW"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "http://play.google.com/store/apps/details?id="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v9

    invoke-direct {v7, v8, v9}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v7}, Lcom/scaleasw/powercalc/MainActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 291
    .end local v1    # "anfe":Landroid/content/ActivityNotFoundException;
    .end local v3    # "appNamePro":Ljava/lang/String;
    :pswitch_3
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v7

    invoke-virtual {v7}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v2

    .line 293
    .local v2, "appName":Ljava/lang/String;
    :try_start_1
    new-instance v7, Landroid/content/Intent;

    const-string v8, "android.intent.action.VIEW"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "market://details?id="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v9

    invoke-direct {v7, v8, v9}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v7}, Lcom/scaleasw/powercalc/MainActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_1
    .catch Landroid/content/ActivityNotFoundException; {:try_start_1 .. :try_end_1} :catch_1

    goto/16 :goto_0

    .line 294
    :catch_1
    move-exception v1

    .line 295
    .restart local v1    # "anfe":Landroid/content/ActivityNotFoundException;
    new-instance v7, Landroid/content/Intent;

    const-string v8, "android.intent.action.VIEW"

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "http://play.google.com/store/apps/details?id="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v9

    invoke-direct {v7, v8, v9}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v7}, Lcom/scaleasw/powercalc/MainActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 261
    :pswitch_data_0
    .packed-switch 0x7f0b0010
        :pswitch_2
        :pswitch_3
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method protected onRestoreInstanceState(Landroid/os/Bundle;)V
    .locals 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 141
    invoke-super {p0, p1}, Landroid/app/Activity;->onRestoreInstanceState(Landroid/os/Bundle;)V

    .line 142
    const-string v0, "editor"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/scaleasw/powercalc/Editor;

    iput-object v0, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    .line 143
    iget-object v0, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget-object v1, p0, Lcom/scaleasw/powercalc/MainActivity;->display:Lcom/scaleasw/powercalc/CalcDisplay;

    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->resultView:Landroid/widget/EditText;

    invoke-virtual {v0, p0, v1, v2}, Lcom/scaleasw/powercalc/Editor;->setControls(Landroid/app/Activity;Lcom/scaleasw/powercalc/CalcDisplay;Landroid/widget/EditText;)V

    .line 144
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->updateShiftState()V

    .line 145
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->updateHypState()V

    .line 146
    invoke-direct {p0}, Lcom/scaleasw/powercalc/MainActivity;->updateModeState()V

    .line 147
    iget-object v0, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    invoke-virtual {v0}, Lcom/scaleasw/powercalc/Editor;->updateCursorPosition()V

    .line 148
    return-void
.end method

.method protected onResume()V
    .locals 0

    .prologue
    .line 126
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 127
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->applyScreenOrientation()V

    .line 128
    invoke-virtual {p0}, Lcom/scaleasw/powercalc/MainActivity;->applyAllSettings()V

    .line 129
    return-void
.end method

.method public onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 2
    .param p1, "outState"    # Landroid/os/Bundle;

    .prologue
    .line 134
    invoke-super {p0, p1}, Landroid/app/Activity;->onSaveInstanceState(Landroid/os/Bundle;)V

    .line 135
    const-string v0, "editor"

    iget-object v1, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 136
    return-void
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 5
    .param p1, "v"    # Landroid/view/View;
    .param p2, "event"    # Landroid/view/MotionEvent;

    .prologue
    const/4 v4, 0x0

    .line 1302
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v2

    if-nez v2, :cond_0

    .line 1304
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 1305
    .local v0, "prefs":Landroid/content/SharedPreferences;
    const-string v2, "prefFeedback"

    invoke-interface {v0, v2, v4}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 1306
    const-string v2, "vibrator"

    invoke-virtual {p0, v2}, Lcom/scaleasw/powercalc/MainActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/os/Vibrator;

    .line 1307
    .local v1, "vibrator":Landroid/os/Vibrator;
    const-wide/16 v2, 0x14

    invoke-virtual {v1, v2, v3}, Landroid/os/Vibrator;->vibrate(J)V

    .line 1310
    .end local v0    # "prefs":Landroid/content/SharedPreferences;
    .end local v1    # "vibrator":Landroid/os/Vibrator;
    :cond_0
    return v4
.end method

.method public openViewModeDecimalsDialog()V
    .locals 8

    .prologue
    const/16 v7, 0xb

    .line 1505
    new-array v2, v7, [Ljava/lang/CharSequence;

    .line 1506
    .local v2, "items":[Ljava/lang/CharSequence;
    const/4 v5, 0x1

    new-array v4, v5, [I

    .line 1507
    .local v4, "selectedIndex":[I
    const/4 v5, 0x0

    iget-object v6, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v6, v6, Lcom/scaleasw/powercalc/Editor;->viewDecimals:I

    aput v6, v4, v5

    .line 1509
    const-string v0, "0."

    .line 1510
    .local v0, "dec":Ljava/lang/String;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    if-ge v1, v7, :cond_0

    .line 1511
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "("

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-static {v1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ") "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    aput-object v5, v2, v1

    .line 1512
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "0"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 1510
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 1515
    :cond_0
    new-instance v3, Landroid/app/AlertDialog$Builder;

    invoke-direct {v3, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 1516
    .local v3, "modeDialog":Landroid/app/AlertDialog$Builder;
    const v5, 0x7f080022

    invoke-virtual {p0, v5}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 1517
    iget-object v5, p0, Lcom/scaleasw/powercalc/MainActivity;->editor:Lcom/scaleasw/powercalc/Editor;

    iget v5, v5, Lcom/scaleasw/powercalc/Editor;->viewDecimals:I

    new-instance v6, Lcom/scaleasw/powercalc/MainActivity$6;

    invoke-direct {v6, p0, v4}, Lcom/scaleasw/powercalc/MainActivity$6;-><init>(Lcom/scaleasw/powercalc/MainActivity;[I)V

    invoke-virtual {v3, v2, v5, v6}, Landroid/app/AlertDialog$Builder;->setSingleChoiceItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 1524
    const v5, 0x7f080021

    invoke-virtual {p0, v5}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    new-instance v6, Lcom/scaleasw/powercalc/MainActivity$7;

    invoke-direct {v6, p0, v4}, Lcom/scaleasw/powercalc/MainActivity$7;-><init>(Lcom/scaleasw/powercalc/MainActivity;[I)V

    invoke-virtual {v3, v5, v6}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 1534
    const v5, 0x7f080020

    invoke-virtual {p0, v5}, Lcom/scaleasw/powercalc/MainActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    new-instance v6, Lcom/scaleasw/powercalc/MainActivity$8;

    invoke-direct {v6, p0}, Lcom/scaleasw/powercalc/MainActivity$8;-><init>(Lcom/scaleasw/powercalc/MainActivity;)V

    invoke-virtual {v3, v5, v6}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 1540
    invoke-virtual {v3}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 1542
    return-void
.end method

.method public setFloatLayout()V
    .locals 7

    .prologue
    const/16 v6, 0x8

    const/4 v5, 0x6

    const/4 v4, 0x5

    .line 717
    const/4 v1, 0x0

    .local v1, "y":I
    :goto_0
    if-ge v1, v6, :cond_2

    .line 719
    rem-int/lit8 v2, v1, 0x2

    if-nez v2, :cond_0

    .line 721
    const/4 v0, 0x0

    .local v0, "x":I
    :goto_1
    if-ge v0, v5, :cond_1

    .line 723
    shr-int/lit8 v2, v1, 0x1

    mul-int/lit8 v2, v2, 0x6

    add-int/2addr v2, v0

    packed-switch v2, :pswitch_data_0

    .line 721
    :goto_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 726
    :pswitch_0
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020099

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 729
    :pswitch_1
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02009a

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 732
    :pswitch_2
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02009b

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 735
    :pswitch_3
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02009c

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 738
    :pswitch_4
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02009d

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 741
    :pswitch_5
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02009e

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 744
    :pswitch_6
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02009f

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 747
    :pswitch_7
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200a0

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 750
    :pswitch_8
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200a1

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 753
    :pswitch_9
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200a2

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 756
    :pswitch_a
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200a3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 759
    :pswitch_b
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200a4

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 762
    :pswitch_c
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200a5

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 765
    :pswitch_d
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200a6

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 768
    :pswitch_e
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200a7

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 771
    :pswitch_f
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200a8

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 774
    :pswitch_10
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200a9

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 777
    :pswitch_11
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200aa

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 780
    :pswitch_12
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200ab

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 783
    :pswitch_13
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200ac

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 786
    :pswitch_14
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200ad

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 789
    :pswitch_15
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200ae

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 792
    :pswitch_16
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200af

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 799
    .end local v0    # "x":I
    :cond_0
    const/4 v0, 0x0

    .restart local v0    # "x":I
    :goto_3
    if-ge v0, v5, :cond_1

    .line 801
    shr-int/lit8 v2, v1, 0x1

    mul-int/lit8 v2, v2, 0x6

    add-int/2addr v2, v0

    packed-switch v2, :pswitch_data_1

    .line 799
    :goto_4
    add-int/lit8 v0, v0, 0x1

    goto :goto_3

    .line 804
    :pswitch_17
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020030

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 807
    :pswitch_18
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020031

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 810
    :pswitch_19
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020032

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 813
    :pswitch_1a
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020033

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 816
    :pswitch_1b
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020034

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 819
    :pswitch_1c
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020035

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 822
    :pswitch_1d
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020036

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 825
    :pswitch_1e
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020037

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 828
    :pswitch_1f
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020038

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 831
    :pswitch_20
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020039

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 834
    :pswitch_21
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02003a

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 837
    :pswitch_22
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02003b

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 840
    :pswitch_23
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02003c

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 843
    :pswitch_24
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02003d

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 846
    :pswitch_25
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02003e

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 849
    :pswitch_26
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02003f

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 852
    :pswitch_27
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020040

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 855
    :pswitch_28
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020041

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 858
    :pswitch_29
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020042

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 861
    :pswitch_2a
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020043

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 864
    :pswitch_2b
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020044

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 867
    :pswitch_2c
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020045

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 870
    :pswitch_2d
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020046

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 873
    :pswitch_2e
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020047

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 717
    :cond_1
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_0

    .line 880
    .end local v0    # "x":I
    :cond_2
    const/4 v1, 0x0

    :goto_5
    if-ge v1, v6, :cond_5

    .line 882
    rem-int/lit8 v2, v1, 0x2

    if-nez v2, :cond_3

    .line 884
    const/4 v0, 0x0

    .restart local v0    # "x":I
    :goto_6
    if-ge v0, v4, :cond_4

    .line 886
    shr-int/lit8 v2, v1, 0x1

    mul-int/lit8 v2, v2, 0x5

    add-int/2addr v2, v0

    packed-switch v2, :pswitch_data_2

    .line 884
    :goto_7
    :pswitch_2f
    add-int/lit8 v0, v0, 0x1

    goto :goto_6

    .line 889
    :pswitch_30
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020072

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 892
    :pswitch_31
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020073

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 895
    :pswitch_32
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020074

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 898
    :pswitch_33
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020075

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 901
    :pswitch_34
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020076

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 904
    :pswitch_35
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020077

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 907
    :pswitch_36
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020078

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 910
    :pswitch_37
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020079

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 913
    :pswitch_38
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02007b

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    .line 916
    :pswitch_39
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02007c

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    .line 919
    :pswitch_3a
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02007d

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    .line 922
    :pswitch_3b
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02007e

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    .line 925
    :pswitch_3c
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02007f

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    .line 928
    :pswitch_3d
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020080

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    .line 931
    :pswitch_3e
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020081

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    .line 938
    .end local v0    # "x":I
    :cond_3
    const/4 v0, 0x0

    .restart local v0    # "x":I
    :goto_8
    if-ge v0, v4, :cond_4

    .line 940
    shr-int/lit8 v2, v1, 0x1

    mul-int/lit8 v2, v2, 0x5

    add-int/2addr v2, v0

    packed-switch v2, :pswitch_data_3

    .line 938
    :goto_9
    add-int/lit8 v0, v0, 0x1

    goto :goto_8

    .line 943
    :pswitch_3f
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020004

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 946
    :pswitch_40
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020005

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 949
    :pswitch_41
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020006

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 952
    :pswitch_42
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020007

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 955
    :pswitch_43
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020008

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 958
    :pswitch_44
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020009

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 961
    :pswitch_45
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02000a

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 964
    :pswitch_46
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02000b

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 967
    :pswitch_47
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02000c

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 970
    :pswitch_48
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02000d

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 973
    :pswitch_49
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02000e

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 976
    :pswitch_4a
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02000f

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 979
    :pswitch_4b
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020010

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 982
    :pswitch_4c
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020011

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 985
    :pswitch_4d
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020012

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 988
    :pswitch_4e
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020013

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 991
    :pswitch_4f
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020014

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 994
    :pswitch_50
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020015

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 997
    :pswitch_51
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020016

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1000
    :pswitch_52
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020017

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 880
    :cond_4
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_5

    .line 1006
    .end local v0    # "x":I
    :cond_5
    return-void

    .line 723
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_8
        :pswitch_9
        :pswitch_a
        :pswitch_b
        :pswitch_c
        :pswitch_d
        :pswitch_e
        :pswitch_f
        :pswitch_10
        :pswitch_11
        :pswitch_12
        :pswitch_13
        :pswitch_14
        :pswitch_15
        :pswitch_16
    .end packed-switch

    .line 801
    :pswitch_data_1
    .packed-switch 0x0
        :pswitch_17
        :pswitch_18
        :pswitch_19
        :pswitch_1a
        :pswitch_1b
        :pswitch_1c
        :pswitch_1d
        :pswitch_1e
        :pswitch_1f
        :pswitch_20
        :pswitch_21
        :pswitch_22
        :pswitch_23
        :pswitch_24
        :pswitch_25
        :pswitch_26
        :pswitch_27
        :pswitch_28
        :pswitch_29
        :pswitch_2a
        :pswitch_2b
        :pswitch_2c
        :pswitch_2d
        :pswitch_2e
    .end packed-switch

    .line 886
    :pswitch_data_2
    .packed-switch 0x1
        :pswitch_30
        :pswitch_31
        :pswitch_2f
        :pswitch_32
        :pswitch_33
        :pswitch_34
        :pswitch_35
        :pswitch_36
        :pswitch_37
        :pswitch_2f
        :pswitch_2f
        :pswitch_2f
        :pswitch_38
        :pswitch_39
        :pswitch_3a
        :pswitch_3b
        :pswitch_3c
        :pswitch_3d
        :pswitch_3e
    .end packed-switch

    .line 940
    :pswitch_data_3
    .packed-switch 0x0
        :pswitch_3f
        :pswitch_40
        :pswitch_41
        :pswitch_42
        :pswitch_43
        :pswitch_44
        :pswitch_45
        :pswitch_46
        :pswitch_47
        :pswitch_48
        :pswitch_49
        :pswitch_4a
        :pswitch_4b
        :pswitch_4c
        :pswitch_4d
        :pswitch_4e
        :pswitch_4f
        :pswitch_50
        :pswitch_51
        :pswitch_52
    .end packed-switch
.end method

.method public setKeepScreenOn(Landroid/app/Activity;Z)V
    .locals 2
    .param p1, "activity"    # Landroid/app/Activity;
    .param p2, "keepScreenOn"    # Z

    .prologue
    const/16 v1, 0x80

    .line 240
    if-eqz p2, :cond_0

    invoke-virtual {p1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    .line 242
    :goto_0
    return-void

    .line 241
    :cond_0
    invoke-virtual {p1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V

    goto :goto_0
.end method

.method public setRadixLayout()V
    .locals 8

    .prologue
    const/16 v7, 0x8

    const/4 v6, 0x6

    const/4 v5, 0x5

    const v4, 0x7f020082

    .line 1010
    const/4 v1, 0x0

    .local v1, "y":I
    :goto_0
    if-ge v1, v7, :cond_2

    .line 1012
    rem-int/lit8 v2, v1, 0x2

    if-nez v2, :cond_0

    .line 1014
    const/4 v0, 0x0

    .local v0, "x":I
    :goto_1
    if-ge v0, v6, :cond_1

    .line 1016
    shr-int/lit8 v2, v1, 0x1

    mul-int/lit8 v2, v2, 0x6

    add-int/2addr v2, v0

    packed-switch v2, :pswitch_data_0

    .line 1014
    :goto_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 1019
    :pswitch_0
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020099

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 1022
    :pswitch_1
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02005f

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 1025
    :pswitch_2
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020060

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 1028
    :pswitch_3
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020061

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 1031
    :pswitch_4
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020062

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 1034
    :pswitch_5
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02009e

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 1037
    :pswitch_6
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020063

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 1040
    :pswitch_7
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020064

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    .line 1043
    :pswitch_8
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020065

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1046
    :pswitch_9
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020066

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1049
    :pswitch_a
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020067

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1052
    :pswitch_b
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020068

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1055
    :pswitch_c
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020069

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1058
    :pswitch_d
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02006a

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1061
    :pswitch_e
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02006b

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1064
    :pswitch_f
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02006c

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1067
    :pswitch_10
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02006d

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1070
    :pswitch_11
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02006e

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1073
    :pswitch_12
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02006f

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1076
    :pswitch_13
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020070

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1079
    :pswitch_14
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020071

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1082
    :pswitch_15
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200ae

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1085
    :pswitch_16
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesTopShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f0200af

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_2

    .line 1092
    .end local v0    # "x":I
    :cond_0
    const/4 v0, 0x0

    .restart local v0    # "x":I
    :goto_3
    if-ge v0, v6, :cond_1

    .line 1094
    shr-int/lit8 v2, v1, 0x1

    mul-int/lit8 v2, v2, 0x6

    add-int/2addr v2, v0

    packed-switch v2, :pswitch_data_1

    .line 1092
    :goto_4
    add-int/lit8 v0, v0, 0x1

    goto :goto_3

    .line 1097
    :pswitch_17
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020030

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 1100
    :pswitch_18
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020031

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 1103
    :pswitch_19
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020032

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 1106
    :pswitch_1a
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020033

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 1109
    :pswitch_1b
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020034

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 1112
    :pswitch_1c
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020035

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 1115
    :pswitch_1d
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020050

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 1118
    :pswitch_1e
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020051

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_4

    .line 1121
    :pswitch_1f
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020052

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1124
    :pswitch_20
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020053

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1127
    :pswitch_21
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020054

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1130
    :pswitch_22
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020055

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1133
    :pswitch_23
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020056

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1136
    :pswitch_24
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020057

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1139
    :pswitch_25
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020058

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1142
    :pswitch_26
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020059

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1145
    :pswitch_27
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02005a

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1148
    :pswitch_28
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02005b

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1151
    :pswitch_29
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02005c

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1154
    :pswitch_2a
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02005d

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1157
    :pswitch_2b
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020044

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1160
    :pswitch_2c
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020045

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1163
    :pswitch_2d
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020046

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1166
    :pswitch_2e
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsTop:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020047

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_4

    .line 1010
    :cond_1
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_0

    .line 1173
    .end local v0    # "x":I
    :cond_2
    const/4 v1, 0x0

    :goto_5
    if-ge v1, v7, :cond_5

    .line 1175
    rem-int/lit8 v2, v1, 0x2

    if-nez v2, :cond_3

    .line 1177
    const/4 v0, 0x0

    .restart local v0    # "x":I
    :goto_6
    if-ge v0, v5, :cond_4

    .line 1179
    shr-int/lit8 v2, v1, 0x1

    mul-int/lit8 v2, v2, 0x5

    add-int/2addr v2, v0

    packed-switch v2, :pswitch_data_2

    .line 1177
    :goto_7
    :pswitch_2f
    add-int/lit8 v0, v0, 0x1

    goto :goto_6

    .line 1182
    :pswitch_30
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 1185
    :pswitch_31
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 1188
    :pswitch_32
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 1191
    :pswitch_33
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 1194
    :pswitch_34
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 1197
    :pswitch_35
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020078

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 1200
    :pswitch_36
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020079

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 1203
    :pswitch_37
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02007b

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 1206
    :pswitch_38
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02007c

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_7

    .line 1209
    :pswitch_39
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    .line 1212
    :pswitch_3a
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    .line 1215
    :pswitch_3b
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    invoke-virtual {v2, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    .line 1218
    :pswitch_3c
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02005e

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    .line 1221
    :pswitch_3d
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->imagesBottomShift:[[Landroid/widget/ImageView;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020081

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    .line 1228
    .end local v0    # "x":I
    :cond_3
    const/4 v0, 0x0

    .restart local v0    # "x":I
    :goto_8
    if-ge v0, v5, :cond_4

    .line 1230
    shr-int/lit8 v2, v1, 0x1

    mul-int/lit8 v2, v2, 0x5

    add-int/2addr v2, v0

    packed-switch v2, :pswitch_data_3

    .line 1228
    :goto_9
    add-int/lit8 v0, v0, 0x1

    goto :goto_8

    .line 1233
    :pswitch_3e
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020004

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 1236
    :pswitch_3f
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020005

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 1239
    :pswitch_40
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020006

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 1242
    :pswitch_41
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020007

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 1245
    :pswitch_42
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020008

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 1248
    :pswitch_43
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020009

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 1251
    :pswitch_44
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02000a

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 1254
    :pswitch_45
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02000b

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto :goto_9

    .line 1257
    :pswitch_46
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02000c

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1260
    :pswitch_47
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02000d

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1263
    :pswitch_48
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02000e

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1266
    :pswitch_49
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02000f

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1269
    :pswitch_4a
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020010

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1272
    :pswitch_4b
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020011

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1275
    :pswitch_4c
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020012

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1278
    :pswitch_4d
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020013

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1281
    :pswitch_4e
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02004e

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1284
    :pswitch_4f
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020015

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1287
    :pswitch_50
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f02004f

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1290
    :pswitch_51
    iget-object v2, p0, Lcom/scaleasw/powercalc/MainActivity;->buttonsBottom:[[Landroid/widget/ImageButton;

    aget-object v2, v2, v0

    shr-int/lit8 v3, v1, 0x1

    aget-object v2, v2, v3

    const v3, 0x7f020017

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setImageResource(I)V

    goto/16 :goto_9

    .line 1173
    :cond_4
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_5

    .line 1296
    .end local v0    # "x":I
    :cond_5
    return-void

    .line 1016
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_8
        :pswitch_9
        :pswitch_a
        :pswitch_b
        :pswitch_c
        :pswitch_d
        :pswitch_e
        :pswitch_f
        :pswitch_10
        :pswitch_11
        :pswitch_12
        :pswitch_13
        :pswitch_14
        :pswitch_15
        :pswitch_16
    .end packed-switch

    .line 1094
    :pswitch_data_1
    .packed-switch 0x0
        :pswitch_17
        :pswitch_18
        :pswitch_19
        :pswitch_1a
        :pswitch_1b
        :pswitch_1c
        :pswitch_1d
        :pswitch_1e
        :pswitch_1f
        :pswitch_20
        :pswitch_21
        :pswitch_22
        :pswitch_23
        :pswitch_24
        :pswitch_25
        :pswitch_26
        :pswitch_27
        :pswitch_28
        :pswitch_29
        :pswitch_2a
        :pswitch_2b
        :pswitch_2c
        :pswitch_2d
        :pswitch_2e
    .end packed-switch

    .line 1179
    :pswitch_data_2
    .packed-switch 0x1
        :pswitch_30
        :pswitch_31
        :pswitch_2f
        :pswitch_2f
        :pswitch_32
        :pswitch_33
        :pswitch_34
        :pswitch_35
        :pswitch_36
        :pswitch_2f
        :pswitch_2f
        :pswitch_2f
        :pswitch_37
        :pswitch_38
        :pswitch_39
        :pswitch_3a
        :pswitch_3b
        :pswitch_3c
        :pswitch_3d
    .end packed-switch

    .line 1230
    :pswitch_data_3
    .packed-switch 0x0
        :pswitch_3e
        :pswitch_3f
        :pswitch_40
        :pswitch_41
        :pswitch_42
        :pswitch_43
        :pswitch_44
        :pswitch_45
        :pswitch_46
        :pswitch_47
        :pswitch_48
        :pswitch_49
        :pswitch_4a
        :pswitch_4b
        :pswitch_4c
        :pswitch_4d
        :pswitch_4e
        :pswitch_4f
        :pswitch_50
        :pswitch_51
    .end packed-switch
.end method
