Commit Graph

13 Commits

Author SHA1 Message Date
Dylan Parker
9571898287 Add cache for images (#88) 2019-12-14 08:57:39 +00:00
Jannis Mattheis
3b2fc90569 Show full url in connection string 2019-03-08 11:41:36 +01:00
Jannis Mattheis
91ac373642 Update code to use new client 2019-02-22 19:41:04 +01:00
Jannis Mattheis
f713ba4915 Fix race condition while loading messages
Images didn't load correctly when the following scenario occurred:
* ApplicationHolder#request
* MessagesActivity.SelectApplicationAndUpdateMessages#execute
* MessagesActivity.SelectApplicationAndUpdateMessages#doInBackground
  - method returns List<MessageWithImage>, but images are "null" because
    apps aren't loaded yet.
* MessagesActivity#onUpdateApps
  - Now apps were loaded and cached.
* MessagesActivity.SelectApplicationAndUpdateMessages#onPostExecute
  - receives List<MessageWithImage> from #doInBackgroud with "null" images
-> Messages with "null" images are rendered in the ListView
2019-02-17 19:36:00 +01:00
饺子w
67daf8dc2f Support URLs with path prefix (#46)
See gotify/server#127 gotify/server#122
2019-02-17 19:05:30 +01:00
Jannis Mattheis
d4c6273214 Migrate gotify to new client 2018-11-17 12:06:06 +01:00
Galen Abell
ad5be385e8 Added local Picasso instance instead of singleton
- MessagesActivity now constructs a new Picasso instance each onCreate
  and passes it to ListMessageAdapter
2018-11-10 15:14:17 -05:00
Galen Abell
24e0495f19 Cherry-picked Advanced Settings dialog
- Switched raw strings to string resources

- Removed unused fields / views from LoginActivity

- Reset 'Check Version' button text when changing SSL settings

- Fixed formatting
2018-11-10 10:59:48 -05:00
Galen Abell
78a7f1319e Fixed Picasso + refactors
- Removed comment

- Moved SSLSettings to its own top-level class

- Fixed picasso not setting SSL settings and failing to load images over
  self-signed connection
2018-11-10 10:40:48 -05:00
Galen Abell
8e2d90ef50 Merge request changes
- Moved certificate-related utilities to separate class

- Added settings method to return an entire SSLSettings object; refactored
  methods using separate parameters to take single SSLSettings parameter

- Advanced Settings section on login page now hides / shows along with
  other buttons to prevent it from showing up in front of the loading
  spinner

- Fixed star imports

- Refactored applySslSettings as per code from merge request

- Fixed formatting
2018-11-09 16:56:56 -05:00
Galen Abell
2d14ef1b6f Added SSL Validation Override and CA Selection
- Added fields to login page to a) disable ssl validation or b) select
  a custom Certificate Authority certificate to use with the server.

- Changed visibility of widgets on login page from INVISIBLE to GONE so
  they don't take up space while hidden (since this was causing weird
  spacing issues with the new fields).

- Added state to settings to store ssl validation choice or certificate
  data.

- Added fields to various HTTP methods to disable ssl validation or set
  valid certificate authority if either setting is enabled.
2018-11-07 17:28:25 -05:00
Jannis Mattheis
8af40c3fd3 Fix sportless issues 2018-11-02 18:49:16 +01:00
Jannis Mattheis
5c82ef1ab4 Add MessagesActivity 2018-11-02 18:49:16 +01:00