正在查看: 95爱播免登录版 v3.1.9 应用的 ShowReportActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 ShowReportActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.showself.ui.show;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import com.mifeng.ui.R;
import com.showself.utils.Utils;
import com.tencent.tauth.AuthActivity;
import java.util.HashMap;
public class ShowReportActivity extends com.showself.ui.c {
private int a;
private int b;
private String c;
private EditText d;
private boolean f3285e;
private View.OnClickListener f3286f = new a();
class a implements View.OnClickListener {
a() {
}
@Override
public void onClick(View view) {
int id = view.getId();
if (id == 2131296486) {
ShowReportActivity.this.finish();
} else {
if (id != 2131296490) {
return;
}
ShowReportActivity.this.A();
}
}
}
public void A() {
String str;
String trim = this.d.getText().toString().trim();
if (trim == null || trim.equals("")) {
Utils.Y0(this, R.string.content_cannot_benull);
return;
}
if (this.b == 0) {
str = "举报秀场 ID" + this.a + ":" + trim;
} else {
str = "举报用户" + this.c + ",uid" + this.b + ":" + trim;
}
if (this.f3285e) {
return;
}
HashMap hashMap = new HashMap();
hashMap.put("roomid", Integer.valueOf(this.a));
hashMap.put("fuid", Integer.valueOf(this.b));
hashMap.put(AuthActivity.ACTION_KEY, 3);
hashMap.put("note", str);
addTask(new com.showself.service.f(20004, hashMap), this);
}
@Override
public void addTask(com.showself.service.f fVar, Context context) {
super.addTask(fVar, context);
Utils.U0(this);
}
@Override
public void init() {
TextView textView = (TextView) findViewById(R.id.tv_nav_title);
Button button = (Button) findViewById(R.id.btn_nav_right);
textView.setText("举报");
button.setText(R.string.chat_send_button);
button.setVisibility(0);
findViewById(R.id.btn_nav_left).setOnClickListener(this.f3286f);
findViewById(R.id.btn_nav_right).setOnClickListener(this.f3286f);
this.d = (EditText) findViewById(R.id.et_report_photo_content);
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.report_photo_act);
Bundle extras = getIntent().getExtras();
if (extras != null) {
if (extras.containsKey("roomid")) {
this.a = extras.getInt("roomid");
}
if (extras.containsKey("fuid")) {
this.b = extras.getInt("fuid");
}
if (extras.containsKey("nickname")) {
this.c = extras.getString("nickname");
}
}
init();
}
@Override
protected void onResume() {
super.onResume();
}
@Override
protected void onStop() {
super.onStop();
}
@Override
public void refresh(Object... objArr) {
this.f3285e = false;
Utils.n(this);
int intValue = ((Integer) objArr[0]).intValue();
HashMap hashMap = (HashMap) objArr[1];
if (hashMap != null && intValue == 20004) {
if (((Integer) hashMap.get(com.showself.net.e.n1)).intValue() == 0) {
Utils.Z0(this, (String) hashMap.get(com.showself.net.e.o1));
finish();
} else {
Utils.Z0(this, (String) hashMap.get(com.showself.net.e.o1));
}
}
com.showself.service.g.i(this);
}
}