// 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.fragments; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.util.ArrayMap; import com.olio.olios.model.loaders.OnUpdate; import com.olio.state.Product; import com.olio.state.Unit; import com.oliodevices.assist.app.views.WatchStatusView; // Referenced classes of package com.oliodevices.assist.app.fragments: // ConfigWatchFragment class this._cls0 implements OnUpdate { final ConfigWatchFragment this$0; public void onUpdate(Unit unit) { if (!isResumed()) { return; } if (unit == null) { mWatchStatus.setWatchModelName(""); return; } Object obj = unit.getProduct().getSku(); String as[] = getResources().getStringArray(0x7f0b0004); TypedArray typedarray = getResources().obtainTypedArray(0x7f0b0005); ArrayMap arraymap = new ArrayMap(as.length); for (int i = 0; i < as.length; i++) { arraymap.put(as[i], typedarray.getDrawable(i)); } typedarray.recycle(); Drawable drawable = (Drawable)arraymap.get(obj); obj = drawable; if (drawable == null) { obj = getResources().getDrawable(0x7f0200db); } mWatchStatus.setWatchImage(((Drawable) (obj))); mWatchStatus.setWatchModelName(unit.getProduct().getName()); } public volatile void onUpdate(Object obj) { onUpdate((Unit)obj); } A() { this$0 = ConfigWatchFragment.this; super(); } }