Prepares release 2.22.1

This commit is contained in:
tom79 2019-10-20 18:40:12 +02:00
parent 7d0f6b68e7
commit e43bd3d7a9
3 changed files with 20 additions and 7 deletions

View File

@ -6,8 +6,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 29
versionCode 326
versionName "2.22.0"
versionCode 327
versionName "2.22.1"
multiDexEnabled true
renderscriptTargetApi 28 as int
renderscriptSupportModeEnabled true

View File

@ -3574,7 +3574,10 @@ public class Helper {
int width = Integer.valueOf(retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH));
int height = Integer.valueOf(retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT));
retriever.release();
int newHeight = height*DEFAULT_VIDEO_WIDTH/width;
int newHeight = height;
if( width > DEFAULT_VIDEO_WIDTH) {
newHeight = height * DEFAULT_VIDEO_WIDTH / width;
}
return SiliCompressor.with(context).compressVideo(getRealPathFromURI(context,uriFile), context.getCacheDir().getAbsolutePath()+"/compress/", DEFAULT_VIDEO_WIDTH, newHeight, DEFAULT_VIDEO_BITRATE);
} catch (Exception ignored) { }
}
@ -3652,8 +3655,6 @@ public class Helper {
}
byte[] data = bao.toByteArray();
bs = new ByteArrayInputStream(data);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
@ -3668,8 +3669,10 @@ public class Helper {
int width = Integer.valueOf(retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH));
int height = Integer.valueOf(retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT));
retriever.release();
int newHeight = height*DEFAULT_VIDEO_WIDTH/width;
int newHeight = height;
if( width > DEFAULT_VIDEO_WIDTH) {
newHeight = height * DEFAULT_VIDEO_WIDTH / width;
}
filePath = SiliCompressor.with(context).compressVideo(getRealPathFromURI(context,uriFile), context.getCacheDir().getAbsolutePath()+"/compress/", DEFAULT_VIDEO_WIDTH, newHeight, DEFAULT_VIDEO_BITRATE);
} catch (URISyntaxException e) {

View File

@ -0,0 +1,10 @@
Added
- Improve battery drain with delayed notifications
- Allow to reverse the list of our toots
- Bottom loader when loading long threads
Fixed
- Interacting with a post resets quick reply
- Timed mute does not mute boosts
- Upload compression for videos badly resized
- Proxy not working when uploading media