Update to 7.7.2 (2293)

This commit is contained in:
DrKLO 2021-04-17 17:25:35 +03:00
parent c4ada53b0d
commit a5939ccb34
6 changed files with 21 additions and 14 deletions

View File

@ -300,7 +300,7 @@ android {
}
}
defaultConfig.versionCode = 2291
defaultConfig.versionCode = 2293
applicationVariants.all { variant ->
variant.outputs.all { output ->
@ -319,7 +319,7 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 29
versionName "7.7.1"
versionName "7.7.2"
vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']

View File

@ -219,7 +219,7 @@ static int writeOggPage(ogg_page *page, FILE *os) {
return written;
}
const opus_int32 bitrate = 25000;
const opus_int32 bitrate = 30 * 1024;
const opus_int32 frame_size = 960;
const int with_cvbr = 1;
const int max_ogg_delay = 0;

View File

@ -18,7 +18,7 @@ public class BuildVars {
public static boolean LOGS_ENABLED = false;
public static boolean USE_CLOUD_STRINGS = true;
public static boolean CHECK_UPDATES = true;
public static int BUILD_VERSION = 2291;
public static int BUILD_VERSION = 2293;
public static String BUILD_VERSION_STRING = "7.7.0";
public static int APP_ID = 4;
public static String APP_HASH = "014b35b6184100b085b0d0572f9b5103";

View File

@ -1214,8 +1214,11 @@ public class LocaleController {
}
String result = (discount ? "-" : "") + format.format(doubleAmount);
int idx = result.indexOf(type);
if (idx >= 0 && result.charAt(idx + type.length()) != ' ') {
result = result.substring(0, idx + type.length()) + " " + result.substring(idx + type.length());
if (idx >= 0) {
idx += type.length();
if (idx < result.length() && result.charAt(idx + type.length()) != ' ') {
result = result.substring(0, idx + type.length()) + " " + result.substring(idx + type.length());
}
}
return result;
}

View File

@ -6686,14 +6686,18 @@ public class MessagesStorage extends BaseController {
}
cursor.dispose();
}
if (messageIdsToFix != null) { //TODO remove later
if (messageIdsToFix != null) {
SQLitePreparedStatement state = database.executeFast("UPDATE messages SET mid = ? WHERE mid = ?");
for (int a = 0, N = messageIdsToFix.size(); a < N; a++) {
long id = messageIdsToFix.get(a);
state.requery();
state.bindLong(1, (int) id);
state.bindLong(2, id);
state.step();
try {
for (int a = 0, N = messageIdsToFix.size(); a < N; a++) {
long id = messageIdsToFix.get(a);
state.requery();
state.bindLong(1, (int) id);
state.bindLong(2, id);
state.step();
}
} catch (Exception e) {
FileLog.e(e);
}
state.dispose();
}

View File

@ -17743,7 +17743,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
CharSequence draftMessage = null;
MessageObject replyMessage = null;
boolean searchWebpage = true;
if (!ignoreAttachOnPause && chatActivityEnterView != null && bottomOverlayChat.getVisibility() != View.VISIBLE) {
if (!ignoreAttachOnPause && chatActivityEnterView != null && bottomOverlayChat != null && bottomOverlayChat.getVisibility() != View.VISIBLE) {
chatActivityEnterView.onPause();
replyMessage = replyingMessageObject;
if (!chatActivityEnterView.isEditingMessage()) {