Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
qii committed Aug 9, 2012
1 parent 28755f5 commit 47303ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion src/org/qii/weiciyuan/ui/main/MainTimeLineActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ private Bitmap getBitmapFromMemCache(String key) {
return GlobalContext.getInstance().getAvatarCache().get(key);
}


public FriendsTimeLineFragment.Commander getFrinedsTimeLineMsgCommand() {
return frinedsTimeLineMsgCommand;
}

FriendsTimeLineFragment.Commander frinedsTimeLineMsgCommand = new FriendsTimeLineFragment.Commander() {


Expand Down Expand Up @@ -178,7 +183,8 @@ class TimeLinePagerAdapter extends
public TimeLinePagerAdapter(FragmentManager fm) {
super(fm);

AbstractTimeLineFragment home = new FriendsTimeLineFragment().setCommander(frinedsTimeLineMsgCommand);
AbstractTimeLineFragment home = new FriendsTimeLineFragment();


AbstractTimeLineFragment mentions = new MentionsTimeLineFragment().setCommander(frinedsTimeLineMsgCommand);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ public void downContentPic(ImageView view, String url, int position, ListView li
}
}

public FriendsTimeLineFragment setCommander(Commander commander) {
this.commander = commander;
return this;
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
commander=((MainTimeLineActivity)getActivity()).getFrinedsTimeLineMsgCommand();
}

@Override
Expand Down

0 comments on commit 47303ed

Please sign in to comment.