briar merge requestshttps://code.briarproject.org/briar/briar/-/merge_requests2019-02-06T14:46:34Zhttps://code.briarproject.org/briar/briar/-/merge_requests/1032Add a setting to disable Tor when running on battery2019-02-06T14:46:34ZTorsten GroteAdd a setting to disable Tor when running on batteryCloses #978Closes #978Android 1.1https://code.briarproject.org/briar/briar/-/merge_requests/1028Use a unique transition name for each AttachmentItem2019-01-11T16:54:25ZakwizgranUse a unique transition name for each AttachmentItemPart of #1475Part of #1475Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1026Add tests for parsing image sizes2019-01-15T17:26:56ZTorsten GroteAdd tests for parsing image sizesUnfortunately, we can't use Roboelectric for the tests, because they use a shadow BitmapFactory that behaves differently from the one on a real device. Therefore, the tests are in `androidTest` and need to run on actual devices.
One mor...Unfortunately, we can't use Roboelectric for the tests, because they use a shadow BitmapFactory that behaves differently from the one on a real device. Therefore, the tests are in `androidTest` and need to run on actual devices.
One more piece of #1468Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1019Find out if contacts support image attachments and enable them2019-01-15T15:35:49ZTorsten GroteFind out if contacts support image attachments and enable themThere's a dialog when the feature is not yet supported:
![device-2018-12-17-150003](/uploads/c0619a5dec83ac9879d19a1ed4d23bfe/device-2018-12-17-150003.png)
This MR also shows an onboarding the first time, the feature gets activated:
!...There's a dialog when the feature is not yet supported:
![device-2018-12-17-150003](/uploads/c0619a5dec83ac9879d19a1ed4d23bfe/device-2018-12-17-150003.png)
This MR also shows an onboarding the first time, the feature gets activated:
![device-2018-12-17-145503](/uploads/0baf348ce22601d8213b837a8290f8d5/device-2018-12-17-145503.png)
Closes #1477Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1018Fix first issues related to image size2018-12-17T12:48:15ZTorsten GroteFix first issues related to image sizeThis adds a read limit to the streams we use to find out the dimensions of image attachments to prevent them from getting loaded into memory.
Scale down large images in full screen view to prevent too large textures.
This MR also incre...This adds a read limit to the streams we use to find out the dimensions of image attachments to prevent them from getting loaded into memory.
Scale down large images in full screen view to prevent too large textures.
This MR also increases the zoom levels of PhotoView a bit.
First part of #1468Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1017[android] Clarify the meaning of image save state2018-12-17T11:17:13ZTorsten Grote[android] Clarify the meaning of image save stateThis also fixes a state bug, where successful save was indicated when it should have been an error.This also fixes a state bug, where successful save was indicated when it should have been an error.Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1016Resolve main issues with image transition animation2019-01-09T15:01:30ZTorsten GroteResolve main issues with image transition animationThis MR saves the conversation activity list position (only when the activity restarts or is recreated when killed) which hopefully addresses the spurious item overlapping issues.
It also fixes an issue where the animation sometimes was...This MR saves the conversation activity list position (only when the activity restarts or is recreated when killed) which hopefully addresses the spurious item overlapping issues.
It also fixes an issue where the animation sometimes wasn't played when clicking on an image in a message with several other images.
Finally, it resolves the broken return animation which was caused by a forced downscroll that the BriarRecyclerView performed when the toolbar was hidden. This might also help with the item overlapping issues.
First part of #1475Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1015UX for sending multiple image attachments2019-01-04T17:04:44ZTorsten GroteUX for sending multiple image attachments![device-2018-12-14-101546](/uploads/923a236f2b1fe94e6756b0c96eaea550/device-2018-12-14-101546.mp4)
An add-on for #1438![device-2018-12-14-101546](/uploads/923a236f2b1fe94e6756b0c96eaea550/device-2018-12-14-101546.mp4)
An add-on for #1438Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1014Add method for querying client minor version supported by contact2018-12-12T19:34:56ZakwizgranAdd method for querying client minor version supported by contactPart of #1477Part of #1477Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1012Swipe left/right in image screen for images from same message2018-12-13T16:33:25ZTorsten GroteSwipe left/right in image screen for images from same messageThis factors out the image display into a fragment, so that several images can be displayed in a view pager for left/right swiping. This is limited to attachments from the same message, because swiping between all the images in the conve...This factors out the image display into a fragment, so that several images can be displayed in a view pager for left/right swiping. This is limited to attachments from the same message, because swiping between all the images in the conversation is way more difficult to achieve.
The activity and the fragment communicate (mostly) via the ViewModel.
![device-2018-12-07-125623](/uploads/8d2608c9ff70aa231d9d6355efeecf2b/device-2018-12-07-125623.mp4)Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1010UX for displaying multiple image attachments2022-01-11T13:36:17ZTorsten GroteUX for displaying multiple image attachmentsThis MR shows multiple images in the private conversation where before only one image was shown. It is the bulk of the work to support multiple images. The RecyclerView it uses is recycling views over several distinct messages and can be...This MR shows multiple images in the private conversation where before only one image was shown. It is the bulk of the work to support multiple images. The RecyclerView it uses is recycling views over several distinct messages and can be used to display a preview of images to be attached as well.
For simplicity, multiple images within one message bubble are fixed to two columns. If a message contains an odd number of images, the last images will span both columns and get center cropped.
The corner rounding transformation has been replaced with a new one that allows us to specify a radius for each image's corner individually.
![device-2018-12-06-173309](/uploads/b64bd4229d6976c02600c06dc6d96a1a/device-2018-12-06-173309.png)
Closes #1473Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1008[headless] Add first integration test for ContactController2018-12-07T17:37:23ZTorsten Grote[headless] Add first integration test for ContactControllerFirst part of #1432First part of #1432Headless MVPhttps://code.briarproject.org/briar/briar/-/merge_requests/1007[api] Add interface for adding contacts remotely2018-12-10T10:53:38ZTorsten Grote[api] Add interface for adding contacts remotelyFirst part of #1232First part of #1232Android 1.2https://code.briarproject.org/briar/briar/-/merge_requests/1006Store attachments and actually attach them to sent messages2018-12-13T10:27:10ZTorsten GroteStore attachments and actually attach them to sent messagesThis MR moves message sending into the ConversationViewModel and adds support for sending image attachments to it.
Closes #1438This MR moves message sending into the ConversationViewModel and adds support for sending image attachments to it.
Closes #1438Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1005Allow the user to save image attachment outside of Briar2018-12-07T17:31:42ZTorsten GroteAllow the user to save image attachment outside of Briar![device-2018-11-26-202040](/uploads/dffeba06dca952bce666ee265c1bbbca/device-2018-11-26-202040.mp4)
One more part of #1242![device-2018-11-26-202040](/uploads/dffeba06dca952bce666ee265c1bbbca/device-2018-11-26-202040.mp4)
One more part of #1242Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1004Implement UX for sending image attachments2018-12-07T14:58:24ZTorsten GroteImplement UX for sending image attachmentsFirst part of #1438
![device-2018-11-27-181216](/uploads/a227a3ae6d054223ecf702575d835586/device-2018-11-27-181216.mp4)
![device-2018-11-26-131503](/uploads/5d3aac8bdd7a6bdeede260894d0028b9/device-2018-11-26-131503.png)First part of #1438
![device-2018-11-27-181216](/uploads/a227a3ae6d054223ecf702575d835586/device-2018-11-27-181216.mp4)
![device-2018-11-26-131503](/uploads/5d3aac8bdd7a6bdeede260894d0028b9/device-2018-11-26-131503.png)Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/1003Enable headless app to start on MacOS2018-11-26T12:01:28ZakwizgranEnable headless app to start on MacOSThis branch enables the headless app to start on MacOS. The app won't be useful until we've built a suitable Tor binary.This branch enables the headless app to start on MacOS. The app won't be useful until we've built a suitable Tor binary.Headless MVPhttps://code.briarproject.org/briar/briar/-/merge_requests/1000Only scroll conversation list to bottom, when already at bottom2019-06-17T09:31:02ZTorsten GroteOnly scroll conversation list to bottom, when already at bottomThis includes two extra small commits for things that didn't make it into !997:
* renaming static constant
* using IoUtils to close streams
Closes #1467This includes two extra small commits for things that didn't make it into !997:
* renaming static constant
* using IoUtils to close streams
Closes #1467Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/999Add ImageActivity to show image attachment in full-screen2018-11-30T18:04:57ZTorsten GroteAdd ImageActivity to show image attachment in full-screen![device-2018-11-20-105755](/uploads/539853f9f62bac78e349fb7ccb113d20/device-2018-11-20-105755.mp4)
Part of #1242![device-2018-11-20-105755](/uploads/539853f9f62bac78e349fb7ccb113d20/device-2018-11-20-105755.mp4)
Part of #1242Android 1.3https://code.briarproject.org/briar/briar/-/merge_requests/997[android] display image attachments for conversation messages2018-11-28T16:57:23ZTorsten Grote[android] display image attachments for conversation messagesThis adds support for displaying image attachments with glide. It is just for showing the first image attachment of a message in the conversation. It doesn't support multiple images and images are not yet clickable.
I test this on API...This adds support for displaying image attachments with glide. It is just for showing the first image attachment of a message in the conversation. It doesn't support multiple images and images are not yet clickable.
I test this on API 16, API 22 and API 28.
Before (master):
![device-2018-11-15-120944](/uploads/3e447a66689c2e72ae2a15e0ef0332a0/device-2018-11-15-120944.png)
After (this MR):
![device-2018-11-15-120729](/uploads/cbd199697381cf10e5cdee405258c5b1/device-2018-11-15-120729.png)
With fake images injected:
![device-2018-11-14-195657](/uploads/c21414ac7dd5e5ece638d9d5938a0b29/device-2018-11-14-195657.mp4)
First and biggest part of #1242Android 1.3