Fix some potential crashes

This commit is contained in:
tom79 2019-08-24 17:45:02 +02:00
parent 0a2c75d64a
commit 98a3373f50
3 changed files with 15 additions and 3 deletions

View File

@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion 18
targetSdkVersion 29
versionCode 307
versionName "2.16.0-beta-1"
versionCode 308
versionName "2.16.0"
multiDexEnabled true
renderscriptTargetApi 28 as int
renderscriptSupportModeEnabled true

View File

@ -651,7 +651,7 @@ public class Status implements Parcelable{
i++;
}
status.setImageURL(imgs);
content = content.replaceAll("(<\\s?p\\s?>)&gt;(((?!(<\\/p>)|(<br)).){5,})(<\\s?\\/p\\s?><\\s?p\\s?>|<\\s?br\\s?\\/?>)","<blockquote>$2</blockquote><p>");
content = content.replaceAll("(<\\s?p\\s?>)&gt;(((?!(<\\/p>)|(<br)).){5,})(<\\s?\\/p\\s?><\\s?p\\s?>|<\\s?br\\s?\\/?>|<\\s?\\/p\\s?>$)","<blockquote>$2</blockquote><p>");
content = content.replaceAll("^<\\s?p\\s?>(.*)<\\s?\\/p\\s?>$","$1");
spannableStringContent = new SpannableString(content);
final int[] j = {0};

View File

@ -0,0 +1,12 @@
Added
- Select data to remove in database with the cache cleaner
- Animated emojis in picker
Changed
- Easier feature for cropping media
- Improve quotes
Fixed
- Potential crashes when switching between accounts
- Autocomplete (Emoji+tag) removed a letter
- Fix recent crashes