package com.ikea.kompis.view;

import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Rect;
import android.os.Bundle;
import android.os.Handler;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import android.text.Html;
import android.text.Spannable;
import android.text.Spannable.Factory;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.BaseSavedState;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.animation.AnimationUtils;
import android.view.animation.RotateAnimation;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.TextView;
import com.google.gson.JsonSyntaxException;
import com.ikea.kompis.IkeaApplication;
import com.ikea.kompis.products.ProductDetailsActivity;
import com.ikea.kompis.products.ProductDetailsBaseFragment;
import com.ikea.kompis.products.RetailItemCommAttachmentDoc;
import com.ikea.kompis.products.event.OpenPDFEvent;
import com.ikea.kompis.products.event.OptionChangedEvent;
import com.ikea.kompis.products.event.SPRCollectInfoUpdateEvent;
import com.ikea.kompis.util.CustomPicker;
import com.ikea.kompis.util.CustomPicker.PickerModeEnum;
import com.ikea.kompis.util.CustomPicker.SelectionListener;
import com.ikea.kompis.util.PackageInfoPopUp;
import com.ikea.kompis.util.PackageInfoPopUpTablet;
import com.ikea.kompis.util.TempObjectCache;
import com.ikea.kompis.util.UiUtil;
import com.ikea.shared.AppConfigData;
import com.ikea.shared.AppConfigManager;
import com.ikea.shared.analytics.UsageTracker;
import com.ikea.shared.config.model.Country;
import com.ikea.shared.products.model.DisplayPriceInfo;
import com.ikea.shared.products.model.GPRCommSelectionCriteria;
import com.ikea.shared.products.model.GPRCommSelectionCriteriaList;
import com.ikea.shared.products.model.GPRCommSelectionCriteriaValue;
import com.ikea.shared.products.model.GPRCommSelectionCriteriaValueList;
import com.ikea.shared.products.model.GPRUISelectionCriteriaValue;
import com.ikea.shared.products.model.GPRUISelectionValue;
import com.ikea.shared.products.model.ItemRef;
import com.ikea.shared.products.model.ItemRefList;
import com.ikea.shared.products.model.RetailItemCareInstruction;
import com.ikea.shared.products.model.RetailItemCareInstructionList;
import com.ikea.shared.products.model.RetailItemCareInstructionText;
import com.ikea.shared.products.model.RetailItemCareInstructionTextList;
import com.ikea.shared.products.model.RetailItemCommAttachment;
import com.ikea.shared.products.model.RetailItemCommChild;
import com.ikea.shared.products.model.RetailItemCommChildList;
import com.ikea.shared.products.model.RetailItemCommMeasure;
import com.ikea.shared.products.model.RetailItemCommMeasureList;
import com.ikea.shared.products.model.RetailItemCommPackageMeasure;
import com.ikea.shared.products.model.RetailItemCommPackageMeasureList;
import com.ikea.shared.products.model.RetailItemCommunication;
import com.ikea.shared.products.model.RetailItemCustomerBenefit;
import com.ikea.shared.products.model.RetailItemCustomerBenefitList;
import com.ikea.shared.products.model.RetailItemCustomerEnvironment;
import com.ikea.shared.products.model.RetailItemCustomerEnvironmentList;
import com.ikea.shared.products.model.RetailItemCustomerMaterial;
import com.ikea.shared.products.model.RetailItemCustomerMaterialList;
import com.ikea.shared.products.model.RetailItemEnvironmentText;
import com.ikea.shared.products.model.RetailItemGoodToKnow;
import com.ikea.shared.products.model.RetailItemGoodToKnowList;
import com.ikea.shared.products.model.RetailItemLongBenefit;
import com.ikea.shared.products.model.RetailItemLongBenefitList;
import com.ikea.shared.products.model.RetailItemPartMaterial;
import com.ikea.shared.products.model.RetailItemPartMaterialList;
import com.ikea.shared.products.model.RetailItemTechnicalInformation;
import com.ikea.shared.products.model.RetailItemTechnicalInformationGroup;
import com.ikea.shared.products.model.RetailItemTechnicalInformationGroupList;
import com.ikea.shared.products.model.RetailItemTechnicalInformationList;
import com.ikea.shared.util.Constant;
import com.ikea.shared.util.L;
import com.squareup.otto.Bus;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;

public class FunkyChunkLayout extends LinearLayout
{
  private static final String ABOUT_PRODUCT = "ABOUT_PRODUCT";
  private static final int ANIMATION_DURATION = 500;
  private static final String CHUNK_DocAndDown = "CHUNK_DocAndDown";
  private static final String CHUNK_Environment = "CHUNK_Environment";
  private static final String CHUNK_KEY_FEATURE = "CHUNK_KEY_FEATURE";
  private static final String CHUNK_TECHNICAL_INFO = "CHUNK_TECHNICAL_INFO";
  private static final String CHUNK_WhatInclude = "CHUNK_WhatInclude";
  private static final String CUSTOM_PRODUCT = "CUSTOM_PRODUCT";
  private static final String KEY_PACKAGE_INFO_LIST_STATE = "KEY_PACKAGE_INFO_LIST_STATE";
  private static final String OPTIONS_PICKER = "OPTIONS_PICKER";
  private static final String OPTIONS_PICKER_INDEX = "OPTIONS_PICKER_INDEX";
  private static final String OPTIONS_PICKER_MODE = "OPTIONS_PICKER_MODE";
  private static final String PACKAGE_POP_UP = "PACKAGE_POP_UP";
  private static final String TOP_OPTIONS = "TOP_OPTIONS";
  private boolean isTitleDisclaimer = false;
  private View mAboutProductIcon;
  private final Bus mBus = IkeaApplication.mBus;
  private final RotateAnimation mCloseRotateAnimation;
  private ScrollViewWithScrollEvent mContentLayout;
  private Context mContext;
  private View mDocAndDown;
  private View mDocAndDownIcon;
  private LinearLayout mDocAndDownInfo;
  private View mEnvironment;
  private View mEnvironmentIcon;
  private LinearLayout mEnvironmentInfo;
  private boolean mFromSL;
  private View mGoodToKnow;
  private LinearLayout mGoodToKnowInfo;
  private Handler mHandler;
  private View mKeyFeature;
  private View mKeyFeatureIcon;
  private LinearLayout mKeyFeatureInfo;
  private final View.OnClickListener mOnClickListener = new View.OnClickListener()
  {
    public void onClick(View paramAnonymousView)
    {
      switch (paramAnonymousView.getId())
      {
      case 2131624141:
      case 2131624143:
      case 2131624145:
      case 2131624147:
      case 2131624149:
      case 2131624151:
      default:
        L.I("Click id default : " + paramAnonymousView.getId());
        L.I("Click id Tag : " + paramAnonymousView.getTag());
        if (paramAnonymousView.getId() >= ProductDetailsBaseFragment.DOWNLOAD_LINK_UNIQUE_ID)
          if ((paramAnonymousView.getTag() instanceof RetailItemCommAttachment))
          {
            localRetailItemCommAttachment = (RetailItemCommAttachment)paramAnonymousView.getTag();
            if ((paramAnonymousView instanceof TextView))
              UsageTracker.i().fileOpen(FunkyChunkLayout.this.mContext, localRetailItemCommAttachment.getAttachmentType(), localRetailItemCommAttachment.getAttachmentUrl());
            FunkyChunkLayout.this.mBus.post(new OpenPDFEvent(localRetailItemCommAttachment.getAttachmentUrl()));
          }
        break;
      case 2131624140:
      case 2131624146:
      case 2131624150:
      case 2131624142:
      case 2131624144:
      case 2131624152:
      case 2131624148:
      }
      while (paramAnonymousView.getId() < ProductDetailsBaseFragment.OPTIONS_UNIQUE_ID)
      {
        RetailItemCommAttachment localRetailItemCommAttachment;
        return;
        FunkyChunkLayout.this.toggleCustomView();
        return;
        FunkyChunkLayout.this.toggleAboutView();
        return;
        FunkyChunkLayout.this.toggleEnvironmentView();
        return;
        FunkyChunkLayout.this.toggleKeyFeatureView();
        return;
        FunkyChunkLayout.this.toggleWhatIncludeView();
        return;
        FunkyChunkLayout.this.toggleDocAndDownView();
        return;
        FunkyChunkLayout.this.toggleTechnicalInfoView();
        return;
      }
      if (FunkyChunkLayout.this.mFromSL)
      {
        if (UiUtil.isSyncSLWorking(FunkyChunkLayout.this.mContext))
        {
          FunkyChunkLayout.this.showOptionPicker((String)paramAnonymousView.getTag(), -1);
          return;
        }
        UiUtil.showCustomToast(FunkyChunkLayout.this.mContext.getString(2131165684), FunkyChunkLayout.this.mContext);
        return;
      }
      FunkyChunkLayout.this.showOptionPicker((String)paramAnonymousView.getTag(), -1);
    }
  };
  private final RotateAnimation mOpenRotateAnimation;
  private String mOptionMode = "";
  private CustomPicker mOptionPicker;
  private LinearLayout mOptionTesting;
  private String mOptionTitle = "";
  private View mOptions;
  private GPRUISelectionCriteriaValue[] mOptionsGPR = null;
  private View mOptionsIcon;
  private String[] mOptionsValues = null;
  private PackageInfoPopUp mPackagePopUp;
  private PackageInfoPopUpTablet mPackagePopUpTablet;
  private int mPrevConsumerNumber = 1;
  private RetailItemCommunication mRetailItemCommunication;
  private View mTechnical;
  private View mTechnicalIcon;
  private LinearLayout mTechnicalInfo;
  private GPRUISelectionValue[] mTopSelectionCriteriaValue = null;
  private TextView mWarning;
  private View mWhatInclude;
  private View mWhatIncludeIcon;
  private LinearLayout mWhatIncludeInfo;
  private boolean needDocAndDown = false;
  private boolean needEnvironment = false;
  private boolean needGoodToKnow = false;
  private boolean needKeyFeature = false;
  private boolean needOptions = true;
  private boolean needTechnical = false;
  private boolean needWhatInclude = false;
  private String warning = "";

  public FunkyChunkLayout(Context paramContext)
  {
    this(paramContext, null, 0);
    this.mContext = paramContext;
  }

  public FunkyChunkLayout(Context paramContext, AttributeSet paramAttributeSet)
  {
    this(paramContext, paramAttributeSet, 0);
    this.mContext = paramContext;
  }

  public FunkyChunkLayout(Context paramContext, AttributeSet paramAttributeSet, int paramInt)
  {
    super(paramContext, paramAttributeSet, paramInt);
    this.mContext = paramContext;
    this.mOpenRotateAnimation = ((RotateAnimation)AnimationUtils.loadAnimation(paramContext, 2130968579));
    this.mCloseRotateAnimation = ((RotateAnimation)AnimationUtils.loadAnimation(paramContext, 2130968578));
    this.mHandler = new Handler();
  }

  // ERROR //
  private ItemRef getCurrentSettingItemRef(GPRUISelectionCriteriaValue paramGPRUISelectionCriteriaValue, List<GPRCommSelectionCriteria> paramList, GPRUISelectionValue[] paramArrayOfGPRUISelectionValue, String paramString)
  {
    // Byte code:
    //   0: aload_1
    //   1: invokevirtual 252	com/ikea/shared/products/model/GPRUISelectionCriteriaValue:getmReletedArticleNumbers	()Ljava/util/List;
    //   4: astore 5
    //   6: aload 5
    //   8: invokeinterface 258 1 0
    //   13: istore 6
    //   15: aconst_null
    //   16: astore 7
    //   18: iload 6
    //   20: ifne +16 -> 36
    //   23: aload 5
    //   25: iconst_0
    //   26: invokeinterface 262 2 0
    //   31: checkcast 264	com/ikea/shared/products/model/ItemRef
    //   34: astore 7
    //   36: new 266	java/util/ArrayList
    //   39: dup
    //   40: invokespecial 267	java/util/ArrayList:<init>	()V
    //   43: astore 8
    //   45: aload_2
    //   46: invokeinterface 258 1 0
    //   51: ifne +278 -> 329
    //   54: aload_2
    //   55: invokeinterface 271 1 0
    //   60: astore 9
    //   62: aload 9
    //   64: invokeinterface 276 1 0
    //   69: ifeq +260 -> 329
    //   72: aload 9
    //   74: invokeinterface 280 1 0
    //   79: checkcast 282	com/ikea/shared/products/model/GPRCommSelectionCriteria
    //   82: astore 10
    //   84: aload 10
    //   86: invokevirtual 286	com/ikea/shared/products/model/GPRCommSelectionCriteria:getSortNo	()Ljava/lang/String;
    //   89: astore 11
    //   91: aload 11
    //   93: ifnull -31 -> 62
    //   96: aload 11
    //   98: invokevirtual 289	java/lang/String:isEmpty	()Z
    //   101: ifne -39 -> 62
    //   104: aload 11
    //   106: invokestatic 295	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   109: istore 13
    //   111: aload 4
    //   113: invokestatic 295	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   116: iload 13
    //   118: if_icmpeq -56 -> 62
    //   121: aload 10
    //   123: invokevirtual 299	com/ikea/shared/products/model/GPRCommSelectionCriteria:getGPRCommSelectionCriteriaValueList	()Lcom/ikea/shared/products/model/GPRCommSelectionCriteriaValueList;
    //   126: invokevirtual 303	com/ikea/shared/products/model/GPRCommSelectionCriteriaValueList:getGPRCommSelectionCriteriaValueList	()Ljava/util/List;
    //   129: astore 14
    //   131: iconst_0
    //   132: istore 15
    //   134: iload 15
    //   136: aload 14
    //   138: invokeinterface 307 1 0
    //   143: if_icmpge +123 -> 266
    //   146: aload_0
    //   147: aload 11
    //   149: invokespecial 310	com/ikea/kompis/view/FunkyChunkLayout:getTmpIndex	(Ljava/lang/String;)I
    //   152: istore 20
    //   154: iload 20
    //   156: iflt +200 -> 356
    //   159: aload_3
    //   160: iload 20
    //   162: aaload
    //   163: ifnull +193 -> 356
    //   166: aload_3
    //   167: iload 20
    //   169: aaload
    //   170: invokevirtual 315	com/ikea/shared/products/model/GPRUISelectionValue:getmSelectionValue	()Ljava/lang/String;
    //   173: aload 14
    //   175: iload 15
    //   177: invokeinterface 262 2 0
    //   182: checkcast 317	com/ikea/shared/products/model/GPRCommSelectionCriteriaValue
    //   185: invokevirtual 320	com/ikea/shared/products/model/GPRCommSelectionCriteriaValue:getSelectionCriteriaValue	()Ljava/lang/String;
    //   188: invokevirtual 324	java/lang/String:equalsIgnoreCase	(Ljava/lang/String;)Z
    //   191: ifeq +165 -> 356
    //   194: aload 14
    //   196: iload 15
    //   198: invokeinterface 262 2 0
    //   203: checkcast 317	com/ikea/shared/products/model/GPRCommSelectionCriteriaValue
    //   206: invokevirtual 328	com/ikea/shared/products/model/GPRCommSelectionCriteriaValue:getItemRefList	()Lcom/ikea/shared/products/model/ItemRefList;
    //   209: invokevirtual 332	com/ikea/shared/products/model/ItemRefList:getItemRefList	()Ljava/util/List;
    //   212: invokeinterface 271 1 0
    //   217: astore 21
    //   219: aload 21
    //   221: invokeinterface 276 1 0
    //   226: ifeq +40 -> 266
    //   229: aload 21
    //   231: invokeinterface 280 1 0
    //   236: checkcast 264	com/ikea/shared/products/model/ItemRef
    //   239: astore 22
    //   241: aload 5
    //   243: aload 22
    //   245: invokeinterface 336 2 0
    //   250: ifeq -31 -> 219
    //   253: aload 8
    //   255: aload 22
    //   257: invokeinterface 339 2 0
    //   262: pop
    //   263: goto -44 -> 219
    //   266: new 266	java/util/ArrayList
    //   269: dup
    //   270: invokespecial 267	java/util/ArrayList:<init>	()V
    //   273: astore 16
    //   275: aload 8
    //   277: invokeinterface 271 1 0
    //   282: astore 18
    //   284: aload 18
    //   286: invokeinterface 276 1 0
    //   291: ifeq +24 -> 315
    //   294: aload 16
    //   296: aload 18
    //   298: invokeinterface 280 1 0
    //   303: checkcast 264	com/ikea/shared/products/model/ItemRef
    //   306: invokeinterface 339 2 0
    //   311: pop
    //   312: goto -28 -> 284
    //   315: aload 8
    //   317: invokeinterface 342 1 0
    //   322: aload 16
    //   324: astore 5
    //   326: goto -264 -> 62
    //   329: aload 5
    //   331: invokeinterface 258 1 0
    //   336: ifne +17 -> 353
    //   339: aload 5
    //   341: iconst_0
    //   342: invokeinterface 262 2 0
    //   347: checkcast 264	com/ikea/shared/products/model/ItemRef
    //   350: areturn
    //   351: astore 12
    //   353: aload 7
    //   355: areturn
    //   356: iinc 15 1
    //   359: goto -225 -> 134
    //   362: astore 17
    //   364: aload 7
    //   366: areturn
    //
    // Exception table:
    //   from	to	target	type
    //   104	131	351	java/lang/NumberFormatException
    //   134	154	351	java/lang/NumberFormatException
    //   159	219	351	java/lang/NumberFormatException
    //   219	263	351	java/lang/NumberFormatException
    //   266	275	351	java/lang/NumberFormatException
    //   275	284	362	java/lang/NumberFormatException
    //   284	312	362	java/lang/NumberFormatException
    //   315	322	362	java/lang/NumberFormatException
  }

  private int getTmpIndex(String paramString)
  {
    for (int i = 0; i < this.mTopSelectionCriteriaValue.length; i++)
      if ((this.mTopSelectionCriteriaValue[i] != null) && (paramString.equalsIgnoreCase(this.mTopSelectionCriteriaValue[i].getSortNumber())))
        return i;
    return -1;
  }

  private boolean hasSupportedItemNumber(List<GPRCommSelectionCriteria> paramList, GPRUISelectionValue[] paramArrayOfGPRUISelectionValue, String paramString, List<ItemRef> paramList1)
  {
    if ((paramList != null) && (!paramList.isEmpty()))
    {
      Iterator localIterator1 = paramList.iterator();
      while (localIterator1.hasNext())
      {
        GPRCommSelectionCriteria localGPRCommSelectionCriteria = (GPRCommSelectionCriteria)localIterator1.next();
        String str = localGPRCommSelectionCriteria.getSortNo();
        if ((str != null) && (!str.isEmpty()))
          try
          {
            int i = Integer.parseInt(str);
            int j = Integer.parseInt(paramString);
            if ((i >= 0) && (i == j - 1))
            {
              List localList = localGPRCommSelectionCriteria.getGPRCommSelectionCriteriaValueList().getGPRCommSelectionCriteriaValueList();
              for (int k = 0; k < localList.size(); k++)
              {
                int m = getTmpIndex(str);
                if ((m >= 0) && (paramArrayOfGPRUISelectionValue[m] != null) && (paramArrayOfGPRUISelectionValue[m].getmSelectionValue().equalsIgnoreCase(((GPRCommSelectionCriteriaValue)localList.get(k)).getSelectionCriteriaValue())))
                {
                  Iterator localIterator2 = ((GPRCommSelectionCriteriaValue)localList.get(k)).getItemRefList().getItemRefList().iterator();
                  boolean bool;
                  do
                  {
                    if (!localIterator2.hasNext())
                      break;
                    bool = paramList1.contains((ItemRef)localIterator2.next());
                  }
                  while (!bool);
                  return true;
                }
              }
            }
          }
          catch (NumberFormatException localNumberFormatException)
          {
            return false;
          }
      }
    }
    return false;
  }

  private void iniOptionPickerListData(String paramString)
  {
    if (this.mRetailItemCommunication != null)
    {
      GPRCommSelectionCriteriaList localGPRCommSelectionCriteriaList = this.mRetailItemCommunication.getGPRCommSelectionCriteriaList();
      if (localGPRCommSelectionCriteriaList != null)
      {
        List localList1 = localGPRCommSelectionCriteriaList.getGPRCommSelectionCriteria();
        if ((localList1 != null) && (!localList1.isEmpty()))
        {
          Iterator localIterator = localList1.iterator();
          while (localIterator.hasNext())
          {
            GPRCommSelectionCriteria localGPRCommSelectionCriteria = (GPRCommSelectionCriteria)localIterator.next();
            if (paramString.equalsIgnoreCase(localGPRCommSelectionCriteria.getSelectionCriteriaCode()))
            {
              this.mOptionTitle = localGPRCommSelectionCriteria.getSelectionCriteriaName();
              List localList2 = localGPRCommSelectionCriteria.getGPRCommSelectionCriteriaValueList().getGPRCommSelectionCriteriaValueList();
              this.mOptionsValues = new String[localList2.size()];
              this.mOptionsGPR = new GPRUISelectionCriteriaValue[localList2.size()];
              String str1 = localGPRCommSelectionCriteria.getSortNo();
              int i = 0;
              if (str1 != null)
              {
                GPRUISelectionValue localGPRUISelectionValue = this.mTopSelectionCriteriaValue[0];
                i = 0;
                if (localGPRUISelectionValue != null)
                {
                  String str2 = this.mTopSelectionCriteriaValue[0].getSortNumber();
                  i = 0;
                  if (str2 != null)
                  {
                    boolean bool2 = str1.equals(this.mTopSelectionCriteriaValue[0].getSortNumber());
                    i = 0;
                    if (!bool2)
                      i = 1;
                  }
                }
              }
              int j = 0;
              label206: List localList3;
              if (j < localList2.size())
              {
                localList3 = ((GPRCommSelectionCriteriaValue)localList2.get(j)).getItemRefList().getItemRefList();
                if (i == 0)
                  break label319;
                boolean bool1 = hasSupportedItemNumber(localList1, this.mTopSelectionCriteriaValue, str1, localList3);
                this.mOptionsGPR[j] = new GPRUISelectionCriteriaValue(((GPRCommSelectionCriteriaValue)localList2.get(j)).getSelectionCriteriaValue(), bool1, localList3);
              }
              while (true)
              {
                this.mOptionsValues[j] = ((GPRCommSelectionCriteriaValue)localList2.get(j)).getSelectionCriteriaValue();
                j++;
                break label206;
                break;
                label319: this.mOptionsGPR[j] = new GPRUISelectionCriteriaValue(((GPRCommSelectionCriteriaValue)localList2.get(j)).getSelectionCriteriaValue(), true, localList3);
              }
            }
          }
        }
      }
    }
  }

  // ERROR //
  private void initDocAndDown(RetailItemCommunication paramRetailItemCommunication)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 382	com/ikea/kompis/view/FunkyChunkLayout:mDocAndDownInfo	Landroid/widget/LinearLayout;
    //   4: invokevirtual 385	android/widget/LinearLayout:removeAllViews	()V
    //   7: aload_0
    //   8: getfield 387	com/ikea/kompis/view/FunkyChunkLayout:mDocAndDown	Landroid/view/View;
    //   11: bipush 8
    //   13: invokevirtual 393	android/view/View:setVisibility	(I)V
    //   16: iconst_0
    //   17: istore_3
    //   18: ldc 127
    //   20: astore 4
    //   22: new 395	java/util/LinkedList
    //   25: dup
    //   26: invokespecial 396	java/util/LinkedList:<init>	()V
    //   29: astore 5
    //   31: aload_1
    //   32: ifnull +336 -> 368
    //   35: aload_1
    //   36: invokevirtual 400	com/ikea/shared/products/model/RetailItemCommunication:getRetailItemCommAttachmentList	()Lcom/ikea/shared/products/model/RetailItemCommAttachmentList;
    //   39: astore 35
    //   41: iconst_0
    //   42: istore_3
    //   43: aload 35
    //   45: ifnull +323 -> 368
    //   48: aload_1
    //   49: invokevirtual 400	com/ikea/shared/products/model/RetailItemCommunication:getRetailItemCommAttachmentList	()Lcom/ikea/shared/products/model/RetailItemCommAttachmentList;
    //   52: invokevirtual 405	com/ikea/shared/products/model/RetailItemCommAttachmentList:getRetailItemCommAttachment	()Ljava/util/List;
    //   55: astore 36
    //   57: iconst_0
    //   58: istore_3
    //   59: aload 36
    //   61: ifnull +307 -> 368
    //   64: aload 36
    //   66: invokeinterface 258 1 0
    //   71: ifne +297 -> 368
    //   74: iconst_0
    //   75: istore 37
    //   77: iload 37
    //   79: aload 36
    //   81: invokeinterface 307 1 0
    //   86: if_icmpge +282 -> 368
    //   89: ldc 127
    //   91: astore 38
    //   93: new 407	java/lang/StringBuilder
    //   96: dup
    //   97: invokespecial 408	java/lang/StringBuilder:<init>	()V
    //   100: ldc_w 410
    //   103: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   106: astore 43
    //   108: aload_0
    //   109: getfield 107	com/ikea/kompis/view/FunkyChunkLayout:mContext	Landroid/content/Context;
    //   112: astore 44
    //   114: iconst_1
    //   115: anewarray 416	java/lang/Object
    //   118: astore 45
    //   120: aload 45
    //   122: iconst_0
    //   123: aload_0
    //   124: getfield 208	com/ikea/kompis/view/FunkyChunkLayout:mRetailItemCommunication	Lcom/ikea/shared/products/model/RetailItemCommunication;
    //   127: invokevirtual 419	com/ikea/shared/products/model/RetailItemCommunication:getItemNo	()Ljava/lang/String;
    //   130: invokestatic 425	com/ikea/kompis/util/UiUtil:getFormatedArtical	(Ljava/lang/String;)Ljava/lang/String;
    //   133: aastore
    //   134: aload 43
    //   136: aload 44
    //   138: ldc_w 426
    //   141: aload 45
    //   143: invokevirtual 432	android/content/Context:getString	(I[Ljava/lang/Object;)Ljava/lang/String;
    //   146: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   149: ldc_w 434
    //   152: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   155: invokevirtual 437	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   158: astore 46
    //   160: aload 46
    //   162: astore 38
    //   164: new 439	com/ikea/kompis/products/RetailItemCommAttachmentDoc
    //   167: dup
    //   168: aload 38
    //   170: aload 36
    //   172: iload 37
    //   174: invokeinterface 262 2 0
    //   179: checkcast 441	com/ikea/shared/products/model/RetailItemCommAttachment
    //   182: invokespecial 444	com/ikea/kompis/products/RetailItemCommAttachmentDoc:<init>	(Ljava/lang/String;Lcom/ikea/shared/products/model/RetailItemCommAttachment;)V
    //   185: astore 40
    //   187: aload 5
    //   189: aload 40
    //   191: invokeinterface 339 2 0
    //   196: pop
    //   197: iinc 37 1
    //   200: goto -123 -> 77
    //   203: astore 42
    //   205: aload 42
    //   207: invokevirtual 447	java/util/UnknownFormatConversionException:printStackTrace	()V
    //   210: goto -46 -> 164
    //   213: astore 19
    //   215: new 407	java/lang/StringBuilder
    //   218: dup
    //   219: invokespecial 408	java/lang/StringBuilder:<init>	()V
    //   222: ldc_w 449
    //   225: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   228: aload 19
    //   230: invokevirtual 452	java/lang/Exception:getMessage	()Ljava/lang/String;
    //   233: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   236: invokevirtual 437	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   239: invokestatic 457	com/ikea/shared/util/L:E	(Ljava/lang/String;)V
    //   242: aload 19
    //   244: invokevirtual 458	java/lang/Exception:printStackTrace	()V
    //   247: iload_3
    //   248: ifeq +109 -> 357
    //   251: aload_0
    //   252: getfield 107	com/ikea/kompis/view/FunkyChunkLayout:mContext	Landroid/content/Context;
    //   255: invokestatic 464	android/view/LayoutInflater:from	(Landroid/content/Context;)Landroid/view/LayoutInflater;
    //   258: ldc_w 465
    //   261: aload_0
    //   262: getfield 382	com/ikea/kompis/view/FunkyChunkLayout:mDocAndDownInfo	Landroid/widget/LinearLayout;
    //   265: iconst_0
    //   266: invokevirtual 469	android/view/LayoutInflater:inflate	(ILandroid/view/ViewGroup;Z)Landroid/view/View;
    //   269: astore 20
    //   271: aload 20
    //   273: ldc_w 470
    //   276: invokevirtual 474	android/view/View:findViewById	(I)Landroid/view/View;
    //   279: checkcast 476	android/widget/TextView
    //   282: bipush 8
    //   284: invokevirtual 477	android/widget/TextView:setVisibility	(I)V
    //   287: aload 20
    //   289: ldc_w 478
    //   292: invokevirtual 474	android/view/View:findViewById	(I)Landroid/view/View;
    //   295: checkcast 476	android/widget/TextView
    //   298: astore 21
    //   300: aload 21
    //   302: new 407	java/lang/StringBuilder
    //   305: dup
    //   306: invokespecial 408	java/lang/StringBuilder:<init>	()V
    //   309: aload_0
    //   310: getfield 107	com/ikea/kompis/view/FunkyChunkLayout:mContext	Landroid/content/Context;
    //   313: ldc_w 479
    //   316: invokevirtual 482	android/content/Context:getString	(I)Ljava/lang/String;
    //   319: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   322: ldc_w 484
    //   325: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   328: invokevirtual 437	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   331: invokevirtual 488	android/widget/TextView:setText	(Ljava/lang/CharSequence;)V
    //   334: aload 21
    //   336: iconst_0
    //   337: invokevirtual 477	android/widget/TextView:setVisibility	(I)V
    //   340: aload_0
    //   341: getfield 382	com/ikea/kompis/view/FunkyChunkLayout:mDocAndDownInfo	Landroid/widget/LinearLayout;
    //   344: aload 20
    //   346: invokevirtual 492	android/widget/LinearLayout:addView	(Landroid/view/View;)V
    //   349: aload_0
    //   350: getfield 387	com/ikea/kompis/view/FunkyChunkLayout:mDocAndDown	Landroid/view/View;
    //   353: iconst_0
    //   354: invokevirtual 393	android/view/View:setVisibility	(I)V
    //   357: return
    //   358: astore 39
    //   360: aload 39
    //   362: invokevirtual 458	java/lang/Exception:printStackTrace	()V
    //   365: goto -201 -> 164
    //   368: iconst_0
    //   369: istore_3
    //   370: aload_1
    //   371: ifnull +326 -> 697
    //   374: aload_1
    //   375: invokevirtual 496	com/ikea/shared/products/model/RetailItemCommunication:getRetailItemCommChildList	()Lcom/ikea/shared/products/model/RetailItemCommChildList;
    //   378: astore 6
    //   380: iconst_0
    //   381: istore_3
    //   382: aload 6
    //   384: ifnull +313 -> 697
    //   387: aload_1
    //   388: invokevirtual 496	com/ikea/shared/products/model/RetailItemCommunication:getRetailItemCommChildList	()Lcom/ikea/shared/products/model/RetailItemCommChildList;
    //   391: invokevirtual 501	com/ikea/shared/products/model/RetailItemCommChildList:getRetailItemCommChild	()Ljava/util/List;
    //   394: astore 7
    //   396: iconst_0
    //   397: istore_3
    //   398: aload 7
    //   400: ifnull +297 -> 697
    //   403: aload 7
    //   405: invokeinterface 258 1 0
    //   410: ifne +287 -> 697
    //   413: iconst_0
    //   414: istore 8
    //   416: aload 7
    //   418: invokeinterface 307 1 0
    //   423: istore 9
    //   425: iconst_0
    //   426: istore_3
    //   427: iload 8
    //   429: iload 9
    //   431: if_icmpge +266 -> 697
    //   434: aload 7
    //   436: iload 8
    //   438: invokeinterface 262 2 0
    //   443: astore 10
    //   445: iconst_0
    //   446: istore_3
    //   447: aload 10
    //   449: ifnull +594 -> 1043
    //   452: aload 7
    //   454: iload 8
    //   456: invokeinterface 262 2 0
    //   461: checkcast 503	com/ikea/shared/products/model/RetailItemCommChild
    //   464: invokevirtual 504	com/ikea/shared/products/model/RetailItemCommChild:getRetailItemCommAttachmentList	()Lcom/ikea/shared/products/model/RetailItemCommAttachmentList;
    //   467: astore 11
    //   469: iconst_0
    //   470: istore_3
    //   471: aload 11
    //   473: ifnull +570 -> 1043
    //   476: aload 7
    //   478: iload 8
    //   480: invokeinterface 262 2 0
    //   485: checkcast 503	com/ikea/shared/products/model/RetailItemCommChild
    //   488: invokevirtual 504	com/ikea/shared/products/model/RetailItemCommChild:getRetailItemCommAttachmentList	()Lcom/ikea/shared/products/model/RetailItemCommAttachmentList;
    //   491: invokevirtual 405	com/ikea/shared/products/model/RetailItemCommAttachmentList:getRetailItemCommAttachment	()Ljava/util/List;
    //   494: astore 12
    //   496: iconst_0
    //   497: istore_3
    //   498: aload 12
    //   500: ifnull +543 -> 1043
    //   503: aload 7
    //   505: iload 8
    //   507: invokeinterface 262 2 0
    //   512: checkcast 503	com/ikea/shared/products/model/RetailItemCommChild
    //   515: invokevirtual 504	com/ikea/shared/products/model/RetailItemCommChild:getRetailItemCommAttachmentList	()Lcom/ikea/shared/products/model/RetailItemCommAttachmentList;
    //   518: invokevirtual 405	com/ikea/shared/products/model/RetailItemCommAttachmentList:getRetailItemCommAttachment	()Ljava/util/List;
    //   521: astore 13
    //   523: iconst_0
    //   524: istore_3
    //   525: aload 13
    //   527: ifnull +516 -> 1043
    //   530: aload 13
    //   532: invokeinterface 258 1 0
    //   537: ifne +506 -> 1043
    //   540: iconst_0
    //   541: istore 14
    //   543: iload 14
    //   545: aload 13
    //   547: invokeinterface 307 1 0
    //   552: if_icmpge +491 -> 1043
    //   555: ldc 127
    //   557: astore 15
    //   559: new 407	java/lang/StringBuilder
    //   562: dup
    //   563: invokespecial 408	java/lang/StringBuilder:<init>	()V
    //   566: ldc_w 410
    //   569: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   572: astore 23
    //   574: aload_0
    //   575: getfield 107	com/ikea/kompis/view/FunkyChunkLayout:mContext	Landroid/content/Context;
    //   578: astore 24
    //   580: iconst_1
    //   581: anewarray 416	java/lang/Object
    //   584: astore 25
    //   586: aload 25
    //   588: iconst_0
    //   589: aload 7
    //   591: iload 8
    //   593: invokeinterface 262 2 0
    //   598: checkcast 503	com/ikea/shared/products/model/RetailItemCommChild
    //   601: invokevirtual 505	com/ikea/shared/products/model/RetailItemCommChild:getItemNo	()Ljava/lang/String;
    //   604: invokestatic 425	com/ikea/kompis/util/UiUtil:getFormatedArtical	(Ljava/lang/String;)Ljava/lang/String;
    //   607: aastore
    //   608: aload 23
    //   610: aload 24
    //   612: ldc_w 426
    //   615: aload 25
    //   617: invokevirtual 432	android/content/Context:getString	(I[Ljava/lang/Object;)Ljava/lang/String;
    //   620: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   623: ldc_w 434
    //   626: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   629: invokevirtual 437	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   632: astore 26
    //   634: aload 26
    //   636: astore 15
    //   638: new 439	com/ikea/kompis/products/RetailItemCommAttachmentDoc
    //   641: dup
    //   642: aload 15
    //   644: aload 13
    //   646: iload 14
    //   648: invokeinterface 262 2 0
    //   653: checkcast 441	com/ikea/shared/products/model/RetailItemCommAttachment
    //   656: invokespecial 444	com/ikea/kompis/products/RetailItemCommAttachmentDoc:<init>	(Ljava/lang/String;Lcom/ikea/shared/products/model/RetailItemCommAttachment;)V
    //   659: astore 17
    //   661: aload 5
    //   663: aload 17
    //   665: invokeinterface 339 2 0
    //   670: pop
    //   671: iinc 14 1
    //   674: goto -131 -> 543
    //   677: astore 22
    //   679: aload 22
    //   681: invokevirtual 447	java/util/UnknownFormatConversionException:printStackTrace	()V
    //   684: goto -46 -> 638
    //   687: astore 16
    //   689: aload 16
    //   691: invokevirtual 458	java/lang/Exception:printStackTrace	()V
    //   694: goto -56 -> 638
    //   697: aload 5
    //   699: invokeinterface 258 1 0
    //   704: istore 27
    //   706: iconst_0
    //   707: istore_3
    //   708: iload 27
    //   710: ifne -463 -> 247
    //   713: aload_0
    //   714: aload 5
    //   716: invokespecial 509	com/ikea/kompis/view/FunkyChunkLayout:sortList	(Ljava/util/List;)V
    //   719: aload 5
    //   721: invokeinterface 258 1 0
    //   726: istore 28
    //   728: iconst_0
    //   729: istore_3
    //   730: iload 28
    //   732: ifne -485 -> 247
    //   735: iconst_0
    //   736: istore 29
    //   738: iload 29
    //   740: aload 5
    //   742: invokeinterface 307 1 0
    //   747: if_icmpge -500 -> 247
    //   750: aload_0
    //   751: getfield 107	com/ikea/kompis/view/FunkyChunkLayout:mContext	Landroid/content/Context;
    //   754: invokestatic 464	android/view/LayoutInflater:from	(Landroid/content/Context;)Landroid/view/LayoutInflater;
    //   757: ldc_w 465
    //   760: aload_0
    //   761: getfield 382	com/ikea/kompis/view/FunkyChunkLayout:mDocAndDownInfo	Landroid/widget/LinearLayout;
    //   764: iconst_0
    //   765: invokevirtual 469	android/view/LayoutInflater:inflate	(ILandroid/view/ViewGroup;Z)Landroid/view/View;
    //   768: astore 30
    //   770: aload_0
    //   771: getfield 107	com/ikea/kompis/view/FunkyChunkLayout:mContext	Landroid/content/Context;
    //   774: aload 5
    //   776: iload 29
    //   778: invokeinterface 262 2 0
    //   783: checkcast 439	com/ikea/kompis/products/RetailItemCommAttachmentDoc
    //   786: invokevirtual 512	com/ikea/kompis/products/RetailItemCommAttachmentDoc:getRetailItemCommAttachment	()Lcom/ikea/shared/products/model/RetailItemCommAttachment;
    //   789: invokevirtual 515	com/ikea/shared/products/model/RetailItemCommAttachment:getAttachmentType	()Ljava/lang/String;
    //   792: invokestatic 519	com/ikea/kompis/util/UiUtil:getLocalizeString	(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
    //   795: astore 31
    //   797: aload 30
    //   799: ldc_w 470
    //   802: invokevirtual 474	android/view/View:findViewById	(I)Landroid/view/View;
    //   805: checkcast 476	android/widget/TextView
    //   808: astore 32
    //   810: aload 30
    //   812: ldc_w 478
    //   815: invokevirtual 474	android/view/View:findViewById	(I)Landroid/view/View;
    //   818: checkcast 476	android/widget/TextView
    //   821: astore 33
    //   823: aload 30
    //   825: ldc_w 520
    //   828: invokevirtual 474	android/view/View:findViewById	(I)Landroid/view/View;
    //   831: checkcast 476	android/widget/TextView
    //   834: astore 34
    //   836: aload 31
    //   838: aload 4
    //   840: invokevirtual 324	java/lang/String:equalsIgnoreCase	(Ljava/lang/String;)Z
    //   843: ifeq +145 -> 988
    //   846: aload 32
    //   848: bipush 8
    //   850: invokevirtual 477	android/widget/TextView:setVisibility	(I)V
    //   853: aload 34
    //   855: new 407	java/lang/StringBuilder
    //   858: dup
    //   859: invokespecial 408	java/lang/StringBuilder:<init>	()V
    //   862: aload_0
    //   863: getfield 208	com/ikea/kompis/view/FunkyChunkLayout:mRetailItemCommunication	Lcom/ikea/shared/products/model/RetailItemCommunication;
    //   866: invokevirtual 523	com/ikea/shared/products/model/RetailItemCommunication:getProductName	()Ljava/lang/String;
    //   869: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   872: ldc_w 525
    //   875: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   878: aload_0
    //   879: getfield 208	com/ikea/kompis/view/FunkyChunkLayout:mRetailItemCommunication	Lcom/ikea/shared/products/model/RetailItemCommunication;
    //   882: invokevirtual 528	com/ikea/shared/products/model/RetailItemCommunication:getProductTypeName	()Ljava/lang/String;
    //   885: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   888: aload 5
    //   890: iload 29
    //   892: invokeinterface 262 2 0
    //   897: checkcast 439	com/ikea/kompis/products/RetailItemCommAttachmentDoc
    //   900: invokevirtual 531	com/ikea/kompis/products/RetailItemCommAttachmentDoc:getPdfSuffix	()Ljava/lang/String;
    //   903: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   906: ldc_w 484
    //   909: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   912: invokevirtual 437	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   915: invokevirtual 488	android/widget/TextView:setText	(Ljava/lang/CharSequence;)V
    //   918: aload 34
    //   920: aload 5
    //   922: iload 29
    //   924: invokeinterface 262 2 0
    //   929: checkcast 439	com/ikea/kompis/products/RetailItemCommAttachmentDoc
    //   932: invokevirtual 512	com/ikea/kompis/products/RetailItemCommAttachmentDoc:getRetailItemCommAttachment	()Lcom/ikea/shared/products/model/RetailItemCommAttachment;
    //   935: invokevirtual 535	android/widget/TextView:setTag	(Ljava/lang/Object;)V
    //   938: aload 34
    //   940: iconst_0
    //   941: invokevirtual 477	android/widget/TextView:setVisibility	(I)V
    //   944: aload 34
    //   946: iload 29
    //   948: getstatic 540	com/ikea/kompis/products/ProductDetailsBaseFragment:DOWNLOAD_LINK_UNIQUE_ID	I
    //   951: iadd
    //   952: invokevirtual 543	android/widget/TextView:setId	(I)V
    //   955: aload 34
    //   957: aload_0
    //   958: getfield 153	com/ikea/kompis/view/FunkyChunkLayout:mOnClickListener	Landroid/view/View$OnClickListener;
    //   961: invokevirtual 547	android/widget/TextView:setOnClickListener	(Landroid/view/View$OnClickListener;)V
    //   964: aload 33
    //   966: bipush 8
    //   968: invokevirtual 477	android/widget/TextView:setVisibility	(I)V
    //   971: aload_0
    //   972: getfield 382	com/ikea/kompis/view/FunkyChunkLayout:mDocAndDownInfo	Landroid/widget/LinearLayout;
    //   975: aload 30
    //   977: invokevirtual 492	android/widget/LinearLayout:addView	(Landroid/view/View;)V
    //   980: iconst_1
    //   981: istore_3
    //   982: iinc 29 1
    //   985: goto -247 -> 738
    //   988: aload 31
    //   990: astore 4
    //   992: aload 32
    //   994: aload 31
    //   996: ldc_w 549
    //   999: ldc_w 525
    //   1002: invokevirtual 553	java/lang/String:replace	(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
    //   1005: invokevirtual 488	android/widget/TextView:setText	(Ljava/lang/CharSequence;)V
    //   1008: goto -155 -> 853
    //   1011: astore_2
    //   1012: new 407	java/lang/StringBuilder
    //   1015: dup
    //   1016: invokespecial 408	java/lang/StringBuilder:<init>	()V
    //   1019: ldc_w 449
    //   1022: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1025: aload_2
    //   1026: invokevirtual 452	java/lang/Exception:getMessage	()Ljava/lang/String;
    //   1029: invokevirtual 414	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   1032: invokevirtual 437	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   1035: invokestatic 457	com/ikea/shared/util/L:E	(Ljava/lang/String;)V
    //   1038: aload_2
    //   1039: invokevirtual 458	java/lang/Exception:printStackTrace	()V
    //   1042: return
    //   1043: iinc 8 1
    //   1046: goto -630 -> 416
    //
    // Exception table:
    //   from	to	target	type
    //   93	160	203	java/util/UnknownFormatConversionException
    //   35	41	213	java/lang/Exception
    //   48	57	213	java/lang/Exception
    //   64	74	213	java/lang/Exception
    //   77	89	213	java/lang/Exception
    //   164	197	213	java/lang/Exception
    //   205	210	213	java/lang/Exception
    //   360	365	213	java/lang/Exception
    //   374	380	213	java/lang/Exception
    //   387	396	213	java/lang/Exception
    //   403	413	213	java/lang/Exception
    //   416	425	213	java/lang/Exception
    //   434	445	213	java/lang/Exception
    //   452	469	213	java/lang/Exception
    //   476	496	213	java/lang/Exception
    //   503	523	213	java/lang/Exception
    //   530	540	213	java/lang/Exception
    //   543	555	213	java/lang/Exception
    //   638	671	213	java/lang/Exception
    //   679	684	213	java/lang/Exception
    //   689	694	213	java/lang/Exception
    //   697	706	213	java/lang/Exception
    //   713	728	213	java/lang/Exception
    //   738	853	213	java/lang/Exception
    //   853	980	213	java/lang/Exception
    //   992	1008	213	java/lang/Exception
    //   93	160	358	java/lang/Exception
    //   559	634	677	java/util/UnknownFormatConversionException
    //   559	634	687	java/lang/Exception
    //   0	16	1011	java/lang/Exception
    //   22	31	1011	java/lang/Exception
    //   215	247	1011	java/lang/Exception
    //   251	357	1011	java/lang/Exception
  }

  private void initEnvironment(RetailItemCommunication paramRetailItemCommunication)
  {
    this.mEnvironmentInfo.removeAllViews();
    this.mEnvironment.setVisibility(8);
    StringBuffer localStringBuffer = new StringBuffer("");
    try
    {
      List localList3 = paramRetailItemCommunication.getRetailItemCustomerEnvironmentList().getRetailItemCustomerEnvironment().getRetailItemEnvironmentTextList();
      if ((localList3 != null) && (!localList3.isEmpty()))
        for (int j = 0; j < localList3.size(); j++)
          localStringBuffer.append(((RetailItemEnvironmentText)localList3.get(j)).getEnvironmentText()).append("\n\n");
    }
    catch (Exception localException1)
    {
      localException1.printStackTrace();
      if (localStringBuffer.length() > 0)
      {
        View localView2 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mEnvironmentInfo, false);
        TextView localTextView3 = (TextView)localView2.findViewById(2131624303);
        TextView localTextView4 = (TextView)localView2.findViewById(2131624304);
        localTextView3.setText(this.mContext.getString(2131165324));
        localTextView4.setText(localStringBuffer);
        this.mEnvironmentInfo.addView(localView2);
        this.mEnvironment.setVisibility(0);
      }
      Object localObject = "";
      try
      {
        List localList1 = paramRetailItemCommunication.getRetailItemCustomerMaterialList().getRetailItemCustomerMaterial();
        if ((localList1 != null) && (!localList1.isEmpty()))
        {
          Iterator localIterator = localList1.iterator();
          while (localIterator.hasNext())
          {
            RetailItemCustomerMaterial localRetailItemCustomerMaterial = (RetailItemCustomerMaterial)localIterator.next();
            List localList2 = localRetailItemCustomerMaterial.getRetailItemPartMaterialList().getRetailItemPartMaterial();
            if ((localRetailItemCustomerMaterial.getProductTypeText() != null) && (!localRetailItemCustomerMaterial.getProductTypeText().isEmpty()))
              localObject = (String)localObject + localRetailItemCustomerMaterial.getProductTypeText() + ":\n";
            if ((localList2 != null) && (!localList2.isEmpty()))
              for (int i = 0; i < localList2.size(); i++)
              {
                localObject = (String)localObject + ((RetailItemPartMaterial)localList2.get(i)).getPartText();
                if ((!((RetailItemPartMaterial)localList2.get(i)).getPartText().isEmpty()) && (!((RetailItemPartMaterial)localList2.get(i)).getPartText().endsWith(":")))
                  localObject = (String)localObject + ": ";
                String str = (String)localObject + ((RetailItemPartMaterial)localList2.get(i)).getMaterialText() + "\n\n";
                localObject = str;
              }
          }
        }
      }
      catch (Exception localException2)
      {
        localException2.printStackTrace();
        if (((String)localObject).length() > 0)
        {
          View localView1 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mEnvironmentInfo, false);
          TextView localTextView1 = (TextView)localView1.findViewById(2131624303);
          TextView localTextView2 = (TextView)localView1.findViewById(2131624304);
          localTextView1.setText(this.mContext.getString(2131165459));
          localTextView2.setText((CharSequence)localObject);
          this.mEnvironmentInfo.addView(localView1);
          this.mEnvironment.setVisibility(0);
        }
      }
    }
  }

  private void initFCLayout()
  {
    this.mOptions = findViewById(2131624140);
    ((TextView)this.mOptions.findViewById(2131624257)).setText(2131165522);
    this.mOptionsIcon = this.mOptions.findViewById(2131624258);
    this.mWhatInclude = findViewById(2131624144);
    ((TextView)this.mWhatInclude.findViewById(2131624257)).setText(2131165407);
    this.mWhatIncludeIcon = this.mWhatInclude.findViewById(2131624258);
    this.mWhatIncludeInfo = ((LinearLayout)findViewById(2131624145));
    this.mKeyFeature = findViewById(2131624142);
    ((TextView)this.mKeyFeature.findViewById(2131624257)).setText(2131165562);
    this.mKeyFeatureIcon = this.mKeyFeature.findViewById(2131624258);
    this.mKeyFeatureInfo = ((LinearLayout)findViewById(2131624143));
    this.mEnvironment = findViewById(2131624150);
    ((TextView)this.mEnvironment.findViewById(2131624257)).setText(2131165326);
    this.mEnvironmentIcon = this.mEnvironment.findViewById(2131624258);
    this.mEnvironmentInfo = ((LinearLayout)findViewById(2131624151));
    this.mGoodToKnow = findViewById(2131624146);
    ((TextView)this.mGoodToKnow.findViewById(2131624257)).setText(2131165375);
    this.mAboutProductIcon = this.mGoodToKnow.findViewById(2131624258);
    this.mGoodToKnowInfo = ((LinearLayout)findViewById(2131624147));
    this.mDocAndDown = findViewById(2131624152);
    ((TextView)this.mDocAndDown.findViewById(2131624257)).setText(2131165682);
    this.mDocAndDownIcon = this.mDocAndDown.findViewById(2131624258);
    this.mDocAndDownInfo = ((LinearLayout)findViewById(2131624153));
    this.mTechnical = findViewById(2131624148);
    ((TextView)this.mTechnical.findViewById(2131624257)).setText(2131165687);
    this.mTechnicalIcon = this.mTechnical.findViewById(2131624258);
    this.mTechnicalInfo = ((LinearLayout)findViewById(2131624149));
    this.mOptionTesting = ((LinearLayout)findViewById(2131624141));
    this.mWhatInclude.setOnClickListener(this.mOnClickListener);
    this.mDocAndDown.setOnClickListener(this.mOnClickListener);
    this.mGoodToKnow.setOnClickListener(this.mOnClickListener);
    this.mEnvironment.setOnClickListener(this.mOnClickListener);
    this.mOptions.setOnClickListener(this.mOnClickListener);
    this.mKeyFeature.setOnClickListener(this.mOnClickListener);
    this.mTechnical.setOnClickListener(this.mOnClickListener);
  }

  private void initGoodToKnow(RetailItemCommunication paramRetailItemCommunication)
  {
    this.mGoodToKnowInfo.removeAllViews();
    this.mGoodToKnow.setVisibility(8);
    Object localObject1 = "";
    this.warning = "";
    while (true)
    {
      int k;
      try
      {
        List localList4 = paramRetailItemCommunication.getRetailItemGoodToKnowList().getRetailItemGoodToKnow();
        if ((localList4 != null) && (!localList4.isEmpty()))
        {
          k = 0;
          if (k < localList4.size())
            if (((RetailItemGoodToKnow)localList4.get(k)).getGoodToKnowTypeNameEn().equalsIgnoreCase("warning"))
            {
              this.warning = (this.warning + ((RetailItemGoodToKnow)localList4.get(k)).getGoodToKnowText() + "\n");
            }
            else if (k == -1 + localList4.size())
            {
              localObject1 = (String)localObject1 + ((RetailItemGoodToKnow)localList4.get(k)).getGoodToKnowText() + "\n";
            }
            else
            {
              String str3 = (String)localObject1 + ((RetailItemGoodToKnow)localList4.get(k)).getGoodToKnowText() + "\n" + "\n";
              localObject1 = str3;
            }
        }
      }
      catch (Exception localException1)
      {
        if (((String)localObject1).length() > 0)
        {
          View localView4 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mGoodToKnowInfo, false);
          TextView localTextView7 = (TextView)localView4.findViewById(2131624303);
          TextView localTextView8 = (TextView)localView4.findViewById(2131624304);
          localTextView7.setVisibility(8);
          localTextView8.setText((CharSequence)localObject1);
          this.mGoodToKnowInfo.addView(localView4);
          this.mGoodToKnow.setVisibility(0);
        }
        if (this.warning.length() > 0)
        {
          this.warning = this.warning.substring(0, this.warning.length() - "\n".length());
          if (!this.mFromSL)
          {
            this.mWarning.setVisibility(0);
            this.mWarning.setText(this.warning);
          }
        }
        Object localObject2 = "";
        try
        {
          List localList2 = paramRetailItemCommunication.getRetailItemCareInstructionList().getRetailItemCareInstruction();
          if ((localList2 != null) && (!localList2.isEmpty()))
          {
            Iterator localIterator = localList2.iterator();
            if (localIterator.hasNext())
            {
              RetailItemCareInstruction localRetailItemCareInstruction = (RetailItemCareInstruction)localIterator.next();
              List localList3 = localRetailItemCareInstruction.getRetailItemCareInstructionTextList().getRetailItemCareInstructionText();
              if ((localRetailItemCareInstruction.getProductTypeText() != null) && (!localRetailItemCareInstruction.getProductTypeText().isEmpty()))
                localObject2 = (String)localObject2 + localRetailItemCareInstruction.getProductTypeText() + ":\n";
              if ((localList3 == null) || (localList3.isEmpty()))
                continue;
              int j = 0;
              if (j < localList3.size())
              {
                String str2 = (String)localObject2 + ((RetailItemCareInstructionText)localList3.get(j)).getCareInstructionText() + "\n";
                localObject2 = str2;
                j++;
                continue;
              }
              continue;
            }
          }
        }
        catch (Exception localException2)
        {
          if (((String)localObject2).length() > 0)
          {
            View localView3 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mGoodToKnowInfo, false);
            TextView localTextView5 = (TextView)localView3.findViewById(2131624303);
            TextView localTextView6 = (TextView)localView3.findViewById(2131624304);
            localTextView5.setText(this.mContext.getString(2131165283));
            localTextView6.setText((CharSequence)localObject2);
            this.mGoodToKnowInfo.addView(localView3);
            this.mGoodToKnow.setVisibility(0);
          }
          if ((paramRetailItemCommunication.getDesignerNameComm() != null) && (paramRetailItemCommunication.getDesignerNameComm().length() > 0))
          {
            View localView2 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mGoodToKnowInfo, false);
            TextView localTextView3 = (TextView)localView2.findViewById(2131624303);
            TextView localTextView4 = (TextView)localView2.findViewById(2131624304);
            localTextView3.setText(this.mContext.getString(2131165304));
            localTextView4.setText(paramRetailItemCommunication.getDesignerNameComm() + "\n");
            this.mGoodToKnowInfo.addView(localView2);
            this.mGoodToKnow.setVisibility(0);
          }
          Object localObject3 = "";
          try
          {
            List localList1 = paramRetailItemCommunication.getRetailItemLongBenefitList().getRetailItemLongBenefit();
            View localView1;
            TextView localTextView1;
            TextView localTextView2;
            if (!localList1.isEmpty())
            {
              int i = 0;
              if (i < localList1.size())
              {
                if ("Designer Thoughts".equalsIgnoreCase(((RetailItemLongBenefit)localList1.get(i)).getLongBenefitSubject()))
                {
                  String str1 = (String)localObject3 + ((RetailItemLongBenefit)localList1.get(i)).getLongBenefitText() + "\n";
                  localObject3 = str1;
                }
                i++;
                continue;
              }
            }
          }
          catch (Exception localException3)
          {
            if (((String)localObject3).length() > 0)
            {
              localView1 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mGoodToKnowInfo, false);
              localTextView1 = (TextView)localView1.findViewById(2131624303);
              localTextView2 = (TextView)localView1.findViewById(2131624304);
              localTextView1.setText(this.mContext.getString(2131165305));
              localTextView2.setText((CharSequence)localObject3);
              this.mGoodToKnowInfo.addView(localView1);
              this.mGoodToKnow.setVisibility(0);
            }
            return;
          }
        }
      }
      k++;
    }
  }

  private void initKeyFeature(RetailItemCommunication paramRetailItemCommunication)
  {
    this.mKeyFeatureInfo.removeAllViews();
    this.mKeyFeature.setVisibility(8);
    LinearLayout.LayoutParams localLayoutParams1;
    if ((UiUtil.isTablet(this.mContext)) && ((!UiUtil.isTablet7(this.mContext)) || (UiUtil.isLandscape(this.mContext))))
      localLayoutParams1 = new LinearLayout.LayoutParams(0, -2, 1.0F);
    LinearLayout localLinearLayout1;
    LinearLayout localLinearLayout2;
    boolean bool1;
    String str2;
    while (true)
    {
      Object localObject1 = "";
      try
      {
        List localList4 = paramRetailItemCommunication.getRetailItemCustomerBenefitList().getRetailItemCustomerBenefit();
        if ((localList4 != null) && (!localList4.isEmpty()))
        {
          int i1 = 0;
          while (i1 < localList4.size())
          {
            String str11 = (String)localObject1 + ((RetailItemCustomerBenefit)localList4.get(i1)).getCustomerBenefitText() + "\n\n";
            localObject1 = str11;
            i1++;
            continue;
            localLayoutParams1 = new LinearLayout.LayoutParams(-1, -2);
          }
        }
      }
      catch (Exception localException1)
      {
        LinearLayout.LayoutParams localLayoutParams2 = new LinearLayout.LayoutParams(-1, -2);
        localLinearLayout1 = new LinearLayout(this.mContext);
        localLinearLayout1.setLayoutParams(localLayoutParams2);
        localLinearLayout1.setOrientation(1);
        localLinearLayout1.setVisibility(8);
        localLinearLayout2 = new LinearLayout(this.mContext);
        localLinearLayout2.setLayoutParams(localLayoutParams2);
        localLinearLayout2.setOrientation(1);
        localLinearLayout2.setVisibility(8);
        if (((String)localObject1).length() > 0)
        {
          View localView5 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mKeyFeatureInfo, false);
          TextView localTextView10 = (TextView)localView5.findViewById(2131624303);
          TextView localTextView11 = (TextView)localView5.findViewById(2131624304);
          localTextView10.setVisibility(8);
          localTextView11.setText((CharSequence)localObject1);
          localLinearLayout1.addView(localView5);
          this.mKeyFeature.setVisibility(0);
        }
        bool1 = AppConfigManager.i(this.mContext).getAppConfigData().getConfig().isMetric();
        String str1 = "";
        try
        {
          List localList3 = paramRetailItemCommunication.getRetailItemCommMeasureList().getRetailItemCommMeasure();
          if ((localList3 != null) && (!localList3.isEmpty()))
          {
            int n = 0;
            if (n < localList3.size())
            {
              str1 = str1 + ((RetailItemCommMeasure)localList3.get(n)).getItemMeasureTypeName() + ": ";
              StringBuilder localStringBuilder2 = new StringBuilder().append(str1);
              if (bool1);
              String str10;
              for (Object localObject2 = ((RetailItemCommMeasure)localList3.get(n)).getItemMeasureTextMetric(); ; localObject2 = str10)
              {
                str1 = (String)localObject2 + "\n";
                n++;
                break;
                str10 = ((RetailItemCommMeasure)localList3.get(n)).getItemMeasureTextImperial() + " (" + ((RetailItemCommMeasure)localList3.get(n)).getItemMeasureTextMetric() + ")";
              }
            }
          }
        }
        catch (Exception localException2)
        {
          if (str1.length() > 0)
          {
            View localView4 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mKeyFeatureInfo, false);
            TextView localTextView8 = (TextView)localView4.findViewById(2131624303);
            TextView localTextView9 = (TextView)localView4.findViewById(2131624304);
            localTextView8.setText(this.mContext.getString(2131165269));
            localTextView9.setText(str1);
            localLinearLayout1.addView(localView4);
          }
          if ((paramRetailItemCommunication.getAssemblyCode() != null) && (paramRetailItemCommunication.getAssemblyCode().equalsIgnoreCase("y")))
          {
            View localView3 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mKeyFeatureInfo, false);
            TextView localTextView6 = (TextView)localView3.findViewById(2131624303);
            TextView localTextView7 = (TextView)localView3.findViewById(2131624304);
            localTextView6.setVisibility(8);
            localTextView7.setText(this.mContext.getString(2131165695) + "\n");
            localLinearLayout1.addView(localView3);
          }
          str2 = "";
        }
      }
    }
    try
    {
      View localView2;
      TextView localTextView5;
      List localList1;
      StringBuilder localStringBuilder1;
      if (TextUtils.isEmpty(paramRetailItemCommunication.getItemNumberOfPackages()))
      {
        j = 0;
        localView2 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mKeyFeatureInfo, false);
        localTextView3 = (TextView)localView2.findViewById(2131624305);
        localTextView4 = (TextView)localView2.findViewById(2131624303);
        localTextView5 = (TextView)localView2.findViewById(2131624304);
        localList1 = paramRetailItemCommunication.getRetailItemCommPackageMeasureList().getRetailItemCommPackageMeasure();
        if ((localList1 == null) || (localList1.isEmpty()))
        {
          List localList2 = paramRetailItemCommunication.getRetailItemCommChildList().getRetailItemCommChild();
          if ((localList2 != null) && (!localList2.isEmpty()) && (localList2.size() == 1))
          {
            localList1 = ((RetailItemCommChild)localList2.get(0)).getRetailItemCommPackageMeasureList().getRetailItemCommPackageMeasure();
            String str8 = str2 + "\n";
            String str9 = str8 + UiUtil.getFormatedArtical(((RetailItemCommChild)localList2.get(0)).getItemNo());
            str2 = str9 + "\n \n";
          }
        }
        if ((localList1 == null) || (localList1.isEmpty()))
          break label1422;
        k = 0;
        if (k >= localList1.size())
          break label1422;
        if ((!"HEIGHT".equalsIgnoreCase(((RetailItemCommPackageMeasure)localList1.get(k)).getPackageMeasureType())) && (!"LENGTH".equalsIgnoreCase(((RetailItemCommPackageMeasure)localList1.get(k)).getPackageMeasureType())) && (!"DIAMETER".equalsIgnoreCase(((RetailItemCommPackageMeasure)localList1.get(k)).getPackageMeasureType())) && (!"WEIGHT".equalsIgnoreCase(((RetailItemCommPackageMeasure)localList1.get(k)).getPackageMeasureType())) && (!"WEIGHT_GROSS".equalsIgnoreCase(((RetailItemCommPackageMeasure)localList1.get(k)).getPackageMeasureType())) && (!"WIDTH".equalsIgnoreCase(((RetailItemCommPackageMeasure)localList1.get(k)).getPackageMeasureType())))
          break label2322;
        if (TextUtils.isEmpty(((RetailItemCommPackageMeasure)localList1.get(k)).getConsumerPackNumber()))
          break label2328;
        m = Integer.parseInt(((RetailItemCommPackageMeasure)localList1.get(k)).getConsumerPackNumber());
        if (this.mPrevConsumerNumber != m)
        {
          str2 = str2 + "\n";
          this.mPrevConsumerNumber = m;
        }
        String str6 = str2 + UiUtil.getLocalizeString(this.mContext, ((RetailItemCommPackageMeasure)localList1.get(k)).getPackageMeasureType()) + ": ";
        localStringBuilder1 = new StringBuilder().append(str6);
        if (!bool1)
          break label1359;
      }
      label1359: for (String str7 = ((RetailItemCommPackageMeasure)localList1.get(k)).getPackageMeasureTextMetric(); ; str7 = ((RetailItemCommPackageMeasure)localList1.get(k)).getPackageMeasureTextImperial() + " (" + ((RetailItemCommPackageMeasure)localList1.get(k)).getPackageMeasureTextMetric() + ")")
      {
        str2 = str7 + "\n";
        break label2322;
        j = Integer.parseInt(paramRetailItemCommunication.getItemNumberOfPackages());
        break;
      }
      label1422: if (str2.length() > 0)
      {
        localTextView5.setText(str2);
        localTextView5.setVisibility(0);
      }
      while (j > 1)
      {
        localTextView4.setText(this.mContext.getString(2131165530));
        localTextView3.setText(j + " " + this.mContext.getString(2131165532) + "\n\n");
        localTextView3.setVisibility(0);
        if ((this.mRetailItemCommunication.getRetailItemCommChildList() == null) || (this.mRetailItemCommunication.getRetailItemCommChildList().getRetailItemCommChild() == null) || (this.mRetailItemCommunication.getRetailItemCommChildList().getRetailItemCommChild().size() <= 1))
          break label2301;
        localTextView3.setTextColor(this.mContext.getResources().getColor(2131492870));
        View.OnClickListener local2 = new View.OnClickListener()
        {
          public void onClick(View paramAnonymousView)
          {
            FunkyChunkLayout.this.mHandler.post(new Runnable()
            {
              public void run()
              {
                FunkyChunkLayout.this.showPackagePopUp();
              }
            });
          }
        };
        localTextView3.setOnClickListener(local2);
        localLinearLayout1.addView(localView2);
        if (this.mFromSL)
        {
          View localView1 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mKeyFeatureInfo, false);
          TextView localTextView1 = (TextView)localView1.findViewById(2131624303);
          TextView localTextView2 = (TextView)localView1.findViewById(2131624304);
          localTextView1.setVisibility(0);
          localTextView1.setText(this.mContext.getString(2131165563));
          String str3 = "";
          if (this.mRetailItemCommunication.getDisplayPriceInfo().isDisplayGPR())
            str3 = str3 + this.mContext.getString(2131165554) + "\n" + "\n";
          if ((this.warning.length() > 0) && (this.mFromSL))
            str3 = str3 + this.warning + "\n" + "\n";
          boolean bool2 = this.isTitleDisclaimer;
          int i = 0;
          if (bool2)
          {
            boolean bool3 = AppConfigManager.i(this.mContext).getAppConfigData().getConfig().isLightSourceWarning();
            i = 0;
            if (bool3)
            {
              AppConfigManager localAppConfigManager = AppConfigManager.i(this.mContext);
              i = 0;
              if (localAppConfigManager != null)
              {
                AppConfigData localAppConfigData = AppConfigManager.i(this.mContext).getAppConfigData();
                i = 0;
                if (localAppConfigData != null)
                {
                  Country localCountry = AppConfigManager.i(this.mContext).getAppConfigData().getConfig();
                  i = 0;
                  if (localCountry != null)
                  {
                    String str4 = AppConfigManager.i(this.mContext).getAppConfigData().getConfig().getCaliforniaPropUrl();
                    i = 0;
                    if (str4 != null)
                    {
                      boolean bool4 = AppConfigManager.i(this.mContext).getAppConfigData().getConfig().getCaliforniaPropUrl().isEmpty();
                      i = 0;
                      if (!bool4)
                      {
                        String str5 = AppConfigManager.i(this.mContext).getAppConfigData().getConfig().getCaliforniaPropUrl();
                        str3 = (str3 + this.mContext.getResources().getString(2131165706) + "<br>" + "<a  href=\"" + str5 + "\" style=\"text-decoration: none" + "\">" + this.mContext.getResources().getString(2131165470) + "</a>" + "<br>").replaceAll("\n", "<br>");
                        Spannable localSpannable = UiUtil.removeUnderlines(Spannable.Factory.getInstance().newSpannable(Html.fromHtml(str3)));
                        localTextView2.setClickable(true);
                        localTextView2.setMovementMethod(LinkMovementMethod.getInstance());
                        localTextView2.setText(localSpannable);
                        localLinearLayout2.addView(localView1);
                        i = 1;
                      }
                    }
                  }
                }
              }
            }
          }
          if ((i == 0) && (str3.length() > 0))
          {
            localTextView2.setText(str3.substring(0, str3.length() - "\n".length()));
            localLinearLayout2.addView(localView1);
          }
        }
        this.mKeyFeatureInfo.addView(localLinearLayout1, localLayoutParams1);
        if (localLinearLayout1.getChildCount() > 0)
        {
          this.mKeyFeature.setVisibility(0);
          localLinearLayout1.setVisibility(0);
        }
        this.mKeyFeatureInfo.addView(localLinearLayout2, localLayoutParams1);
        if (localLinearLayout2.getChildCount() > 0)
        {
          this.mKeyFeature.setVisibility(0);
          localLinearLayout2.setVisibility(0);
        }
        return;
        localTextView5.setVisibility(8);
      }
    }
    catch (Exception localException3)
    {
      while (true)
      {
        int j;
        TextView localTextView3;
        TextView localTextView4;
        int k;
        localException3.printStackTrace();
        continue;
        localTextView4.setText(this.mContext.getString(2131165530));
        localTextView3.setText(j + " " + this.mContext.getString(2131165531) + "\n\n");
        localTextView3.setVisibility(0);
        continue;
        label2301: localTextView3.setTextColor(this.mContext.getResources().getColor(2131492869));
        continue;
        label2322: k++;
        continue;
        label2328: int m = 1;
      }
    }
  }

  private void initOption(RetailItemCommunication paramRetailItemCommunication)
  {
    while (true)
    {
      int k;
      int n;
      try
      {
        this.mOptionTesting.setVisibility(8);
        this.mOptions.setVisibility(8);
        this.mOptionTesting.removeAllViews();
        int i = ProductDetailsBaseFragment.OPTIONS_UNIQUE_ID;
        GPRCommSelectionCriteriaList localGPRCommSelectionCriteriaList = paramRetailItemCommunication.getGPRCommSelectionCriteriaList();
        if (localGPRCommSelectionCriteriaList != null)
        {
          List localList1 = localGPRCommSelectionCriteriaList.getGPRCommSelectionCriteria();
          if ((localList1 != null) && (!localList1.isEmpty()))
          {
            removeDuplicatesItems(localList1);
            this.mTopSelectionCriteriaValue = new GPRUISelectionValue[localList1.size()];
            int j = 0;
            Iterator localIterator1 = localList1.iterator();
            k = i;
            if (!localIterator1.hasNext())
              break label499;
            GPRCommSelectionCriteria localGPRCommSelectionCriteria = (GPRCommSelectionCriteria)localIterator1.next();
            View localView = LayoutInflater.from(this.mContext).inflate(2130903123, this.mOptionTesting, false);
            TextView localTextView1 = (TextView)localView.findViewById(2131624306);
            TextView localTextView2 = (TextView)localView.findViewById(2131624307);
            localTextView2.setClickable(true);
            localTextView2.setOnClickListener(this.mOnClickListener);
            localTextView2.setTag(localGPRCommSelectionCriteria.getSelectionCriteriaCode());
            int m = k + 1;
            localTextView2.setId(k);
            localTextView1.setText(localGPRCommSelectionCriteria.getSelectionCriteriaName());
            String str1 = localGPRCommSelectionCriteria.getSortNo();
            List localList2 = localGPRCommSelectionCriteria.getGPRCommSelectionCriteriaValueList().getGPRCommSelectionCriteriaValueList();
            String[] arrayOfString1 = new String[localList2.size()];
            String[] arrayOfString2 = new String[localList2.size()];
            n = 0;
            int i1 = 0;
            if (i1 < localList2.size())
            {
              arrayOfString1[i1] = ((GPRCommSelectionCriteriaValue)localList2.get(i1)).getSelectionCriteriaValue();
              arrayOfString2[i1] = ((ItemRef)((GPRCommSelectionCriteriaValue)localList2.get(i1)).getItemRefList().getItemRefList().get(0)).getItemNo();
              List localList3 = ((GPRCommSelectionCriteriaValue)localList2.get(i1)).getItemRefList().getItemRefList();
              String str2 = Constant.i().getTmpProductID();
              Iterator localIterator2 = localList3.iterator();
              if (!localIterator2.hasNext())
                break label503;
              if (!str2.equalsIgnoreCase(((ItemRef)localIterator2.next()).getItemNo()))
                continue;
              localTextView2.setText(arrayOfString1[i1]);
              GPRUISelectionValue[] arrayOfGPRUISelectionValue = this.mTopSelectionCriteriaValue;
              GPRUISelectionValue localGPRUISelectionValue = new GPRUISelectionValue(arrayOfString1[i1], localGPRCommSelectionCriteria.getSelectionCriteriaCode(), str1);
              arrayOfGPRUISelectionValue[j] = localGPRUISelectionValue;
              n = 1;
              break label503;
            }
            if (arrayOfString1.length > 1)
            {
              this.mOptionTesting.addView(localView);
              this.mOptions.setVisibility(0);
              this.mOptionTesting.setVisibility(0);
            }
            j++;
            k = m;
            continue;
            i1++;
            continue;
          }
        }
      }
      catch (Exception localException)
      {
        localException.printStackTrace();
      }
      return;
      label499: return;
      label503: if (n == 0);
    }
  }

  private String initTechnicalInfo(RetailItemCommunication paramRetailItemCommunication)
  {
    String str1 = "";
    while (true)
    {
      int i;
      try
      {
        this.mTechnicalInfo.removeAllViews();
        this.mTechnical.setVisibility(8);
        if ((paramRetailItemCommunication.getRetailItemTechnicalInformationGroupList() != null) && (paramRetailItemCommunication.getRetailItemTechnicalInformationGroupList().getRetailItemTechnicalInformationGroup() != null) && (!paramRetailItemCommunication.getRetailItemTechnicalInformationGroupList().getRetailItemTechnicalInformationGroup().isEmpty()))
        {
          Iterator localIterator = paramRetailItemCommunication.getRetailItemTechnicalInformationGroupList().getRetailItemTechnicalInformationGroup().iterator();
          if (localIterator.hasNext())
          {
            RetailItemTechnicalInformationGroup localRetailItemTechnicalInformationGroup = (RetailItemTechnicalInformationGroup)localIterator.next();
            View localView = LayoutInflater.from(this.mContext).inflate(2130903120, this.mTechnicalInfo, false);
            TextView localTextView1 = (TextView)localView.findViewById(2131624303);
            TextView localTextView2 = (TextView)localView.findViewById(2131624304);
            if (localRetailItemTechnicalInformationGroup != null)
              localTextView1.setText(localRetailItemTechnicalInformationGroup.getTechnicalInformationHeadingText());
            String str2 = "";
            if ((localRetailItemTechnicalInformationGroup != null) && (localRetailItemTechnicalInformationGroup.getRetailItemTechnicalInformationList() != null) && (localRetailItemTechnicalInformationGroup.getRetailItemTechnicalInformationList().getRetailItemTechnicalInformation() != null) && (!localRetailItemTechnicalInformationGroup.getRetailItemTechnicalInformationList().getRetailItemTechnicalInformation().isEmpty()))
            {
              List localList = localRetailItemTechnicalInformationGroup.getRetailItemTechnicalInformationList().getRetailItemTechnicalInformation();
              i = 0;
              if (i < localList.size())
              {
                str2 = str2 + ((RetailItemTechnicalInformation)localList.get(i)).getTechnicalInformationText() + ": " + ((RetailItemTechnicalInformation)localList.get(i)).getTechnicalInformationTextMetric() + "\n";
                if (!((RetailItemTechnicalInformation)localList.get(i)).getTechnicalInformationText().contains("Energy efficiency class"))
                  break label367;
                str1 = ((RetailItemTechnicalInformation)localList.get(i)).getTechnicalInformationTextMetric();
                break label367;
              }
              if (!str2.isEmpty())
                localTextView2.setText(str2);
            }
            this.mTechnicalInfo.addView(localView);
            this.mTechnical.setVisibility(0);
            continue;
          }
        }
      }
      catch (Exception localException)
      {
        localException.printStackTrace();
      }
      return str1;
      label367: i++;
    }
  }

  private void initWhatInclude(RetailItemCommunication paramRetailItemCommunication)
  {
    int i = 0;
    while (true)
    {
      int j;
      try
      {
        this.mWhatIncludeInfo.removeAllViews();
        this.mWhatInclude.setVisibility(8);
        if (paramRetailItemCommunication.getRetailItemCommChildList() != null)
        {
          List localList1 = paramRetailItemCommunication.getRetailItemCommChildList().getRetailItemCommChild();
          if ((localList1 != null) && (!localList1.isEmpty()))
          {
            View localView2 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mKeyFeatureInfo, false);
            TextView localTextView3 = (TextView)localView2.findViewById(2131624303);
            TextView localTextView4 = (TextView)localView2.findViewById(2131624304);
            localTextView3.setText(this.mContext.getString(2131165735));
            localTextView4.setVisibility(8);
            this.mWhatIncludeInfo.addView(localView2);
            int k = 0;
            if (k < localList1.size())
            {
              View localView3 = LayoutInflater.from(this.mContext).inflate(2130903149, this.mWhatIncludeInfo, false);
              boolean bool1 = this.mFromSL;
              int m = 0;
              if (bool1)
                m = ((ProductDetailsActivity)this.mContext).getChildItemState(((RetailItemCommChild)localList1.get(k)).getItemNo());
              SLSPRLayout localSLSPRLayout = (SLSPRLayout)localView3;
              Context localContext = this.mContext;
              RetailItemCommunication localRetailItemCommunication = this.mRetailItemCommunication;
              RetailItemCommChild localRetailItemCommChild = (RetailItemCommChild)localList1.get(k);
              if (k != -1 + localList1.size())
                break label569;
              bool2 = true;
              localSLSPRLayout.updateData(localContext, localRetailItemCommunication, localRetailItemCommChild, bool2, this.mFromSL, this.mFromSL, m);
              if (((RetailItemCommChild)localList1.get(k)).isCollected())
                i++;
              this.mWhatIncludeInfo.addView(localView3);
              this.mBus.post(new SPRCollectInfoUpdateEvent(i, localList1.size()));
              k++;
              continue;
            }
            if (!localList1.isEmpty())
              this.mWhatInclude.setVisibility(0);
            this.mWhatIncludeInfo.requestLayout();
          }
          String str = "";
          List localList2 = paramRetailItemCommunication.getRetailItemGoodToKnowList().getRetailItemGoodToKnow();
          if ((localList2 != null) && (!localList2.isEmpty()))
          {
            j = 0;
            if (j < localList2.size())
            {
              if (!((RetailItemGoodToKnow)localList2.get(j)).getGoodToKnowTypeNameEn().equalsIgnoreCase("Sold separately"))
                break label575;
              str = str + ((RetailItemGoodToKnow)localList2.get(j)).getGoodToKnowText() + "\n";
              break label575;
            }
          }
          if (str.length() > 0)
          {
            View localView1 = LayoutInflater.from(this.mContext).inflate(2130903120, this.mKeyFeatureInfo, false);
            TextView localTextView1 = (TextView)localView1.findViewById(2131624303);
            TextView localTextView2 = (TextView)localView1.findViewById(2131624304);
            localTextView1.setText(this.mContext.getString(2131165663));
            localTextView2.setText(str);
            this.mWhatIncludeInfo.addView(localView1);
            this.mWhatInclude.setVisibility(0);
          }
        }
        return;
      }
      catch (Exception localException)
      {
        localException.printStackTrace();
        return;
      }
      label569: boolean bool2 = false;
      continue;
      label575: j++;
    }
  }

  private void removeDuplicatesItems(List<GPRCommSelectionCriteria> paramList)
  {
    if (!paramList.isEmpty())
    {
      Iterator localIterator1 = paramList.iterator();
      while (localIterator1.hasNext())
      {
        GPRCommSelectionCriteria localGPRCommSelectionCriteria = (GPRCommSelectionCriteria)localIterator1.next();
        if (localGPRCommSelectionCriteria.getGPRCommSelectionCriteriaValueList() != null)
        {
          ArrayList localArrayList = new ArrayList();
          List localList = localGPRCommSelectionCriteria.getGPRCommSelectionCriteriaValueList().getGPRCommSelectionCriteriaValueList();
          if (!localList.isEmpty())
          {
            Iterator localIterator2 = localList.iterator();
            while (localIterator2.hasNext())
              localArrayList.add(((GPRCommSelectionCriteriaValue)localIterator2.next()).getItemRefList());
            Iterator localIterator3 = localList.iterator();
            while (localIterator3.hasNext())
            {
              ItemRefList localItemRefList1 = ((GPRCommSelectionCriteriaValue)localIterator3.next()).getItemRefList();
              Iterator localIterator4 = localArrayList.iterator();
              while (localIterator4.hasNext())
              {
                ItemRefList localItemRefList2 = (ItemRefList)localIterator4.next();
                if ((!localItemRefList1.equals(localItemRefList2)) && (localItemRefList1.getItemRefList().size() > localItemRefList2.getItemRefList().size()))
                  localItemRefList1.getItemRefList().removeAll(localItemRefList2.getItemRefList());
              }
            }
          }
        }
      }
    }
  }

  private void rotate(boolean paramBoolean, int paramInt, View paramView)
  {
    if (paramBoolean);
    for (RotateAnimation localRotateAnimation = this.mOpenRotateAnimation; ; localRotateAnimation = this.mCloseRotateAnimation)
    {
      localRotateAnimation.setDuration(paramInt / 2);
      localRotateAnimation.setStartOffset(paramInt - 200);
      paramView.startAnimation(localRotateAnimation);
      return;
    }
  }

  private void showOptionPicker(String paramString, int paramInt)
  {
    this.mOptionMode = paramString;
    int i = paramInt;
    iniOptionPickerListData(paramString);
    String str1 = "";
    String str2 = "";
    GPRUISelectionValue[] arrayOfGPRUISelectionValue = this.mTopSelectionCriteriaValue;
    int j = arrayOfGPRUISelectionValue.length;
    int k = 0;
    if (k < j)
    {
      GPRUISelectionValue localGPRUISelectionValue = arrayOfGPRUISelectionValue[k];
      if ((localGPRUISelectionValue != null) && (paramString.equalsIgnoreCase(localGPRUISelectionValue.getmSelectionCode())))
      {
        str1 = localGPRUISelectionValue.getmSelectionValue();
        str2 = localGPRUISelectionValue.getSortNumber();
      }
    }
    else if (i != -1);
    for (int m = 0; ; m++)
    {
      int n = this.mOptionsGPR.length;
      i = 0;
      if (m < n)
      {
        if (str1.equalsIgnoreCase(this.mOptionsGPR[m].getSelectionCriteriaValue()))
          i = m;
      }
      else
      {
        final String str3 = str2;
        this.mOptionPicker = new CustomPicker(this.mContext, CustomPicker.PickerModeEnum.NORMAL, false);
        this.mOptionPicker.setGPRDisplayValue(this.mOptionsValues, this.mOptionsGPR);
        this.mOptionPicker.setTitle(this.mOptionTitle);
        this.mOptionPicker.showPicker(i, new CustomPicker.SelectionListener()
        {
          public void onCancel()
          {
          }

          public void onSelection(int paramAnonymousInt)
          {
            ItemRef localItemRef = FunkyChunkLayout.this.getCurrentSettingItemRef(FunkyChunkLayout.this.mOptionsGPR[paramAnonymousInt], FunkyChunkLayout.this.mRetailItemCommunication.getGPRCommSelectionCriteriaList().getGPRCommSelectionCriteria(), FunkyChunkLayout.this.mTopSelectionCriteriaValue, str3);
            if (localItemRef != null)
              FunkyChunkLayout.this.mBus.post(new OptionChangedEvent(localItemRef));
          }
        });
        return;
        k++;
        break;
      }
    }
  }

  private void showPackagePopUp()
  {
    if ((!UiUtil.isTablet(this.mContext)) || ((UiUtil.isTablet7(this.mContext)) && (!UiUtil.isLandscape(this.mContext))))
    {
      if ((this.mPackagePopUp == null) && (this.mRetailItemCommunication.getRetailItemCommChildList() != null) && (this.mRetailItemCommunication.getRetailItemCommChildList().getRetailItemCommChild() != null))
        this.mPackagePopUp = new PackageInfoPopUp(this.mContext, this.mRetailItemCommunication.getRetailItemCommChildList().getRetailItemCommChild(), this.mRetailItemCommunication.getProductName());
      if (this.mPackagePopUp != null)
        this.mPackagePopUp.show();
    }
    do
    {
      return;
      if ((this.mPackagePopUpTablet == null) && (this.mRetailItemCommunication.getRetailItemCommChildList() != null) && (this.mRetailItemCommunication.getRetailItemCommChildList().getRetailItemCommChild() != null))
        this.mPackagePopUpTablet = new PackageInfoPopUpTablet(this.mContext, this.mRetailItemCommunication.getRetailItemCommChildList().getRetailItemCommChild(), this.mRetailItemCommunication.getProductName());
    }
    while (this.mPackagePopUpTablet == null);
    this.mPackagePopUpTablet.show();
  }

  private void sortList(List<RetailItemCommAttachmentDoc> paramList)
  {
    Collections.sort(paramList, new Comparator()
    {
      public int compare(RetailItemCommAttachmentDoc paramAnonymousRetailItemCommAttachmentDoc1, RetailItemCommAttachmentDoc paramAnonymousRetailItemCommAttachmentDoc2)
      {
        return paramAnonymousRetailItemCommAttachmentDoc1.getRetailItemCommAttachment().getAttachmentType().compareTo(paramAnonymousRetailItemCommAttachmentDoc2.getRetailItemCommAttachment().getAttachmentType());
      }
    });
  }

  private void toggleAboutView()
  {
    boolean bool1;
    LinearLayout localLinearLayout;
    int i;
    if (!this.needGoodToKnow)
    {
      bool1 = true;
      this.needGoodToKnow = bool1;
      rotate(this.needGoodToKnow, 500, this.mAboutProductIcon);
      this.mGoodToKnow.setSelected(this.needGoodToKnow);
      localLinearLayout = this.mGoodToKnowInfo;
      boolean bool2 = this.needGoodToKnow;
      i = 0;
      if (!bool2)
        break label86;
    }
    while (true)
    {
      localLinearLayout.setVisibility(i);
      if (this.needGoodToKnow)
        UsageTracker.i().funkyChunkExpanded(this.mContext);
      return;
      bool1 = false;
      break;
      label86: i = 8;
    }
  }

  private void toggleCustomView()
  {
    boolean bool1;
    LinearLayout localLinearLayout;
    int i;
    if (!this.needOptions)
    {
      bool1 = true;
      this.needOptions = bool1;
      rotate(this.needOptions, 500, this.mOptionsIcon);
      this.mOptions.setSelected(this.needOptions);
      localLinearLayout = this.mOptionTesting;
      boolean bool2 = this.needOptions;
      i = 0;
      if (!bool2)
        break label86;
    }
    while (true)
    {
      localLinearLayout.setVisibility(i);
      if (this.needOptions)
        UsageTracker.i().funkyChunkExpanded(this.mContext);
      return;
      bool1 = false;
      break;
      label86: i = 8;
    }
  }

  private void toggleDocAndDownView()
  {
    boolean bool1;
    LinearLayout localLinearLayout;
    int i;
    if (!this.needDocAndDown)
    {
      bool1 = true;
      this.needDocAndDown = bool1;
      rotate(this.needDocAndDown, 500, this.mDocAndDownIcon);
      this.mDocAndDown.setSelected(this.needDocAndDown);
      localLinearLayout = this.mDocAndDownInfo;
      boolean bool2 = this.needDocAndDown;
      i = 0;
      if (!bool2)
        break label86;
    }
    while (true)
    {
      localLinearLayout.setVisibility(i);
      if (this.needDocAndDown)
        UsageTracker.i().funkyChunkExpanded(this.mContext);
      return;
      bool1 = false;
      break;
      label86: i = 8;
    }
  }

  private void toggleEnvironmentView()
  {
    boolean bool1;
    LinearLayout localLinearLayout;
    int i;
    if (!this.needEnvironment)
    {
      bool1 = true;
      this.needEnvironment = bool1;
      rotate(this.needEnvironment, 500, this.mEnvironmentIcon);
      this.mEnvironment.setSelected(this.needEnvironment);
      localLinearLayout = this.mEnvironmentInfo;
      boolean bool2 = this.needEnvironment;
      i = 0;
      if (!bool2)
        break label86;
    }
    while (true)
    {
      localLinearLayout.setVisibility(i);
      if (this.needEnvironment)
        UsageTracker.i().funkyChunkExpanded(this.mContext);
      return;
      bool1 = false;
      break;
      label86: i = 8;
    }
  }

  private void toggleKeyFeatureView()
  {
    boolean bool1;
    LinearLayout localLinearLayout;
    int i;
    if (!this.needKeyFeature)
    {
      bool1 = true;
      this.needKeyFeature = bool1;
      rotate(this.needKeyFeature, 500, this.mKeyFeatureIcon);
      this.mKeyFeature.setSelected(this.needKeyFeature);
      localLinearLayout = this.mKeyFeatureInfo;
      boolean bool2 = this.needKeyFeature;
      i = 0;
      if (!bool2)
        break label86;
    }
    while (true)
    {
      localLinearLayout.setVisibility(i);
      if (this.needKeyFeature)
        UsageTracker.i().funkyChunkExpanded(this.mContext);
      return;
      bool1 = false;
      break;
      label86: i = 8;
    }
  }

  private void toggleTechnicalInfoView()
  {
    boolean bool1;
    LinearLayout localLinearLayout;
    int i;
    if (!this.needTechnical)
    {
      bool1 = true;
      this.needTechnical = bool1;
      rotate(this.needTechnical, 500, this.mTechnicalIcon);
      this.mTechnical.setSelected(this.needTechnical);
      localLinearLayout = this.mTechnicalInfo;
      boolean bool2 = this.needTechnical;
      i = 0;
      if (!bool2)
        break label86;
    }
    while (true)
    {
      localLinearLayout.setVisibility(i);
      if (this.needTechnical)
        UsageTracker.i().funkyChunkExpanded(this.mContext);
      return;
      bool1 = false;
      break;
      label86: i = 8;
    }
  }

  private void toggleWhatIncludeView()
  {
    boolean bool1;
    LinearLayout localLinearLayout;
    int i;
    if (!this.needWhatInclude)
    {
      bool1 = true;
      this.needWhatInclude = bool1;
      rotate(this.needWhatInclude, 500, this.mWhatIncludeIcon);
      this.mWhatInclude.setSelected(this.needWhatInclude);
      localLinearLayout = this.mWhatIncludeInfo;
      boolean bool2 = this.needWhatInclude;
      i = 0;
      if (!bool2)
        break label86;
    }
    while (true)
    {
      localLinearLayout.setVisibility(i);
      if (this.needWhatInclude)
        UsageTracker.i().funkyChunkExpanded(this.mContext);
      return;
      bool1 = false;
      break;
      label86: i = 8;
    }
  }

  public String getOptionMode()
  {
    return this.mOptionMode;
  }

  protected void onFinishInflate()
  {
    super.onFinishInflate();
    initFCLayout();
    this.mBus.register(this);
  }

  public void onRestoreInstanceState(Parcelable paramParcelable)
  {
    if (!(paramParcelable instanceof SavedState))
      super.onRestoreInstanceState(paramParcelable);
    Bundle localBundle;
    label382: 
    do
    {
      do
      {
        return;
        SavedState localSavedState = (SavedState)paramParcelable;
        super.onRestoreInstanceState(localSavedState.getSuperState());
        localBundle = localSavedState.bundle;
      }
      while (localBundle == null);
      if (localBundle.containsKey("RETAIL_ITEM"));
      try
      {
        this.mRetailItemCommunication = TempObjectCache.i(this.mContext).getProductInfoFromCache();
        if (localBundle.containsKey("PACKAGE_POP_UP"))
        {
          boolean bool8 = localBundle.getBoolean("PACKAGE_POP_UP", false);
          L.I("isPackagePopUpShow " + bool8);
          if (bool8)
            showPackagePopUp();
        }
        if (!localBundle.getBoolean("CUSTOM_PRODUCT"))
        {
          bool1 = true;
          this.needOptions = bool1;
          if (localBundle.getBoolean("ABOUT_PRODUCT"))
            break label382;
          bool2 = true;
          this.needGoodToKnow = bool2;
          if (localBundle.getBoolean("CHUNK_DocAndDown"))
            break label388;
          bool3 = true;
          this.needDocAndDown = bool3;
          if (localBundle.getBoolean("CHUNK_Environment"))
            break label394;
          bool4 = true;
          this.needEnvironment = bool4;
          if (localBundle.getBoolean("CHUNK_TECHNICAL_INFO"))
            break label400;
          bool5 = true;
          this.needTechnical = bool5;
          if (localBundle.getBoolean("CHUNK_KEY_FEATURE"))
            break label406;
          bool6 = true;
          this.needKeyFeature = bool6;
          if (localBundle.getBoolean("CHUNK_WhatInclude"))
            break label412;
          bool7 = true;
          this.needWhatInclude = bool7;
          toggleCustomView();
          toggleAboutView();
          toggleDocAndDownView();
          toggleEnvironmentView();
          toggleKeyFeatureView();
          toggleWhatIncludeView();
          toggleTechnicalInfoView();
          Object[] arrayOfObject = (Object[])localBundle.getSerializable("TOP_OPTIONS");
          if ((arrayOfObject == null) || (arrayOfObject.length <= 0))
            continue;
          this.mTopSelectionCriteriaValue = new GPRUISelectionValue[arrayOfObject.length];
          int i = arrayOfObject.length;
          int j = 0;
          int m;
          for (int k = 0; j < i; k = m)
          {
            Object localObject = arrayOfObject[j];
            GPRUISelectionValue[] arrayOfGPRUISelectionValue = this.mTopSelectionCriteriaValue;
            m = k + 1;
            arrayOfGPRUISelectionValue[k] = ((GPRUISelectionValue)localObject);
            j++;
          }
        }
      }
      catch (JsonSyntaxException localJsonSyntaxException)
      {
        while (true)
          localJsonSyntaxException.printStackTrace();
      }
      catch (Exception localException)
      {
        while (true)
        {
          localException.printStackTrace();
          continue;
          boolean bool1 = false;
          continue;
          boolean bool2 = false;
          continue;
          boolean bool3 = false;
          continue;
          boolean bool4 = false;
          continue;
          boolean bool5 = false;
          continue;
          boolean bool6 = false;
          continue;
          boolean bool7 = false;
        }
      }
    }
    while ((!localBundle.containsKey("OPTIONS_PICKER")) || (!localBundle.getBoolean("OPTIONS_PICKER")) || (this.mRetailItemCommunication == null));
    label388: label394: label400: label406: label412: showOptionPicker(localBundle.getString("OPTIONS_PICKER_MODE"), localBundle.getInt("OPTIONS_PICKER_INDEX"));
  }

  public Parcelable onSaveInstanceState()
  {
    boolean bool = true;
    SavedState localSavedState = new SavedState(super.onSaveInstanceState());
    Bundle localBundle = new Bundle();
    localBundle.putBoolean("CUSTOM_PRODUCT", this.needOptions);
    localBundle.putBoolean("ABOUT_PRODUCT", this.needGoodToKnow);
    localBundle.putBoolean("CHUNK_DocAndDown", this.needDocAndDown);
    localBundle.putBoolean("CHUNK_TECHNICAL_INFO", this.needTechnical);
    localBundle.putBoolean("CHUNK_Environment", this.needEnvironment);
    localBundle.putBoolean("CHUNK_KEY_FEATURE", this.needKeyFeature);
    localBundle.putBoolean("CHUNK_WhatInclude", this.needWhatInclude);
    if ((UiUtil.isTablet7(this.mContext)) && (UiUtil.isLandscape(this.mContext)))
    {
      if ((this.mPackagePopUp != null) && (this.mPackagePopUp.isShowing()));
      while (true)
      {
        localBundle.putBoolean("PACKAGE_POP_UP", bool);
        if ((this.mPackagePopUp != null) && (this.mPackagePopUp.isShowing()))
          localBundle.putParcelable("KEY_PACKAGE_INFO_LIST_STATE", this.mPackagePopUp.getListState());
        if (this.mOptionPicker != null)
        {
          localBundle.putBoolean("OPTIONS_PICKER", this.mOptionPicker.isPickerVisible());
          localBundle.putString("OPTIONS_PICKER_MODE", this.mOptionMode);
          localBundle.putInt("OPTIONS_PICKER_INDEX", this.mOptionPicker.getCurrentSelectedValue());
        }
        if (this.mRetailItemCommunication != null)
        {
          localBundle.putString("RETAIL_ITEM", "RETAIL_ITEM");
          TempObjectCache.i(this.mContext).storeRetailItemCommInCache(this.mRetailItemCommunication);
        }
        localBundle.putSerializable("TOP_OPTIONS", this.mTopSelectionCriteriaValue);
        localSavedState.bundle = localBundle;
        return localSavedState;
        bool = false;
      }
    }
    if ((this.mPackagePopUpTablet != null) && (this.mPackagePopUpTablet.isShowing()));
    while (true)
    {
      localBundle.putBoolean("PACKAGE_POP_UP", bool);
      break;
      bool = false;
    }
  }

  public void openIncludeView()
  {
    boolean bool = this.needWhatInclude;
    int i = 0;
    if (!bool)
    {
      this.needWhatInclude = true;
      rotate(true, 500, this.mWhatIncludeIcon);
      this.mWhatInclude.setSelected(this.needWhatInclude);
      this.mWhatIncludeInfo.setVisibility(0);
      if (this.needWhatInclude)
        UsageTracker.i().funkyChunkExpanded(this.mContext);
      i = 500;
    }
    this.mHandler.postDelayed(new Runnable()
    {
      public void run()
      {
        Rect localRect = new Rect();
        ((Activity)FunkyChunkLayout.this.mContext).getWindow().getDecorView().getWindowVisibleDisplayFrame(localRect);
        int i = localRect.top;
        int[] arrayOfInt = new int[2];
        FunkyChunkLayout.this.mWhatIncludeInfo.getLocationOnScreen(arrayOfInt);
        FunkyChunkLayout.this.mContentLayout.smoothScrollBy(0, arrayOfInt[1] - i);
      }
    }
    , i);
  }

  public String updateView(TextView paramTextView, RetailItemCommunication paramRetailItemCommunication, boolean paramBoolean1, ScrollViewWithScrollEvent paramScrollViewWithScrollEvent, boolean paramBoolean2)
  {
    this.mWarning = paramTextView;
    this.mFromSL = paramBoolean1;
    this.mContentLayout = paramScrollViewWithScrollEvent;
    this.mRetailItemCommunication = paramRetailItemCommunication;
    this.mOptions.setSelected(true);
    rotate(this.needOptions, 1, this.mOptionsIcon);
    initGoodToKnow(paramRetailItemCommunication);
    initKeyFeature(paramRetailItemCommunication);
    initEnvironment(paramRetailItemCommunication);
    initWhatInclude(paramRetailItemCommunication);
    initDocAndDown(paramRetailItemCommunication);
    String str = initTechnicalInfo(paramRetailItemCommunication);
    initOption(paramRetailItemCommunication);
    return str;
  }

  static class SavedState extends View.BaseSavedState
  {
    public static final Parcelable.Creator<SavedState> CREATOR = new Parcelable.Creator()
    {
      public FunkyChunkLayout.SavedState createFromParcel(Parcel paramAnonymousParcel)
      {
        return new FunkyChunkLayout.SavedState(paramAnonymousParcel, null);
      }

      public FunkyChunkLayout.SavedState[] newArray(int paramAnonymousInt)
      {
        return new FunkyChunkLayout.SavedState[paramAnonymousInt];
      }
    };
    Bundle bundle;

    private SavedState(Parcel paramParcel)
    {
      super();
      this.bundle = paramParcel.readBundle();
    }

    SavedState(Parcelable paramParcelable)
    {
      super();
    }

    public void writeToParcel(Parcel paramParcel, int paramInt)
    {
      super.writeToParcel(paramParcel, paramInt);
      paramParcel.writeBundle(this.bundle);
    }
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.ikea.kompis.view.FunkyChunkLayout
 * JD-Core Version:    0.6.2
 */