mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-05 23:51:00 +00:00
update to 9.1.3
This commit is contained in:
parent
23118a4a6c
commit
4951061dde
98 changed files with 4578 additions and 1393 deletions
|
|
@ -2255,7 +2255,7 @@ public class SelectAnimatedEmojiDialog extends FrameLayout implements Notificati
|
|||
public int position;
|
||||
public TLRPC.Document document;
|
||||
public AnimatedEmojiSpan span;
|
||||
public ImageReceiver.BackgroundThreadDrawHolder backgroundThreadDrawHolder;
|
||||
public ImageReceiver.BackgroundThreadDrawHolder[] backgroundThreadDrawHolder = new ImageReceiver.BackgroundThreadDrawHolder[DrawingInBackgroundThreadDrawable.THREAD_COUNT];
|
||||
public ImageReceiver imageReceiver;
|
||||
public ImageReceiver imageReceiverToDraw;
|
||||
public boolean isDefaultReaction;
|
||||
|
|
@ -3283,8 +3283,8 @@ public class SelectAnimatedEmojiDialog extends FrameLayout implements Notificati
|
|||
} else {
|
||||
imageReceiver.setRoundRadius(0);
|
||||
}
|
||||
imageView.backgroundThreadDrawHolder = imageReceiver.setDrawInBackgroundThread(imageView.backgroundThreadDrawHolder);
|
||||
imageView.backgroundThreadDrawHolder.time = time;
|
||||
imageView.backgroundThreadDrawHolder[threadIndex] = imageReceiver.setDrawInBackgroundThread(imageView.backgroundThreadDrawHolder[threadIndex], threadIndex);
|
||||
imageView.backgroundThreadDrawHolder[threadIndex].time = time;
|
||||
imageView.imageReceiverToDraw = imageReceiver;
|
||||
|
||||
imageView.update(time);
|
||||
|
|
@ -3302,7 +3302,7 @@ public class SelectAnimatedEmojiDialog extends FrameLayout implements Notificati
|
|||
);
|
||||
}
|
||||
AndroidUtilities.rectTmp2.offset(imageView.getLeft() + (int) imageView.getTranslationX() - startOffset, topOffset);
|
||||
imageView.backgroundThreadDrawHolder.setBounds(AndroidUtilities.rectTmp2);
|
||||
imageView.backgroundThreadDrawHolder[threadIndex].setBounds(AndroidUtilities.rectTmp2);
|
||||
|
||||
imageView.skewAlpha = 1f;
|
||||
imageView.skewIndex = i;
|
||||
|
|
@ -3326,7 +3326,7 @@ public class SelectAnimatedEmojiDialog extends FrameLayout implements Notificati
|
|||
}
|
||||
} else if (imageView.imageReceiverToDraw != null) {
|
||||
// imageView.drawable.setColorFilter(premiumStarColorFilter);
|
||||
imageView.imageReceiverToDraw.draw(canvas, imageView.backgroundThreadDrawHolder);
|
||||
imageView.imageReceiverToDraw.draw(canvas, imageView.backgroundThreadDrawHolder[threadIndex]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3445,8 +3445,8 @@ public class SelectAnimatedEmojiDialog extends FrameLayout implements Notificati
|
|||
super.onFrameReady();
|
||||
for (int i = 0; i < drawInBackgroundViews.size(); i++) {
|
||||
ImageViewEmoji imageView = drawInBackgroundViews.get(i);
|
||||
if (imageView.backgroundThreadDrawHolder != null) {
|
||||
imageView.backgroundThreadDrawHolder.release();
|
||||
if (imageView.backgroundThreadDrawHolder[threadIndex] != null) {
|
||||
imageView.backgroundThreadDrawHolder[threadIndex].release();
|
||||
}
|
||||
}
|
||||
emojiGridView.invalidate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue