Commit Graph

425 Commits

Author SHA1 Message Date
Robbie Page
f85b5312e6 Add share activity 2020-07-12 20:52:41 +02:00
fn
85c255e462 Show appicon in notifications 2020-06-18 16:03:57 +00:00
Jannis Mattheis
91dfd881e1 Fix not working scheduled reconnect
Documentation for postDelayed:
> Causes the Runnable r to be added to the message queue, to be run
> after the specified amount of time elapses.
> The runnable will be run on the thread to which this handler
> is attached.
> <b>The time-base is {@link android.os.SystemClock#uptimeMillis}.</b>
> Time spent in deep sleep will add an additional delay to execution.

TL;DR: if the CPU is in deep sleep, the postDelayed runnable won't be executed.
2020-06-13 11:37:14 +02:00
Jannis Mattheis
fe9e431a2b Delete client on logout
`api.deleteClient()` only create a call but doesn't execute it.
2020-05-30 19:38:02 +02:00
Jannis Mattheis
b35eb06949 Version 2.0.12 2020-05-09 18:38:25 +02:00
Jannis Mattheis
ee36b6aa8a Add dark mode 2020-05-09 18:37:35 +02:00
Jannis Mattheis
91be6fa72e Update dependencies 2020-05-09 18:37:35 +02:00
Jannis Mattheis
e4adb21def Version 2.0.11 2020-05-04 16:33:55 +02:00
Jannis Mattheis
0f8b82ed86 Load data: urls in markdown 2020-05-04 16:12:19 +02:00
Jannis Mattheis
96ad18a573 Make text in logs view selectable
disable updating when text is selected

Closes #105
2020-03-29 09:24:18 +02:00
Jannis Mattheis
0215517806 Add snackbar for successful copy logs 2020-03-29 09:11:59 +02:00
happymario
13a889e195 Make logs copyable 2020-03-29 09:11:45 +02:00
leopoldsedev
df71fc1820 Truncate precise timestamp to seconds. 2020-02-27 17:20:03 +01:00
leopoldsedev
1fb40f2f39 Rename content to context. 2020-02-27 17:20:03 +01:00
leopoldsedev
077eaff084 Show precise timestamp when pressing on message time (closes #90). 2020-02-27 17:20:03 +01:00
leopoldsedev
10b6741cd5 Make remaining public methods synchronized. 2020-02-18 20:02:52 +01:00
leopoldsedev
48c2806d12 Adapt delete button code to fit with other changes. 2020-02-18 20:02:52 +01:00
leopoldsedev
f49900e0ef Revert "Remove message delete button."
This reverts commit b0e85623861e48abb1c6fb49800234f453fc82ee.
2020-02-18 20:02:52 +01:00
leopoldsedev
8d4a331bba Rework undo deletion logic.
Previously the MessageFacade and MessageStateHolder both had their own
state of the last deleted message, which was redundant. Now only
MessageStateHolder governs the state of a pending deletion and
MessageFacade handles commiting the deletion to the server.
2020-02-18 20:02:52 +01:00
leopoldsedev
0ebeeec35e Make new methods for undoing deletions synchronized. 2020-02-18 20:02:52 +01:00
leopoldsedev
dc9426bbae Change swipe color to softer red. 2020-02-18 20:02:52 +01:00
leopoldsedev
ed8689daa0 Add null-check of swipe icon. 2020-02-18 20:02:52 +01:00
leopoldsedev
6b00bfb63c Don't scroll to position when undoing a deletion.
This seems to cause an issue where onSwipe is not being called anymore
afterwards. Steps to reproduce:
1. Delete a message
2. Scroll a little bit down
3. Undo delete
4. Try delete again
-> Swiping works, but callback is not being called.
2020-02-18 20:02:52 +01:00
leopoldsedev
c22c8c1417 Implement undo snackbar when deleting messages by swiping.
When swiping away a message it is only removed from the local message
lists and a snackbar appears. When the snackbar is dismissed or the user
deletes another message the delete request is sent to the server. If the
user presses "undo" on the snackbar the message is reinserted into the
local lists at its previous position.
2020-02-18 20:02:52 +01:00
leopoldsedev
1d0ec1fe30 Remove message delete button. 2020-02-18 20:02:52 +01:00
leopoldsedev
5905e84d13 Add background color and icon when swiping. 2020-02-18 20:02:52 +01:00
leopoldsedev
5fa5711f36 Implement swiping left/right to delete messages (closes #38). 2020-02-18 20:02:52 +01:00
leopoldsedev
fd07cad969 Replace ListView with RecyclerView for the message list. 2020-02-18 20:02:52 +01:00
Michael Zöller
668e050add Add handling for extra "android::action:onReceive:intentUrl" 2020-02-17 17:09:38 +01:00
leopoldsedev
f8422f4ef1 Fix SwipeRefreshLayout and ListView interaction.
Scrolling interaction works out of the box only if ListView is the only
child of SwipeRefreshLayout.
See https://stackoverflow.com/a/26296897
2020-02-11 18:45:29 +01:00
leopoldsedev
737ad194e9 Various UI enhancements.
- Add information (link to documentation) when no messages are present
- Add example URL in LoginActivity to indicate the expected format
- Fix capitalization in UI
2020-02-11 18:45:29 +01:00
leopoldsedev
15f4e8647f Fix freeze when login URL has trailing whitespace.
The problem is that HttpUrl.parse parses URLs with trailing whitespace without problems, but during the URL parsing in ClientFactory an exception is thrown in that case.
Other errors when instantiating the API client are now handled as well.
2020-02-11 17:35:15 +01:00
mzoeller
7116ef522c Clear notifications on open app (#93) 2020-02-06 18:39:44 +01:00
Jannis Mattheis
f043bef039 Version 2.0.10 2020-02-05 20:15:18 +01:00
mzoeller
a4cbd885d0 Add support for opening urls when clicking on notifications (#91) 2020-02-05 19:13:06 +01:00
Jannis Mattheis
a5b5041d51 Version 2.0.9 2019-12-14 10:18:16 +01:00
Dylan Parker
9571898287 Add cache for images (#88) 2019-12-14 08:57:39 +00:00
Jannis Mattheis
cbc4e4a30b Add message priority to readme 2019-11-28 23:20:19 +01:00
Jannis Mattheis
d4de6dc366 Version 2.0.8 2019-11-28 22:52:08 +01:00
Jannis Mattheis
c413114702 Update compile sdk 2019-11-28 22:52:08 +01:00
Jannis Mattheis
de49792133 Update butterknife 2019-11-28 22:52:08 +01:00
Jannis Mattheis
d9113a8a95 Update markwon 2019-11-28 22:52:08 +01:00
Jannis Mattheis
7bc34df352 Update spotless 2019-11-28 22:52:08 +01:00
Jannis Mattheis
23b1b889c8 Update android lib deps 2019-11-28 22:52:08 +01:00
Jannis Mattheis
211f8c7a87 Version 2.0.7 2019-04-14 14:56:33 +02:00
Jannis Mattheis
ef6ea30162 Add gif & tables plugin 2019-04-14 14:54:29 +02:00
Jannis Mattheis
5a9fced30d Images plugin allows images 2019-04-14 14:54:29 +02:00
Jannis Mattheis
69af6786ee MovementPlugin fixes clicking links
Without this plugin links aren't clickable.
2019-04-14 14:54:29 +02:00
Jannis Mattheis
eb515673f4 Autolink web prevents other markdown links from beeing rendered 2019-04-14 14:54:29 +02:00
Jannis Mattheis
be2b1e3528 Use extra property to determine the content of messages 2019-04-07 14:39:18 +02:00