Beispiel #1
0
 protected void onLoadFinished(GraphObjectPagingLoader graphobjectpagingloader, SimpleGraphObjectCursor simplegraphobjectcursor)
 {
     super.ble(graphobjectpagingloader, simplegraphobjectcursor);
     if (simplegraphobjectcursor != null && !graphobjectpagingloader.isLoading())
     {
         if (simplegraphobjectcursor.areMoreObjectsAvailable())
         {
             followNextLink();
             return;
         }
         hideActivityCircle();
         if (simplegraphobjectcursor.isFromCache() && FriendPickerFragment.access$100(FriendPickerFragment.this))
         {
             long l;
             if (simplegraphobjectcursor.getCount() == 0)
             {
                 l = 2000L;
             } else
             {
                 l = 0L;
             }
             graphobjectpagingloader.refreshOriginalRequest(l);
             return;
         }
     }
 }
 private void setFriendPickerListeners(final FriendPickerFragment fragment) {
   fragment.setOnDoneButtonClickedListener(
       new FriendPickerFragment.OnDoneButtonClickedListener() {
         public void onDoneButtonClicked(PickerFragment<?> pickerFragment) {
           onFriendPickerDone(fragment);
         }
       });
 }
  private void onFriendPickerDone(FriendPickerFragment fragment) {
    FragmentManager fm = getSupportFragmentManager();
    fm.popBackStack();

    String results = "";

    Collection<GraphUser> selection = fragment.getSelection();
    if (selection != null && selection.size() > 0) {
      ArrayList<String> names = new ArrayList<String>();
      for (GraphUser user : selection) {
        names.add(user.getName());
      }
      results = TextUtils.join(", ", names);
    } else {
      results = "no friends";
    }

    showAlert("rar", results);
  }
Beispiel #4
0
 protected boolean canSkipRoundTripIfCached()
 {
     return FriendPickerFragment.access$200(FriendPickerFragment.this).ble();
 }