号簿助手 v4.6.31版本的 MD5 值为:9d7ff98a6bb5cc178eac2df4d1b2f0e0
以下内容为反编译后的 NfcOperationExplainActivity.java 源代码,内容仅作参考
package com.chinatelecom.pim.activity.setting.nfc;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.view.View;
import com.chinatelecom.pim.activity.setting.WebViewActivity;
import com.chinatelecom.pim.core.IConstant;
import com.chinatelecom.pim.core.view.ActivityView;
import com.chinatelecom.pim.foundation.lang.model.Theme;
import com.chinatelecom.pim.ui.adapter.setting.nfc.NfcOperationExplainViewAdapter;
public class NfcOperationExplainActivity extends ActivityView<NfcOperationExplainViewAdapter> {
boolean isNfcOperationExplainJump = false;
String htmlLinkText = "若仍无法解决,请联系<u><i><font color=#0050BA><a href='http://kefu.com'>在线客服</a></font></i></u>,把问题反馈给我们,我们将尽快给您答复。";
@Override
public NfcOperationExplainViewAdapter initializeAdapter() {
return new NfcOperationExplainViewAdapter(this, null);
}
@Override
public void doCreate(Bundle bundle, NfcOperationExplainViewAdapter adapter) {
adapter.setup();
adapter.setTheme(new Theme());
setHeaderViewListener(adapter);
}
private void setHeaderViewListener(NfcOperationExplainViewAdapter adapter) {
adapter.getModel().getHeaderView().getLeftView().setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
NfcOperationExplainActivity.this.finish();
}
});
}
private static class MyURLSpan extends ClickableSpan {
private Context context;
private String mUrl;
MyURLSpan(Context context, String string) {
this.mUrl = string;
this.context = context;
}
@Override
public void updateDrawState(TextPaint ds) {
ds.setColor(ds.linkColor);
ds.setUnderlineText(false);
}
@Override
public void onClick(View widget) {
if (this.mUrl.startsWith("http://")) {
Intent intent = new Intent(this.context, (Class<?>) WebViewActivity.class);
intent.putExtra(IConstant.Intent.INTENT_WEB_URL, "http://im.189.cn/cw/?cf=1&cid=1043&manid=730");
intent.putExtra(IConstant.Intent.INTENT_WEB_TITLE, "在线客服");
this.context.startActivity(intent);
}
}
}
}