Torsten Grote
a53345a3c9
[android] scroll down when new messages arrive while conversation is visible
...
Also shows new message notification when ConversationActivity is paused
2019-01-09 14:30:56 +00:00
Torsten Grote
ed8c09282d
[android] enable image shared element transition for API 21+22
...
There's an Android framework bug (#224270 ) on these APIs that causes a NPE
when the shared element is not visible anymore when returning.
Since we know restore the list position, the shared element should be
visible and thus not produce NPEs anymore.
2019-01-09 14:30:56 +00:00
Torsten Grote
42197b5b5c
[android] Fix enter transition to fullscreen ImageActivity
2019-01-09 14:30:56 +00:00
Torsten Grote
374fc7035b
[android] Save and restore list position of conversation across restarts
2019-01-09 14:30:55 +00:00
akwizgran
9b796c7cc3
Merge branch '1438-send-image-attachments-multiple' into 'master'
...
UX for sending multiple image attachments
See merge request briar/briar!1015
2019-01-04 17:04:43 +00:00
akwizgran
532edff642
Minor code cleanups.
2019-01-04 16:55:29 +00:00
akwizgran
6857252471
Merge branch '1480-window-background' into 'master'
...
[android] Change light theme background color closer to white
See merge request briar/briar!1020
2018-12-21 16:48:18 +00:00
Torsten Grote
c229e19452
[android] remove images from preview that could not be loaded
...
We will not even attempt to attach them
2018-12-21 11:05:34 -02:00
Torsten Grote
42bca09d16
[android] Add gap between attached image previews
2018-12-21 11:05:34 -02:00
Torsten Grote
9eacbfa659
[android] Remove palette library
...
we are not extracting photo colors anymore
2018-12-21 11:05:34 -02:00
Torsten Grote
f14e546dc6
[android] allow to attach multiple images
2018-12-21 11:05:34 -02:00
akwizgran
684c64a1d9
Merge branch '1310-disable-enter-transition-for-samsung7' into 'master'
...
[android] Disable Conversation Enter Transition for Samsung 7 devices
Closes #1310
See merge request briar/briar!1023
2018-12-19 11:32:51 +00:00
akwizgran
6fdab959b1
Merge branch '631-inject-fragments-early' into 'master'
...
Inject fragments earlier in their lifecycle
Closes #631
See merge request briar/briar!1024
2018-12-19 11:24:31 +00:00
Torsten Grote
c8487483ff
[android] Also consider Android 7.1 (API 25) to be Samsung7
...
which is used for disabling certain features due to crashes there.
2018-12-18 18:17:27 -02:00
Torsten Grote
a159b23dc0
[android] Disable Conversation Enter Transition for Samsung 7 devices
2018-12-18 18:16:32 -02:00
Torsten Grote
5070a27a83
[android] also fix some activity nullability issues
2018-12-18 18:12:05 -02:00
Torsten Grote
9ce73a6840
[android] inject fragments already in onAttach()
...
This also removes the need to override the inject method even when
there's nothing to inject.
While passing over all fragments, some nullability issues also have been
addressed.
2018-12-18 18:01:04 -02:00
akwizgran
6e9928f20f
Merge branch '1484-wait-for-component-to-be-created' into 'master'
...
[android] AliasFragment: Wait for activity component to be created
Closes #1484
See merge request briar/briar!1022
2018-12-18 17:46:19 +00:00
Torsten Grote
b31d61afc5
[android] AliasFragment: Wait for activity component to be created
...
before injecting the ViewModel
2018-12-18 15:32:26 -02:00
akwizgran
5a99cb93cc
Merge branch '1482-check-earlier-for-sign-in' into 'master'
...
[android] don't crash when re-opening conversation after briar exited
Closes #1482
See merge request briar/briar!1021
2018-12-18 12:58:39 +00:00
Torsten Grote
d0bbebd25e
[android] don't crash when re-opening conversation after briar exited
2018-12-17 18:42:06 -02:00
Torsten Grote
4307d26606
[android] Change light theme background color closer to white
2018-12-17 17:25:12 -02:00
akwizgran
0089c1ac6d
Merge branch '1468-restrict-image-size' into 'master'
...
Fix first issues related to image size
See merge request briar/briar!1018
2018-12-17 12:48:15 +00:00
akwizgran
a37b6d81ed
Merge branch '1242-save-snackbar-fix' into 'master'
...
[android] Clarify the meaning of image save state
See merge request briar/briar!1017
2018-12-17 11:17:12 +00:00
Torsten Grote
1d09a6708a
[android] don't ever load an entire image into memory
...
This happens on API 27+28 if loading TIFF or WebP files.
Using an InputStream with a read limit prevents this.
2018-12-14 20:11:43 -02:00
Torsten Grote
d3b6f484c8
[android] allow image transformations in full-screen view
...
to prevent crashes from huge images
2018-12-14 20:11:43 -02:00
Torsten Grote
039c6edb66
[android] increase scale levels of PhotoView
2018-12-14 20:11:43 -02:00
Torsten Grote
8b9f89eab2
[android] Clarify the meaning of image save state
2018-12-14 12:27:47 -02:00
akwizgran
1e2c17b170
Merge branch '1242-display-image-attachments-multiple' into 'master'
...
Swipe left/right in image screen for images from same message
See merge request briar/briar!1012
2018-12-13 16:33:24 +00:00
Torsten Grote
a994966095
[android] address review comments for image fullscreen swiping
2018-12-13 12:00:51 -02:00
Torsten Grote
2bea581654
[android] Swipe left/right in image screen to see other images from the same message
2018-12-13 11:59:41 -02:00
Torsten Grote
87377666aa
Merge branch '1473-display-multiple-images' into 'master'
...
UX for displaying multiple image attachments
Closes #1473
See merge request briar/briar!1010
2018-12-13 13:07:24 +00:00
akwizgran
9d07b2e141
Resolve merge conflicts.
...
# Conflicts:
# briar-android/src/main/java/org/briarproject/briar/android/conversation/AttachmentController.java
# briar-android/src/main/java/org/briarproject/briar/android/util/UiUtils.java
2018-12-13 11:41:04 +00:00
akwizgran
5c312b49e2
Merge branch '1438-send-image-attachments' into 'master'
...
Store attachments and actually attach them to sent messages
Closes #1438
See merge request briar/briar!1006
2018-12-13 10:27:09 +00:00
Torsten Grote
f56efe45cd
Merge branch '1477-get-client-minor-version' into 'master'
...
Add method for querying client minor version supported by contact
See merge request briar/briar!1014
2018-12-12 19:34:55 +00:00
Torsten Grote
2332a58681
[android] address review comments for displaying multiple images
2018-12-12 17:00:44 -02:00
Torsten Grote
8c6dfaa196
[android] Use @UiThread instead of @MainThread
2018-12-12 16:18:43 -02:00
Torsten Grote
3cfb04b60d
Establish some rules for handling InputStreams
...
* Methods shouldn't place any special requirements on the streams
passed into them
* This implies that if a stream's going to be marked and reset,
that should all happen within one method
* This also implies that if a method needs to mark and reset a stream,
it should wrap the stream in a BufferedInputStream before doing so,
rather than requiring a markable stream to be passed in
2018-12-12 16:17:50 -02:00
Torsten Grote
e85fbfb952
[android] close InputStream with new IoUtils method
2018-12-12 16:17:50 -02:00
Torsten Grote
80ee35d926
[core] Return fake mini PNG as Attachment instead of throwing exception
2018-12-12 16:17:50 -02:00
Torsten Grote
4796902b9c
[android] store attachments and actually attach them to sent messages
2018-12-12 16:17:50 -02:00
akwizgran
149e67c0f7
Reduce code duplication in tests.
2018-12-12 11:57:35 +00:00
akwizgran
1d5214117f
Add tests for getClientMinorVersion().
2018-12-11 17:55:39 +00:00
akwizgran
b8f248ca9c
Add tests for getClientVisibility().
2018-12-11 17:51:42 +00:00
Torsten Grote
dfb71a03a5
[android] Only retrieve image sizes for single images in messages
...
We need to do this to know the height of messages when binding the view.
The size of single images can be different (e.g. due to orientation).
For multiple images, we use a fixed size, so no retrieval is required.
2018-12-11 15:38:05 -02:00
Torsten Grote
961fdc8e72
[android] Show multiple images in message bubble
2018-12-11 15:28:21 -02:00
Torsten Grote
c3d44663cd
[android] Use a nested RecyclerView with a single items to show image attachments
...
This is preparation for showing multiple image attachments in one
message bubble.
2018-12-11 15:28:21 -02:00
akwizgran
0081472489
Add method for querying contact's client minor version.
2018-12-11 17:25:29 +00:00
akwizgran
cdf4f3a24b
Merge branch '1232-add-contacts-remotely-api' into 'master'
...
[api] Add interface for adding contacts remotely
See merge request briar/briar!1007
2018-12-10 10:53:37 +00:00
Torsten Grote
fb1d8e860f
[api] Add interface for adding contacts remotely
2018-12-10 08:30:50 -02:00