Fix crash that can occur when using non-standard font sizes.

This commit is contained in:
Greyson Parrelli
2022-06-14 17:32:26 -04:00
parent fb9a9b7c96
commit fcef6f965d
4 changed files with 32 additions and 12 deletions

View File

@@ -498,7 +498,7 @@ public class TextSecurePreferences {
* @deprecated Use {@link SettingsValues#getMessageFontSize()} via {@link org.thoughtcrime.securesms.keyvalue.SignalStore} instead.
*/
public static int getMessageBodyTextSize(Context context) {
return Integer.valueOf(getStringPreference(context, MESSAGE_BODY_TEXT_SIZE_PREF, "16"));
return Integer.parseInt(getStringPreference(context, MESSAGE_BODY_TEXT_SIZE_PREF, "16"));
}
public static boolean isTurnOnly(Context context) {