mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Merge branch 'master' into muserstory_remove
# By Samuel Clay (1) and ojiikun (1) * master: Adding node group to fabfile. Fix crash on empty use pictures.
This commit is contained in:
commit
43ab118a21
1 changed files with 11 additions and 9 deletions
|
@ -237,16 +237,18 @@ public class SetupCommentSectionTask extends AsyncTask<Void, Void, Void> {
|
|||
commentCursor.moveToNext();
|
||||
}
|
||||
|
||||
for (final String userId : story.sharedUserIds) {
|
||||
if (!commentIds.contains(userId)) {
|
||||
Cursor userCursor = resolver.query(FeedProvider.USERS_URI, null, DatabaseConstants.USER_USERID + " IN (?)", new String[] { userId }, null);
|
||||
UserProfile user = UserProfile.fromCursor(userCursor);
|
||||
userCursor.close();
|
||||
for (final String userId : story.sharedUserIds) {
|
||||
if (!commentIds.contains(userId)) {
|
||||
Cursor userCursor = resolver.query(FeedProvider.USERS_URI, null, DatabaseConstants.USER_USERID + " IN (?)", new String[] { userId }, null);
|
||||
if (userCursor.getCount() > 0) {
|
||||
UserProfile user = UserProfile.fromCursor(userCursor);
|
||||
userCursor.close();
|
||||
|
||||
ImageView image = ViewUtils.createSharebarImage(context, imageLoader, user.photoUrl, user.userId);
|
||||
sharedGrid.addView(image);
|
||||
}
|
||||
}
|
||||
ImageView image = ViewUtils.createSharebarImage(context, imageLoader, user.photoUrl, user.userId);
|
||||
sharedGrid.addView(image);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
commentCursor.moveToFirst();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue