Skip to content

Commit a5939cc

Browse files
committed
Update to 7.7.2 (2293)
1 parent c4ada53 commit a5939cc

File tree

6 files changed

+21
-14
lines changed

6 files changed

+21
-14
lines changed

TMessagesProj/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ android {
300300
}
301301
}
302302

303-
defaultConfig.versionCode = 2291
303+
defaultConfig.versionCode = 2293
304304

305305
applicationVariants.all { variant ->
306306
variant.outputs.all { output ->
@@ -319,7 +319,7 @@ android {
319319
defaultConfig {
320320
minSdkVersion 16
321321
targetSdkVersion 29
322-
versionName "7.7.1"
322+
versionName "7.7.2"
323323

324324
vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']
325325

TMessagesProj/jni/audio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static int writeOggPage(ogg_page *page, FILE *os) {
219219
return written;
220220
}
221221

222-
const opus_int32 bitrate = 25000;
222+
const opus_int32 bitrate = 30 * 1024;
223223
const opus_int32 frame_size = 960;
224224
const int with_cvbr = 1;
225225
const int max_ogg_delay = 0;

TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class BuildVars {
1818
public static boolean LOGS_ENABLED = false;
1919
public static boolean USE_CLOUD_STRINGS = true;
2020
public static boolean CHECK_UPDATES = true;
21-
public static int BUILD_VERSION = 2291;
21+
public static int BUILD_VERSION = 2293;
2222
public static String BUILD_VERSION_STRING = "7.7.0";
2323
public static int APP_ID = 4;
2424
public static String APP_HASH = "014b35b6184100b085b0d0572f9b5103";

TMessagesProj/src/main/java/org/telegram/messenger/LocaleController.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -1214,8 +1214,11 @@ public String formatCurrencyString(long amount, boolean fixAnything, boolean wit
12141214
}
12151215
String result = (discount ? "-" : "") + format.format(doubleAmount);
12161216
int idx = result.indexOf(type);
1217-
if (idx >= 0 && result.charAt(idx + type.length()) != ' ') {
1218-
result = result.substring(0, idx + type.length()) + " " + result.substring(idx + type.length());
1217+
if (idx >= 0) {
1218+
idx += type.length();
1219+
if (idx < result.length() && result.charAt(idx + type.length()) != ' ') {
1220+
result = result.substring(0, idx + type.length()) + " " + result.substring(idx + type.length());
1221+
}
12191222
}
12201223
return result;
12211224
}

TMessagesProj/src/main/java/org/telegram/messenger/MessagesStorage.java

+11-7
Original file line numberDiff line numberDiff line change
@@ -6686,14 +6686,18 @@ public Runnable getMessagesInternal(long dialogId, long mergeDialogId, int count
66866686
}
66876687
cursor.dispose();
66886688
}
6689-
if (messageIdsToFix != null) { //TODO remove later
6689+
if (messageIdsToFix != null) {
66906690
SQLitePreparedStatement state = database.executeFast("UPDATE messages SET mid = ? WHERE mid = ?");
6691-
for (int a = 0, N = messageIdsToFix.size(); a < N; a++) {
6692-
long id = messageIdsToFix.get(a);
6693-
state.requery();
6694-
state.bindLong(1, (int) id);
6695-
state.bindLong(2, id);
6696-
state.step();
6691+
try {
6692+
for (int a = 0, N = messageIdsToFix.size(); a < N; a++) {
6693+
long id = messageIdsToFix.get(a);
6694+
state.requery();
6695+
state.bindLong(1, (int) id);
6696+
state.bindLong(2, id);
6697+
state.step();
6698+
}
6699+
} catch (Exception e) {
6700+
FileLog.e(e);
66976701
}
66986702
state.dispose();
66996703
}

TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -17743,7 +17743,7 @@ public void onPause() {
1774317743
CharSequence draftMessage = null;
1774417744
MessageObject replyMessage = null;
1774517745
boolean searchWebpage = true;
17746-
if (!ignoreAttachOnPause && chatActivityEnterView != null && bottomOverlayChat.getVisibility() != View.VISIBLE) {
17746+
if (!ignoreAttachOnPause && chatActivityEnterView != null && bottomOverlayChat != null && bottomOverlayChat.getVisibility() != View.VISIBLE) {
1774717747
chatActivityEnterView.onPause();
1774817748
replyMessage = replyingMessageObject;
1774917749
if (!chatActivityEnterView.isEditingMessage()) {

0 commit comments

Comments
 (0)