refactor: fix StatusDisplayItem's compilation errors
This commit is contained in:
parent
28601bd75c
commit
20026fc01a
|
@ -205,7 +205,7 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{
|
|||
itemView.requestLayout();
|
||||
|
||||
reactKeyboardVisible=false;
|
||||
emojiKeyboard=new CustomEmojiPopupKeyboard(activity, AccountSessionManager.getInstance().getCustomEmojis(accountSession.domain), accountSession.domain, true);
|
||||
emojiKeyboard=new CustomEmojiPopupKeyboard(activity, AccountSessionManager.getInstance().getCustomEmojis(accountSession.domain), accountSession.domain, true, item.accountID);
|
||||
emojiKeyboard.setListener(new CustomEmojiPopupKeyboard.Listener(){
|
||||
@Override
|
||||
public void onEmojiSelected(Emoji emoji) {
|
||||
|
|
|
@ -25,7 +25,6 @@ import me.grishka.appkit.imageloader.requests.ImageLoaderRequest;
|
|||
public class PollOptionStatusDisplayItem extends StatusDisplayItem{
|
||||
private CharSequence text;
|
||||
public final Poll.Option option;
|
||||
public final Status status;
|
||||
private CustomEmojiHelper emojiHelper=new CustomEmojiHelper();
|
||||
private boolean showResults;
|
||||
private float votesFraction; // 0..1
|
||||
|
@ -38,7 +37,6 @@ public class PollOptionStatusDisplayItem extends StatusDisplayItem{
|
|||
this.optionIndex=optionIndex;
|
||||
option=poll.options.get(optionIndex);
|
||||
this.poll=poll;
|
||||
this.status=status;
|
||||
text=HtmlParser.parseCustomEmoji(option.title, poll.emojis);
|
||||
emojiHelper.setText(text);
|
||||
showResults=poll.isExpired() || poll.voted;
|
||||
|
|
|
@ -281,7 +281,7 @@ public abstract class StatusDisplayItem{
|
|||
contentItems.add(new AudioStatusDisplayItem(parentID, fragment, statusForContent, att));
|
||||
}
|
||||
if(att.type==Attachment.Type.UNKNOWN){
|
||||
contentItems.add(new FileStatusDisplayItem(parentID, fragment, att));
|
||||
contentItems.add(new FileStatusDisplayItem(parentID, fragment, att, statusForContent));
|
||||
}
|
||||
}
|
||||
if(statusForContent.poll!=null){
|
||||
|
|
Loading…
Reference in New Issue