public void onCreate(Bundle paramBundle)
 {
   super.onCreate(paramBundle);
   this.adapter = new Adapter();
   this.listView.setAdapter(this.adapter);
   this.listView.setOnItemClickListener(this);
   paramBundle = new ColorDrawable(getResources().getColor(R.color.common_bk_color));
   this.listView.setDivider(paramBundle);
   this.listView.setDividerHeight(ViewUtils.dip2px(this, 20.0F));
   super.getTitleBar().setTitle("我的买单");
   super.getTitleBar().addRightViewItem("闪惠尊享券", "checkhuiticket", new View.OnClickListener()
   {
     public void onClick(View paramView)
     {
       HuiPayListActivity.this.statisticsEvent("hui7", "hui7_mypay_viplist", "", 0);
       paramView = HuiPayListActivity.this.accountService().token();
       if (TextUtils.isEmpty(paramView))
       {
         HuiPayListActivity.access$002(HuiPayListActivity.this, 10);
         HuiPayListActivity.this.accountService().login(HuiPayListActivity.this);
         return;
       }
       paramView = Uri.encode("http://m.dianping.com/hui/ticket/usabletickets?dpshare=0&token=" + paramView);
       paramView = new Intent("android.intent.action.VIEW", Uri.parse("dianping://web?url=" + paramView));
       HuiPayListActivity.this.startActivity(paramView);
     }
   });
 }
 protected void onNewIntent(Intent paramIntent)
 {
   super.onNewIntent(paramIntent);
   if (this.header != null)
     this.listView.removeHeaderView(this.header);
   this.adapter.reset();
   this.adapter.notifyDataSetChanged();
 }
 protected void onDestroy()
 {
   super.onDestroy();
   if (this.request != null)
   {
     mapiService().abort(this.request, this, true);
     this.request = null;
   }
 }
 protected void setupView()
 {
   super.setContentView(R.layout.mobile_pay_list);
   super.getWindow().setBackgroundDrawable(null);
 }