mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-01-29 02:19:35 +01:00
bug fix
This commit is contained in:
parent
066ac463a7
commit
567a8db65e
@ -20,7 +20,7 @@ public class ImageAdapter extends RecyclerView.Adapter<ImageAdapter.ImageHolder>
|
||||
}
|
||||
|
||||
|
||||
public void setImages(Bitmap images[]) {
|
||||
public void setImages(@NonNull Bitmap images[]) {
|
||||
this.images = images;
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ public class MessageAdapter extends RecyclerView.Adapter<MessageAdapter.MessageH
|
||||
}
|
||||
|
||||
|
||||
public void setData(List<Message> messages) {
|
||||
public void setData(@NonNull List<Message> messages) {
|
||||
this.messages = messages;
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ public class TimelineAdapter extends Adapter<TimelineAdapter.ItemHolder> {
|
||||
}
|
||||
|
||||
|
||||
public void setData(List<Tweet> newTweets) {
|
||||
public void setData(@NonNull List<Tweet> newTweets) {
|
||||
List<Tweet> result = new ArrayList<>(newTweets);
|
||||
result.addAll(tweets);
|
||||
tweets = result;
|
||||
|
@ -39,7 +39,7 @@ public class TrendAdapter extends Adapter<TrendAdapter.ItemHolder> {
|
||||
}
|
||||
|
||||
|
||||
public void setData(List<Trend> trendList) {
|
||||
public void setData(@NonNull List<Trend> trendList) {
|
||||
this.trendList = trendList;
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ public class UserAdapter extends Adapter<UserAdapter.ItemHolder> {
|
||||
}
|
||||
|
||||
|
||||
public void setData(List<TwitterUser> mUser) {
|
||||
public void setData(@NonNull List<TwitterUser> mUser) {
|
||||
this.mUser = mUser;
|
||||
}
|
||||
|
||||
|
@ -92,6 +92,8 @@ public class StatusLoader extends AsyncTask<Long, Void, Long> {
|
||||
if (answerAdapter.getItemCount() > 0)
|
||||
sinceId = answerAdapter.getItemId(0);
|
||||
answers = mTwitter.getAnswers(tweet.getUser().getScreenname(), TWEETID, sinceId);
|
||||
} else {
|
||||
answers = new ArrayList<>();
|
||||
}
|
||||
publishProgress();
|
||||
if (database.containStatus(TWEETID)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user