diff --git a/TMessagesProj/src/main/java/org/telegram/PhoneFormat/CallingCodeInfo.java b/TMessagesProj/src/main/java/org/telegram/PhoneFormat/CallingCodeInfo.java index 87e6e008..666d508a 100644 --- a/TMessagesProj/src/main/java/org/telegram/PhoneFormat/CallingCodeInfo.java +++ b/TMessagesProj/src/main/java/org/telegram/PhoneFormat/CallingCodeInfo.java @@ -27,11 +27,11 @@ package org.telegram.PhoneFormat; import java.util.ArrayList; public class CallingCodeInfo { - public ArrayList countries; - public String callingCode; - public ArrayList trunkPrefixes; - public ArrayList intlPrefixes; - public ArrayList ruleSets; + public ArrayList countries = new ArrayList(); + public String callingCode = ""; + public ArrayList trunkPrefixes = new ArrayList(); + public ArrayList intlPrefixes = new ArrayList(); + public ArrayList ruleSets = new ArrayList(); //public ArrayList formatStrings; String matchingAccessCode(String str) { diff --git a/TMessagesProj/src/main/java/org/telegram/PhoneFormat/RuleSet.java b/TMessagesProj/src/main/java/org/telegram/PhoneFormat/RuleSet.java index e4668899..5b7ecacf 100644 --- a/TMessagesProj/src/main/java/org/telegram/PhoneFormat/RuleSet.java +++ b/TMessagesProj/src/main/java/org/telegram/PhoneFormat/RuleSet.java @@ -30,7 +30,7 @@ import java.util.regex.Pattern; public class RuleSet { public int matchLen; - public ArrayList rules; + public ArrayList rules = new ArrayList(); public boolean hasRuleWithIntlPrefix; public boolean hasRuleWithTrunkPrefix; public static Pattern pattern = Pattern.compile("[0-9]+"); diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java b/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java index 1650af23..f58f7b08 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java @@ -831,7 +831,7 @@ public class MediaController implements NotificationCenter.NotificationCenterDel recordDialogId = dialog_id; fileBuffer.rewind(); - if (android.os.Build.VERSION.SDK_INT >= 16) { + /*if (android.os.Build.VERSION.SDK_INT >= 16) { some devices crash with it AutomaticGainControl agc = null; try { if (AutomaticGainControl.isAvailable()) { @@ -850,7 +850,7 @@ public class MediaController implements NotificationCenter.NotificationCenterDel } FileLog.e("tmessages", e); } - } + }*/ audioRecorder.startRecording(); } catch (Exception e) {