public void onItemSelected(int position) { Log.i(TAG, "Entered onItemSelected(" + position + ")"); // If there is no FeedFragment instance, then create one if (mFeedFragment == null) mFeedFragment = new FeedFragment(); // If in single-pane mode, replace single visible Fragment if (!isInTwoPaneMode()) { // TODO 2 - replace the fragment_container with the FeedFragment FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction(); fragmentTransaction.replace(R.id.fragment_container, mFeedFragment); fragmentTransaction.addToBackStack(null); fragmentTransaction.commit(); // execute transaction now getFragmentManager().executePendingTransactions(); } // Update Twitter feed display on FriendFragment mFeedFragment.updateFeedDisplay(position); }
public final void onClick(View paramView) { paramView = a.getActivity(); FeedFragment.w(a); String str = ajx.aZ(); try { paramView.startActivity(new Intent("android.intent.action.VIEW", Uri.parse(str))); return; } catch (ActivityNotFoundException localActivityNotFoundException) { asr.a(paramView); } }
void updateFeed() { if (null != mFeedFragment) mFeedFragment.update(mProcessedFeeds[mFeedSelected]); }