Update to 5.13.1 (1824)
@ -283,7 +283,7 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
defaultConfig.versionCode = 1823
|
||||
defaultConfig.versionCode = 1824
|
||||
|
||||
applicationVariants.all { variant ->
|
||||
variant.outputs.all { output ->
|
||||
@ -318,7 +318,7 @@ android {
|
||||
defaultConfig {
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 28
|
||||
versionName "5.13.0"
|
||||
versionName "5.13.1"
|
||||
|
||||
vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']
|
||||
|
||||
|
@ -521,7 +521,7 @@ bool NetworkSocketPosix::Select(std::vector<NetworkSocket *> &readFds, std::vect
|
||||
|
||||
for(NetworkSocket*& s:readFds){
|
||||
int sfd=GetDescriptorFromSocket(s);
|
||||
if(sfd==0){
|
||||
if(sfd<=0){
|
||||
LOGW("can't select on one of sockets because it's not a NetworkSocketPosix instance");
|
||||
continue;
|
||||
}
|
||||
@ -532,7 +532,7 @@ bool NetworkSocketPosix::Select(std::vector<NetworkSocket *> &readFds, std::vect
|
||||
|
||||
for(NetworkSocket*& s:writeFds){
|
||||
int sfd=GetDescriptorFromSocket(s);
|
||||
if(sfd==0){
|
||||
if(sfd<=0){
|
||||
LOGW("can't select on one of sockets because it's not a NetworkSocketPosix instance");
|
||||
continue;
|
||||
}
|
||||
@ -545,7 +545,7 @@ bool NetworkSocketPosix::Select(std::vector<NetworkSocket *> &readFds, std::vect
|
||||
|
||||
for(NetworkSocket*& s:errorFds){
|
||||
int sfd=GetDescriptorFromSocket(s);
|
||||
if(sfd==0){
|
||||
if(sfd<=0){
|
||||
LOGW("can't select on one of sockets because it's not a NetworkSocketPosix instance");
|
||||
continue;
|
||||
}
|
||||
@ -571,13 +571,14 @@ bool NetworkSocketPosix::Select(std::vector<NetworkSocket *> &readFds, std::vect
|
||||
}
|
||||
|
||||
std::vector<NetworkSocket*>::iterator itr=readFds.begin();
|
||||
while(itr!=readFds.end()){
|
||||
int sfd=GetDescriptorFromSocket(*itr);
|
||||
if(FD_ISSET(sfd, &readSet))
|
||||
(*itr)->lastSuccessfulOperationTime=VoIPController::GetCurrentTime();
|
||||
if(sfd==0 || !FD_ISSET(sfd, &readSet) || !(*itr)->OnReadyToReceive()){
|
||||
itr=readFds.erase(itr);
|
||||
}else{
|
||||
while (itr != readFds.end()) {
|
||||
int sfd = GetDescriptorFromSocket(*itr);
|
||||
if (sfd > 0 && FD_ISSET(sfd, &readSet)) {
|
||||
(*itr)->lastSuccessfulOperationTime = VoIPController::GetCurrentTime();
|
||||
}
|
||||
if (sfd == 0 || !FD_ISSET(sfd, &readSet) || !(*itr)->OnReadyToReceive()) {
|
||||
itr = readFds.erase(itr);
|
||||
} else {
|
||||
++itr;
|
||||
}
|
||||
}
|
||||
|
@ -55,6 +55,7 @@ jlong Java_org_telegram_ui_Components_RLottieDrawable_create(JNIEnv *env, jclass
|
||||
LottieInfo *info = new LottieInfo();
|
||||
|
||||
std::map<int32_t, int32_t> *colors = nullptr;
|
||||
int color = 0;
|
||||
if (colorReplacement != nullptr) {
|
||||
jint *arr = env->GetIntArrayElements(colorReplacement, 0);
|
||||
if (arr != nullptr) {
|
||||
@ -62,6 +63,9 @@ jlong Java_org_telegram_ui_Components_RLottieDrawable_create(JNIEnv *env, jclass
|
||||
colors = new std::map<int32_t, int32_t>();
|
||||
for (int32_t a = 0; a < len / 2; a++) {
|
||||
(*colors)[arr[a * 2]] = arr[a * 2 + 1];
|
||||
if (color == 0) {
|
||||
color = arr[a * 2 + 1];
|
||||
}
|
||||
}
|
||||
env->ReleaseIntArrayElements(colorReplacement, arr, 0);
|
||||
}
|
||||
@ -93,10 +97,14 @@ jlong Java_org_telegram_ui_Components_RLottieDrawable_create(JNIEnv *env, jclass
|
||||
mkdir(dir.c_str(), 0777);
|
||||
info->cacheFile.insert(index, "/acache");
|
||||
}
|
||||
info->cacheFile += std::to_string(w) + "_" + std::to_string(h);
|
||||
if (color != 0) {
|
||||
info->cacheFile += "_" + std::to_string(color);
|
||||
}
|
||||
if (limitFps) {
|
||||
info->cacheFile += std::to_string(w) + "_" + std::to_string(h) + ".s.cache";
|
||||
info->cacheFile += ".s.cache";
|
||||
} else {
|
||||
info->cacheFile += std::to_string(w) + "_" + std::to_string(h) + ".cache";
|
||||
info->cacheFile += ".cache";
|
||||
}
|
||||
FILE *precacheFile = fopen(info->cacheFile.c_str(), "r+");
|
||||
if (precacheFile == nullptr) {
|
||||
|
BIN
TMessagesProj/src/main/assets/emoji/0_0.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_10.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_100.png
Normal file
After Width: | Height: | Size: 1004 B |
BIN
TMessagesProj/src/main/assets/emoji/0_1000.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1001.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1002.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1003.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1004.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1005.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1006.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1007.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1008.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1009.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_101.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1010.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1011.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1012.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1013.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1014.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1015.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1016.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1017.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1018.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1019.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_102.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1020.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1021.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1022.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1023.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1024.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1025.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1026.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1027.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1028.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1029.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_103.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1030.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1031.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1032.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1033.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1034.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1035.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1036.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1037.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1038.png
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1039.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_104.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1040.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1041.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1042.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1043.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1044.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1045.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1046.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1047.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1048.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1049.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_105.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1050.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1051.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1052.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1053.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1054.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1055.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1056.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1057.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1058.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1059.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_106.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1060.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1061.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1062.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1063.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1064.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1065.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1066.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1067.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1068.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1069.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_107.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1070.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1071.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1072.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1073.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1074.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1075.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1076.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1077.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1078.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1079.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_108.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1080.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1081.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1082.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1083.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
TMessagesProj/src/main/assets/emoji/0_1084.png
Normal file
After Width: | Height: | Size: 1.7 KiB |