// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.oliodevices.assist.app.views; import android.content.Context; import android.content.res.Resources; import android.content.res.TypedArray; import android.os.Parcel; import android.os.Parcelable; import android.text.Editable; import android.text.TextWatcher; import android.util.AttributeSet; import android.util.SparseArray; import android.view.LayoutInflater; import android.widget.EditText; import android.widget.RelativeLayout; import android.widget.TextView; import butterknife.ButterKnife; public class SetupInputView extends RelativeLayout { protected static class SavedState extends android.view.View.BaseSavedState { public static final android.os.Parcelable.Creator CREATOR = new android.os.Parcelable.Creator() { public SavedState createFromParcel(Parcel parcel) { return new SavedState(parcel); } public volatile Object createFromParcel(Parcel parcel) { return createFromParcel(parcel); } public SavedState[] newArray(int i) { return new SavedState[i]; } public volatile Object[] newArray(int i) { return newArray(i); } }; private final String text; public String getText() { return text; } public void writeToParcel(Parcel parcel, int i) { super.writeToParcel(parcel, i); parcel.writeString(text); } private SavedState(Parcel parcel) { super(parcel); text = parcel.readString(); } private SavedState(Parcelable parcelable, String s) { super(parcelable); text = s; } } EditText mEditText; TextView mHintText; public SetupInputView(Context context) { this(context, null, 0); } public SetupInputView(Context context, AttributeSet attributeset) { this(context, attributeset, 0); } public SetupInputView(Context context, AttributeSet attributeset, int i) { super(context, attributeset, i); LayoutInflater.from(context).inflate(0x7f030073, this, true); ButterKnife.inject(this); setAddStatesFromChildren(true); context = context.getTheme().obtainStyledAttributes(attributeset, com.oliodevices.assist.R.styleable.SetupInputView, 0, 0); attributeset = context.getString(0); if (attributeset == null) { break MISSING_BLOCK_LABEL_60; } mHintText.setText(attributeset); i = context.getInteger(1, 0); i; JVM INSTR tableswitch 0 2: default 96 // 0 116 // 1 135 // 2 147; goto _L1 _L2 _L3 _L4 _L1: break; /* Loop/switch isn't completed */ _L4: break MISSING_BLOCK_LABEL_147; _L5: context.recycle(); mEditText.addTextChangedListener(new TextWatcher() { final SetupInputView this$0; public void afterTextChanged(Editable editable) { } public void beforeTextChanged(CharSequence charsequence, int j, int k, int l) { } public void onTextChanged(CharSequence charsequence, int j, int k, int l) { setErrorState(false); } { this$0 = SetupInputView.this; super(); } }); return; _L2: mEditText.setInputType(0x82061); goto _L5 attributeset; context.recycle(); throw attributeset; _L3: mEditText.setInputType(33); goto _L5 mEditText.setInputType(129); goto _L5 } protected void dispatchRestoreInstanceState(SparseArray sparsearray) { super.dispatchThawSelfOnly(sparsearray); } protected void dispatchSaveInstanceState(SparseArray sparsearray) { super.dispatchFreezeSelfOnly(sparsearray); } public Editable getText() { return mEditText.getText(); } public void onRestoreInstanceState(Parcelable parcelable) { parcelable = (SavedState)parcelable; super.onRestoreInstanceState(parcelable.getSuperState()); mEditText.setText(parcelable.getText()); } public Parcelable onSaveInstanceState() { return new SavedState(super.onSaveInstanceState(), mEditText.getText().toString()); } public void setErrorState(boolean flag) { int i; if (flag) { i = 0x7f0c0044; } else { i = 0x7f0c0029; } mHintText.setTextColor(getResources().getColor(i)); } public void setText(CharSequence charsequence) { mEditText.setText(charsequence); mEditText.setSelection(charsequence.length()); } public boolean shouldDelayChildPressedState() { return false; } }