Modifier and Type | Field and Description |
---|---|
(package private) Post |
PostViewerActivity.Loading.post |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Post> |
RecyclerViewAdapterPosts.catList |
private java.util.List<Post> |
RecyclerViewAdapterPosts.filteredList |
private java.util.List<Post> |
RecyclerViewAdapterPosts.list |
private java.util.List<Post> |
PostsLoader.list |
Modifier and Type | Method and Description |
---|---|
(package private) Post |
Database.getPost(java.lang.String id)
Retrieves post datas for displaying in
PostsFragment |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.ArrayList<Post> |
Database.getPosts()
Retrieves all posts.
|
java.util.List<Post> |
PostsLoader.loadInBackground()
Makes requests : RSS if authorised and database
|
android.support.v4.content.Loader<java.util.List<Post>> |
PostsFragment.onCreateLoader(int id,
android.os.Bundle args)
Create a loader and starts it to retrieve posts.
|
Modifier and Type | Method and Description |
---|---|
int |
Post.compareTo(Post postToCompare)
Compares the post by date (to classifies them by descending date).
|
Modifier and Type | Method and Description |
---|---|
void |
PostsLoader.deliverResult(java.util.List<Post> data) |
void |
PostsLoader.onCanceled(java.util.List<Post> data) |
void |
PostsFragment.onLoaderReset(android.support.v4.content.Loader<java.util.List<Post>> loader) |
void |
PostsFragment.onLoadFinished(android.support.v4.content.Loader<java.util.List<Post>> loader,
java.util.List<Post> data)
Gets the data and sets them to the RecyclerViewAdapter
|
void |
PostsFragment.onLoadFinished(android.support.v4.content.Loader<java.util.List<Post>> loader,
java.util.List<Post> data)
Gets the data and sets them to the RecyclerViewAdapter
|
void |
RecyclerViewAdapterPosts.setData(java.util.List<Post> list)
Transfers data to object
|
Constructor and Description |
---|
RecyclerViewAdapterPosts(android.content.Context ctx,
java.util.List<Post> items,
int item) |