예제 #1
0
 public void onClick(View paramView)
 {
   switch (paramView.getId())
   {
   default:
     super.onClick(paramView);
     return;
   case 2131361873:
   case 2131362054:
     this.mProfileHeaderAdapter.onProfileHeaderClick(paramView, this);
     return;
   case 2131362056:
   case 2131362058:
     this.mProfileHeaderAdapter.onProfileHeaderClick(paramView, this);
     changeTab((Button)paramView);
     return;
   case 2131362051:
     onFollowersClicked();
     return;
   case 2131362053:
     onFollowingClicked();
     return;
   case 2131361949:
     this.mAppController.acceptFollowRequest(this.mAppController.getActiveSession(), this.mUserId);
     return;
   case 2131361946:
     this.mAppController.acceptRejectRequest(this.mAppController.getActiveSession(), this.mUserId);
     return;
   case 2131362057:
   }
   if (this.mHideProfileReposts);
   for (int i = 2131624352; ; i = 2131624148)
   {
     String str = getString(i);
     ArrayAdapter localArrayAdapter = new ArrayAdapter(getActivity(), 2130903120, 2131361987, new String[] { str });
     ListView localListView = new ListView(getActivity());
     FrameLayout.LayoutParams localLayoutParams = new FrameLayout.LayoutParams(-1, -2);
     localLayoutParams.topMargin = getResources().getDimensionPixelSize(2131427412);
     localListView.setPadding(0, getResources().getDimensionPixelSize(2131427412), 0, 0);
     localListView.setLayoutParams(localLayoutParams);
     localListView.setAdapter(localArrayAdapter);
     localListView.setSelector(new ColorDrawable(getResources().getColor(17170445)));
     localListView.setOnItemClickListener(this);
     localListView.setDividerHeight(0);
     if (getView() == null)
       break;
     TabButton localTabButton = (TabButton)getView().findViewById(2131362056);
     if ((this.mPopupWindow == null) || (this.mPopupWindow.isShowing()) || (localTabButton == null))
       break;
     this.mPopupWindow.setFocusable(true);
     this.mPopupWindow.setContentView(localListView);
     this.mPopupWindow.setWidth(localTabButton.getMeasuredWidth());
     this.mPopupWindow.setHeight(-2);
     this.mPopupWindow.setBackgroundDrawable(new ColorDrawable(getResources().getColor(2131296358)));
     this.mPopupWindow.showAsDropDown(localTabButton, 0, 0);
     return;
   }
 }
예제 #2
0
 public void onSpanClicked(View paramView, int paramInt, Object paramObject)
 {
   FragmentActivity localFragmentActivity = getActivity();
   if (localFragmentActivity == null)
     return;
   new Intent(localFragmentActivity, UsersActivity.class).putExtra("p_id", this.mUserId);
   switch (paramInt)
   {
   default:
     super.onSpanClicked(paramView, paramInt, paramObject);
     return;
   case 5:
     onFollowersClicked();
     return;
   case 6:
   }
   onFollowingClicked();
 }