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 -> applicationVariants.all { variant ->
variant.outputs.all { output -> variant.outputs.all { output ->
@ -319,7 +319,7 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 29 targetSdkVersion 29
versionName "7.7.1" versionName "7.7.2"
vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi'] vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']

View file

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

View file

@ -18,7 +18,7 @@ public class BuildVars {
public static boolean LOGS_ENABLED = false; public static boolean LOGS_ENABLED = false;
public static boolean USE_CLOUD_STRINGS = true; public static boolean USE_CLOUD_STRINGS = true;
public static boolean CHECK_UPDATES = 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 String BUILD_VERSION_STRING = "7.7.0";
public static int APP_ID = 4; public static int APP_ID = 4;
public static String APP_HASH = "014b35b6184100b085b0d0572f9b5103"; public static String APP_HASH = "014b35b6184100b085b0d0572f9b5103";

View file

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

View file

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

View file

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