柬埔寨通 v6.1.5版本的 MD5 值为:9b68581ac30883219d6a25858a099d6b
以下内容为反编译后的 CircleSortActivity.java 源代码,内容仅作参考
package net.duohuo.magappx.circle.circle;
import android.os.Bundle;
import android.widget.ListAdapter;
import butterknife.BindView;
import com.jianpuzhaitong.forum.R;
import net.duohuo.core.adapter.DataPageAdapter;
import net.duohuo.core.annotation.Extra;
import net.duohuo.magappx.API;
import net.duohuo.magappx.DataViewType;
import net.duohuo.magappx.common.base.MagBaseActivity;
import net.duohuo.magappx.common.view.MagListView;
public class CircleSortActivity extends MagBaseActivity {
DataPageAdapter adapter;
@Extra
String cateId;
@BindView(R.id.listview)
MagListView listView;
@Extra
String title;
@Extra
String type;
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.activity_circle_sort);
setTitle(this.title);
setDataList();
}
private void setDataList() {
this.listView.setBackgroundResource(R.color.white);
if ("hot".equals(this.type)) {
this.adapter = new DataPageAdapter(getActivity(), API.Circle.circleHotList, DataViewType.circle_item);
} else if ("new".equals(this.type)) {
this.adapter = new DataPageAdapter(getActivity(), "https://app.jpztong.com/mag/circle/v1/circle/circleNewList", DataViewType.circle_item);
} else {
DataPageAdapter dataPageAdapter = new DataPageAdapter(getActivity(), API.Circle.circleNormalList, DataViewType.circle_item);
this.adapter = dataPageAdapter;
dataPageAdapter.param("group_id", this.cateId);
}
this.adapter.singlePage();
this.adapter.cache();
this.adapter.next();
this.listView.setAdapter((ListAdapter) this.adapter);
this.listView.hideMoreView();
}
}