// 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; import android.os.AsyncTask; import android.text.Html; import android.text.method.LinkMovementMethod; import android.widget.Button; import android.widget.TextView; import com.olio.util.ALog; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.lang.ref.WeakReference; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.StatusLine; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; // Referenced classes of package com.oliodevices.assist.app: // EulaActivity class activityWeakReference extends AsyncTask { private final WeakReference activityWeakReference; final EulaActivity this$0; protected volatile Object doInBackground(Object aobj[]) { return doInBackground((String[])aobj); } protected transient String doInBackground(String as[]) { String s; Object obj; Object obj1; obj1 = new DefaultHttpClient(); obj = null; s = obj; as = ((HttpClient) (obj1)).execute(new HttpGet(as[0])); s = obj; obj1 = as.getStatusLine(); s = obj; if (((StatusLine) (obj1)).getStatusCode() != 200) { break MISSING_BLOCK_LABEL_99; } s = obj; obj1 = new ByteArrayOutputStream(); s = obj; as.getEntity().writeTo(((java.io.OutputStream) (obj1))); s = obj; as = ((ByteArrayOutputStream) (obj1)).toString(); s = as; ((ByteArrayOutputStream) (obj1)).close(); return as; s = obj; as.getEntity().getContent().close(); s = obj; try { throw new IOException(((StatusLine) (obj1)).getReasonPhrase()); } // Misplaced declaration of an exception variable catch (String as[]) { ALog.e("An error occurred loading EULA", as, new Object[0]); } return s; } protected volatile void onPostExecute(Object obj) { onPostExecute((String)obj); } protected void onPostExecute(String s) { super.onPostExecute(s); if (s != null && !s.isEmpty()) { EulaActivity.access$200(EulaActivity.this, false); s = String.format("
%s", new Object[] { s }); EulaActivity eulaactivity = (EulaActivity)activityWeakReference.get(); if (eulaactivity != null) { EulaActivity.access$300(eulaactivity).setText(Html.fromHtml(s)); EulaActivity.access$300(eulaactivity).setMovementMethod(LinkMovementMethod.getInstance()); } EulaActivity.access$400(EulaActivity.this).setEnabled(true); return; } else { EulaActivity.access$200(EulaActivity.this, true); return; } } public _cls9(EulaActivity eulaactivity1) { this$0 = EulaActivity.this; super(); activityWeakReference = new WeakReference(eulaactivity1); } }