Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c27584dd2 | ||
|
|
4754c231fe | ||
|
|
69bbfeaacd | ||
|
|
dc7690e183 | ||
|
|
a4108e9e19 | ||
|
|
dc3db134c0 |
@@ -35,6 +35,8 @@ public class ProfileAdapter extends BaseAdapter {
|
|||||||
private TextView comment;
|
private TextView comment;
|
||||||
private TextView nietSlechts;
|
private TextView nietSlechts;
|
||||||
private ImageView photo;
|
private ImageView photo;
|
||||||
|
|
||||||
|
/* Hold a reference to the current animator, so that it can be canceled mid-way. */
|
||||||
private Animator mCurrentAnimator;
|
private Animator mCurrentAnimator;
|
||||||
|
|
||||||
/* ProfileAdapter constructor */
|
/* ProfileAdapter constructor */
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ public class TimeLineAdapter extends BaseAdapter implements AdapterView.OnItemCl
|
|||||||
private Context mContext;
|
private Context mContext;
|
||||||
private ArrayList<UriPost> mData;
|
private ArrayList<UriPost> mData;
|
||||||
private DatabaseReference mRef;
|
private DatabaseReference mRef;
|
||||||
|
|
||||||
|
/* Hold a reference to the current animator, so that it can be canceled mid-way. */
|
||||||
private Animator mCurrentAnimator;
|
private Animator mCurrentAnimator;
|
||||||
|
|
||||||
/* TimeLineAdapter constructor */
|
/* TimeLineAdapter constructor */
|
||||||
|
|||||||
@@ -33,10 +33,11 @@ public class DownloadClass {
|
|||||||
+ " must implement PostDownloadListener");
|
+ " must implement PostDownloadListener");
|
||||||
}
|
}
|
||||||
mDataRef = FirebaseDatabase.getInstance().getReference();
|
mDataRef = FirebaseDatabase.getInstance().getReference();
|
||||||
mList = new ArrayList<>();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void getPostsFromServer() {
|
public void getPostsFromServer() {
|
||||||
|
mList = new ArrayList<>();
|
||||||
|
|
||||||
mDataRef.child("posts").addListenerForSingleValueEvent(new ValueEventListener() {
|
mDataRef.child("posts").addListenerForSingleValueEvent(new ValueEventListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onDataChange(DataSnapshot dataSnapshot) {
|
public void onDataChange(DataSnapshot dataSnapshot) {
|
||||||
|
|||||||
Reference in New Issue
Block a user