public void onViewCreated(View paramView, Bundle paramBundle) { super.onViewCreated(paramView, paramBundle); setRefreshableHeaderOffset(6); this.mListView.setOnScrollListener(this); showProgress(3); }
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; } }
public void onResume() { super.onResume(); showProgress(3); if (this.mIsMe) { this.mHideProfileReposts = Util.getDefaultSharedPrefs(getActivity()).getBoolean("profile_hide_reposts", false); setup(); initProfile(); } while (this.mUserId <= 0L) return; getLoaderManager().restartLoader(3, null, this); }
public void onCreate(Bundle paramBundle) { int i = 1; super.onCreate(paramBundle); setHasOptionsMenu(i); Bundle localBundle = getArguments(); this.mUserId = localBundle.getLong("user_id", -1L); this.mFlurryEventSource = "Profile: Tab 1"; this.mFlurryFollowEventSource = localBundle.getString("event_source"); this.mTakeFocus = localBundle.getBoolean("take_focus", false); if (this.mTakeFocus) setFocused(i); this.mAppSessionListener = new ProfileListener(); this.mPopupWindow = new PopupWindow(getActivity(), null, 2130772013); if (paramBundle != null) { this.mCurrentTab = paramBundle.getInt("state_tab"); if (paramBundle.containsKey("stated_header_added")) this.mHeaderAdded = paramBundle.getBoolean("stated_header_added"); this.mCursorQuerySizePosts = Util.getNextCursorSize(0); this.mCursorQuerySizeLikes = Util.getNextCursorSize(0); showSadface(false); this.mRepostsEnabled = i; if (this.mUser != null) this.mUser.repostsEnabled = i; if (localBundle.getStringArrayList("vanity_url") == null) break label212; this.mAppController.fetchUserId(localBundle.getStringArrayList("vanity_url")); } label212: while (this.mUserId <= 0L) { return; this.mCurrentTab = i; this.mHeaderAdded = false; break; } if (this.mUserId == this.mAppController.getActiveId()); while (true) { this.mIsMe = i; if (this.mIsMe) break; this.mAppController.getBlockedUsers(); return; i = 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(); }
public void onActivityResult(int paramInt1, int paramInt2, Intent paramIntent) { super.onActivityResult(paramInt1, paramInt2, paramIntent); switch (paramInt1) { default: case 1: } do { do return; while (paramInt2 != 1); this.mFetchFlags = 0; } while (this.mUserId <= 0L); addRequest(this.mAppController.fetchFriends(this.mUserId)); }
public void onSaveInstanceState(Bundle paramBundle) { super.onSaveInstanceState(paramBundle); paramBundle.putInt("state_tab", this.mCurrentTab); paramBundle.putBoolean("stated_header_added", this.mHeaderAdded); }
public void onPause() { super.onPause(); this.mFeedAdapter.onPause(isFocused()); }
public void onMoveTo(int paramInt) { super.onMoveTo(paramInt); setup(); bindProfileDataAndCounts(); }