导航菜单

页面标题

页面副标题

95爱播免登录版 v3.1.9 - ReportPhotoActivity.java 源代码

正在查看: 95爱播免登录版 v3.1.9 应用的 ReportPhotoActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.showself.ui.photo;

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.net.e;
import com.showself.service.f;
import com.showself.service.g;
import com.showself.ui.c;
import com.showself.utils.Utils;
import java.util.HashMap;

public class ReportPhotoActivity extends c {
    private Button a;
    private TextView b;
    private Button c;

    private EditText f3236e;

    private int f3238g;
    private String d = null;

    private boolean f3237f = false;

    private String f3239h = "reportimage";

    private View.OnClickListener f3240i = new a();

    class a implements View.OnClickListener {
        a() {
        }

        @Override
        public void onClick(View view) {
            int id = view.getId();
            if (id == 2131296486) {
                ReportPhotoActivity.this.finish();
            } else {
                if (id != 2131296490) {
                    return;
                }
                ReportPhotoActivity.this.A();
            }
        }
    }

    public void A() {
        String trim = this.f3236e.getText().toString().trim();
        if (trim == null || trim.equals("")) {
            Utils.Y0(this, R.string.content_cannot_benull);
            return;
        }
        if (this.f3237f) {
            return;
        }
        this.f3237f = true;
        HashMap hashMap = new HashMap();
        hashMap.put("pid", Integer.valueOf(this.f3238g));
        hashMap.put("note", trim);
        String str = this.d;
        if (str != null) {
            this.f3239h = str;
        }
        hashMap.put("type", this.f3239h);
        addTask(new f(10021, hashMap), this);
    }

    @Override
    public void addTask(f fVar, Context context) {
        super.addTask(fVar, context);
        Utils.U0(this);
    }

    @Override
    public void init() {
        this.a = (Button) findViewById(R.id.btn_nav_left);
        this.b = (TextView) findViewById(R.id.tv_nav_title);
        this.c = (Button) findViewById(R.id.btn_nav_right);
        this.b.setText(R.string.report_reason);
        this.c.setText(R.string.chat_send_button);
        this.c.setVisibility(0);
        this.a.setOnClickListener(this.f3240i);
        this.c.setOnClickListener(this.f3240i);
        this.f3236e = (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("pid")) {
                this.f3238g = extras.getInt("pid");
            }
            if (extras.containsKey("type")) {
                this.d = extras.getString("type");
            }
            if (extras.containsKey("currentType")) {
                extras.getInt("currentType");
            }
        }
        init();
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onStop() {
        super.onStop();
    }

    @Override
    public void refresh(Object... objArr) {
        this.f3237f = false;
        Utils.n(this);
        int intValue = ((Integer) objArr[0]).intValue();
        HashMap hashMap = (HashMap) objArr[1];
        if (hashMap != null && intValue == 10021) {
            if (((Integer) hashMap.get(e.n1)).intValue() == 0) {
                Utils.Y0(this, R.string.report_send_success);
                finish();
            } else {
                Utils.Z0(this, (String) hashMap.get(e.o1));
            }
        }
        g.i(this);
    }
}