Commit Graph

282 Commits

Author SHA1 Message Date
Niko Diamadis
b2f186aadf Fix workflow build lint error 2022-10-29 17:33:32 +02:00
Niko Diamadis
cd47c0a841 Update targetSdkVersion to 33 2022-10-29 17:33:32 +02:00
Niko Diamadis
d7cd9a24b0 Satisfy new PendingIntent requirements for api version 31 2022-10-22 11:57:24 +02:00
quthla
16263a72cd Change wording 2022-10-17 23:35:48 +02:00
Niko Diamadis
ad809d149c Replace Butterknife code with ViewBinding 2022-10-11 23:04:58 +02:00
Niko Diamadis
9596fbd14f Implement compact message layout in Adapter 2022-10-10 18:54:23 +02:00
Niko Diamadis
918f4a54a3 Fill xml message layouts with dummy values 2022-10-10 18:54:23 +02:00
Niko Diamadis
c3516efac4 Add compact message layout 2022-10-10 18:54:23 +02:00
Niko Diamadis
cc8f78ded5 Add message layout setting to SettingsPage (incl. restart dialog) 2022-10-10 18:54:23 +02:00
Pander
9a39296c64 Update notification logo (#243) 2022-09-19 11:58:47 +00:00
Sternagfonkel
7fd8ee06e1 Fix link color for dark mode 2022-04-08 16:48:49 +00:00
Sternagfonkel
58cb8b55ef Build Variant for development (#220)
Co-authored-by: Matthias Weis <matthias1.weis@web.de>
2022-03-19 19:16:20 +00:00
Sternagfonkel
bd5b8b2c15 Refactor foreground notification text 2022-02-27 20:02:45 +00:00
Sternagfonkel
09ccd4d2e2 Keep selected application on screen rotation 2022-01-30 09:02:28 +00:00
Jannis Mattheis
0f008acb7f Fix crash on share when not loggedin
java.lang.RuntimeException:
      at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2957)
      at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3032)
      at android.app.ActivityThread.-wrap11 (Unknown Source)
      at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1696)
      at android.os.Handler.dispatchMessage (Handler.java:105)
      at android.os.Looper.loop (Looper.java:164)
      at android.app.ActivityThread.main (ActivityThread.java:6944)
      at java.lang.reflect.Method.invoke (Native Method)
      at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
      at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
    Caused by: java.lang.IllegalArgumentException:
      at okhttp3.HttpUrl$Builder.parse (HttpUrl.java:1333)
      at okhttp3.HttpUrl.get (HttpUrl.java:916)
      at retrofit2.Retrofit$Builder.baseUrl (Retrofit.java:458)
      at com.github.gotify.api.ClientFactory.defaultClient (ClientFactory.java:47)
      at com.github.gotify.api.ClientFactory.clientToken (ClientFactory.java:28)
      at com.github.gotify.sharing.ShareActivity.onCreate (ShareActivity.java:82)
      at android.app.Activity.performCreate (Activity.java:7183)
      at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1220)
      at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2910)
2022-01-09 15:17:32 +01:00
Jannis Mattheis
2a72853f13 Fix NPE
Fixes #81
2022-01-09 15:09:22 +01:00
Nikolay Gruychev
f5988754fa Add client::notification.bigImageUrl extra
closes #185
2021-12-02 19:13:04 +01:00
Sternagfonkel
9ba9405b0f Add markdown support to notifications 2021-08-21 17:56:42 +00:00
Sternagfonkel
cc2df7c7c2 Add markdown strike-through support (#183) 2021-08-02 14:35:10 +00:00
Sternagfonkel
b35d5af258 Disallow push message if no applications exist
Fixes #179
2021-07-27 18:20:19 +00:00
Jannis Mattheis
150bfd0d57 Remove reconnect callback 2021-04-18 08:52:24 +00:00
Jannis Mattheis
c45c19b968 Fix support for base64 images
Fixes 164
2021-04-01 20:20:41 +02:00
Jannis Mattheis
e7b376a501 Use table aware movement plugin
Fixes #136
2021-02-14 10:49:59 +01:00
RemiRigal
21e49d0852 Add absolute/relative time format setting
* Added setting to toggle precise date as default display

* Applied spotless

* Improved time format setting with a ListPreference

* Fixed default time format value in list preference

Co-authored-by: Rémi Rigal <remi.rigal@orange.com>
2021-02-14 08:51:19 +00:00
p1gp1g
107810dcb7 Add delete app option 2021-01-06 17:13:01 +00:00
Jannis Mattheis
612b7af3fb Increase timeout after reconnect 2020-09-10 16:21:23 +00:00
Jannis Mattheis
28beabf258 Ignore multiple reconnects 2020-09-10 16:21:23 +00:00
Jannis Mattheis
8f045e20f3 Reconnect on websocket close 2020-09-10 16:21:23 +00:00
Jannis Mattheis
31c96e2d15 Ignore events from already discarded websocket listeners 2020-09-10 16:21:23 +00:00
Rodrigo Sanabria
f3a0266694 Add long press option to copy content to clipboard (#135) 2020-08-26 16:56:19 +00:00
Rodrigo Sanabria
a3dd5e92a0 Fix #131 allow app to use user certificates 2020-08-24 20:44:08 +02:00
Jannis Mattheis
85d20e1f9e Use application index in menu items 2020-07-15 19:39:22 +02:00
Jannis Mattheis
b3b1e47cff Use long for ids 2020-07-13 19:41:39 +02:00
tomasvanagas
dea1e42820 Add inputs for the pushed message to share activity 2020-07-12 20:52:41 +02:00
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
ee36b6aa8a Add dark mode 2020-05-09 18:37:35 +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