mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Fix crash when entering chats on devices with odd security enforcement.
This commit is contained in:
@@ -42,7 +42,7 @@ public class SmsCharacterCalculator extends CharacterCalculator {
|
|||||||
charactersSpent = messageBody.length();
|
charactersSpent = messageBody.length();
|
||||||
charactersRemaining = 1000;
|
charactersRemaining = 1000;
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
if (e.getCause() instanceof SecurityException) {
|
if (e instanceof SecurityException || e.getCause() instanceof SecurityException) {
|
||||||
Log.e(TAG, "Security Exception", e);
|
Log.e(TAG, "Security Exception", e);
|
||||||
messagesSpent = 1;
|
messagesSpent = 1;
|
||||||
charactersSpent = messageBody.length();
|
charactersSpent = messageBody.length();
|
||||||
|
|||||||
Reference in New Issue
Block a user