Search in sources :

Example 6 with FriendList

use of com.abewy.android.apps.klyph.core.fql.FriendList in project Klyph by jonathangerbaud.

the class StreamListFragment method onSetToFront.

@Override
public void onSetToFront(Activity activity) {
    friendLists = KlyphData.getFriendLists();
    if (activity != null && friendLists != null && friendLists.size() > 0) {
        FriendList fl = new FriendList();
        fl.setOwner(KlyphSession.getSessionUserId());
        fl.setName(activity.getString(R.string.fragment_header_newsfeed));
        friendLists.add(0, fl);
        ((IActionbarSpinner) activity).displaySpinnerInActionBar(friendLists, spinnerPosition, this);
        activity.setTitle("");
    }
}
Also used : FriendList(com.abewy.android.apps.klyph.core.fql.FriendList) IActionbarSpinner(com.abewy.android.apps.klyph.app.IActionbarSpinner)

Aggregations

FriendList (com.abewy.android.apps.klyph.core.fql.FriendList)6 AlertDialog (android.app.AlertDialog)1 DialogInterface (android.content.DialogInterface)1 LayoutInflater (android.view.LayoutInflater)1 View (android.view.View)1 TextView (android.widget.TextView)1 MultiObjectAdapter (com.abewy.android.apps.klyph.adapter.MultiObjectAdapter)1 PicturePrimaryTextHolder (com.abewy.android.apps.klyph.adapter.holder.PicturePrimaryTextHolder)1 IActionbarSpinner (com.abewy.android.apps.klyph.app.IActionbarSpinner)1 GraphObject (com.abewy.android.apps.klyph.core.graph.GraphObject)1 JSONException (org.json.JSONException)1 JSONObject (org.json.JSONObject)1