正在查看: 95爱播免登录版 v3.1.9 应用的 RelationFollowActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 RelationFollowActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.showself.ui.relation;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.AbsListView;
import android.widget.Button;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import com.mifeng.ui.R;
import com.r.b.m1;
import com.showself.domain.FriendInfo;
import com.showself.service.f;
import com.showself.utils.r0;
import com.showself.view.PullToRefreshView;
import com.showself.view.n;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class RelationFollowActivity extends com.showself.ui.c implements PullToRefreshView.b {
private Button a;
private TextView b;
private PullToRefreshView c;
private ListView d;
private int f3248e;
private n f3249f;
private View f3250g;
private m1 f3252i;
private Bundle f3253j;
private int f3254k;
private int p;
private int r;
private List<FriendInfo> f3251h = new ArrayList();
private int l = 0;
private int m = 20;
private boolean n = true;
private boolean o = false;
public Handler q = new a();
class a extends Handler {
a() {
}
@Override
public void handleMessage(Message message) {
super.handleMessage(message);
if (message.what != 1) {
return;
}
RelationFollowActivity.this.f3252i.notifyDataSetChanged();
}
}
class b implements AbsListView.OnScrollListener {
b() {
}
@Override
public void onScroll(AbsListView absListView, int i2, int i3, int i4) {
int i5 = (i2 + i3) - 1;
if (RelationFollowActivity.this.f3248e == 0 || i5 != i4 - 1) {
return;
}
RelationFollowActivity relationFollowActivity = RelationFollowActivity.this;
relationFollowActivity.G(relationFollowActivity.f3254k, RelationFollowActivity.this.l, RelationFollowActivity.this.m);
}
@Override
public void onScrollStateChanged(AbsListView absListView, int i2) {
RelationFollowActivity.this.f3248e = i2;
}
}
private class c implements View.OnClickListener {
private c() {
}
@Override
public void onClick(View view) {
if (view.getId() != 2131296486) {
return;
}
RelationFollowActivity.this.finish();
}
c(RelationFollowActivity relationFollowActivity, a aVar) {
this();
}
}
public void G(int i2, int i3, int i4) {
if (!this.n || this.o) {
return;
}
this.o = true;
if (i3 == 0) {
this.f3249f.d(0);
} else {
this.f3249f.d(1);
}
HashMap hashMap = new HashMap();
hashMap.put("fuid", Integer.valueOf(i2));
hashMap.put("type", 2);
hashMap.put("startindex", Integer.valueOf(i3));
hashMap.put("recordnum", Integer.valueOf(i4));
addTask(new f(10015, hashMap), this);
}
@Override
public void init() {
Button button = (Button) findViewById(R.id.btn_nav_left);
this.a = button;
button.setOnClickListener(new c(this, null));
this.b = (TextView) findViewById(R.id.tv_nav_title);
if (r0.y(this).getUserId() == this.f3254k) {
this.b.setText(R.string.my_follow);
} else {
this.b.setText(R.string.ta_follow);
}
n nVar = new n(this);
this.f3249f = nVar;
this.f3250g = nVar.a();
this.c = (PullToRefreshView) findViewById(R.id.refresh_relation_follow);
ListView listView = (ListView) findViewById(R.id.lv_relation_follow_rank);
this.d = listView;
listView.addFooterView(this.f3250g);
this.c.setOnHeaderRefreshListener(this);
this.d.setAdapter((ListAdapter) this.f3252i);
this.f3252i.notifyDataSetChanged();
this.d.setOnScrollListener(new b());
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.relation_follow_tab);
Bundle extras = getIntent().getExtras();
this.f3253j = extras;
this.f3254k = extras.getInt("id");
if (this.f3253j.containsKey("userId")) {
this.f3253j.getInt("userId");
}
init();
this.c.f();
}
@Override
protected void onResume() {
super.onResume();
}
@Override
protected void onStop() {
super.onStop();
}
@Override
public void p(PullToRefreshView pullToRefreshView) {
this.l = 0;
this.n = true;
G(this.f3254k, 0, this.m);
}
@Override
public void refresh(java.lang.Object... r8) {
throw new UnsupportedOperationException("Method not decompiled: com.showself.ui.relation.RelationFollowActivity.refresh(java.lang.Object[]):void");
}
}