FreeShare Geek v3.1.8290版本的 MD5 值为:492ca3ae4cdfab7e2d18d5e1b4428e75
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.stkj.presenter.impl.transport;
import android.content.Context;
import android.graphics.Bitmap;
import android.net.ConnectivityManager;
import android.os.Bundle;
import android.os.Handler;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.stkj.processor.core.k;
import com.stkj.processor.server.t;
import com.stkj.ui.def.p.h;
import java.util.Timer;
import java.util.TimerTask;
public class e implements com.stkj.presenter.a.o.d {
private final h f1969a;
private Bitmap b;
private Timer d;
private TimerTask e;
private final com.stkj.processor.def.i.a f1970c = new com.stkj.processor.impl.j.a();
private Handler f = new Handler();
public e(h hVar) {
this.f1969a = hVar;
this.f1969a.a(this);
}
@Override
public void a() {
com.stkj.presenter.ui.d.a.c(this.f1969a.h());
}
@Override
public boolean b() {
return true;
}
@Override
public String c() {
return "WebShareDisplay";
}
@Override
public void a(Context context) {
f();
this.b = this.f1970c.a(context, (int) com.stkj.ui.b.a.a(300.0f), JsonProperty.USE_DEFAULT_NAME, "http://192.168.43.1:" + t.f2198c, com.stkj.presenter.c.no_media);
this.f1969a.a(this.b);
this.f1969a.g_(b(this.f1969a.getArguments()));
this.f1969a.b(a(this.f1969a.getArguments()));
this.f1969a.a(k.a().c() && k.a().d());
}
private String a(Bundle bundle) {
String string = bundle.getString("webshare_url");
return string == null ? "N/A" : string;
}
private String b(Bundle bundle) {
String string = bundle.getString("webshare_qr_string");
return string == null ? "N/A" : string;
}
@Override
public void b(Context context) {
if (this.b != null) {
this.b.recycle();
}
if (this.d != null) {
this.d.cancel();
}
if (this.e != null) {
this.e.cancel();
}
}
@Override
public void onBackPressed() {
}
public boolean d() {
return ((ConnectivityManager) com.stkj.presenter.core.a.a().b().getSystemService("connectivity")).getNetworkInfo(0).isConnectedOrConnecting();
}
@Override
public Handler e() {
return this.f;
}
public void f() {
final Runnable runnable = new Runnable() {
@Override
public void run() {
e.this.f1969a.d_(e.this.d());
}
};
this.d = new Timer();
this.e = new TimerTask() {
@Override
public void run() {
e.this.f.post(runnable);
}
};
this.d.schedule(this.e, 0L, 1000L);
}
@Override
public boolean g() {
return true;
}
}