GitNex-Android-App/app/src/main/res
qwerty287 7e514041bb Don't use TinyDB as cache (#1034)
Do not use TinyDB as a cache or a way to send data between activities.

### How is this working

Instead of saving everything into the TinyDB, I created three `Context`s (a `RepositoryContext`, an `IssueContext` and an `AccountContext`). All are used to store things like API or database values/models and additional data, e.g. the `RepositoryContext` also contains information about the current filter state of a repository (issues, pull requests, releases/tags and milestones). These are sent using `Intent`s and `Bundle`s between activities and fragments. Changing a field (e.g. filter state) in any fragment changes it also for the whole repository (or at least it should do so).
Due to the size of the changes (after c9172f85ef, Git says `154 files changed, 3318 insertions(+), 3835 deletions(-)`) **I highly recommend you to create a beta/pre release before releasing a stable version**.
Additional changes:
* after logging out, the account remains in the account list (with a note) and you can log in again (you can't switch to this account)
* repositories and organizations are clickable on user profiles
* deleted two unused classes

Once finished, hopefully
* closes #354
* replaces #897
* fixes #947
* closes #1001
* closes #1015
* marks #876 and #578 as `Wontfix` since they are not necessary at this point
* and all the other TinyDB issues

Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: M M Arif <mmarif@noreply.codeberg.org>
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1034
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org>
Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
2022-03-13 03:59:13 +01:00
..
drawable Cherry-pick changes from #897 (#1032) 2022-02-22 07:23:46 +01:00
drawable-anydpi-v24 Notification icons (#458) 2020-04-26 11:13:56 +00:00
drawable-hdpi Compress PNG (#759) 2020-11-02 16:01:59 +01:00
drawable-mdpi Notification icons (#458) 2020-04-26 11:13:56 +00:00
drawable-xhdpi Compress PNG (#759) 2020-11-02 16:01:59 +01:00
drawable-xxhdpi Compress PNG (#759) 2020-11-02 16:01:59 +01:00
drawable-xxxhdpi Compress PNG (#759) 2020-11-02 16:01:59 +01:00
layout Don't use TinyDB as cache (#1034) 2022-03-13 03:59:13 +01:00
menu Don't use TinyDB as cache (#1034) 2022-03-13 03:59:13 +01:00
mipmap-anydpi-v26 Adjust logo with new colors (#706) 2020-09-26 09:18:41 +02:00
mipmap-hdpi Compress PNG (#759) 2020-11-02 16:01:59 +01:00
mipmap-mdpi Compress PNG (#759) 2020-11-02 16:01:59 +01:00
mipmap-xhdpi Compress PNG (#759) 2020-11-02 16:01:59 +01:00
mipmap-xxhdpi Compress PNG (#759) 2020-11-02 16:01:59 +01:00
mipmap-xxxhdpi Compress PNG (#759) 2020-11-02 16:01:59 +01:00
values Don't use TinyDB as cache (#1034) 2022-03-13 03:59:13 +01:00
values-ar Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-cs Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-de Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-es Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-fa Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-fi Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-fr Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-he Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-it Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-ja Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-ko Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-lv Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-nl Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-pl Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-pt Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-ru Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-si Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-sk Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-sr Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-sv Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-tr Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-uk Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
values-v21 initial work on adding new theme 2020-01-07 17:27:05 +05:00
values-v23 Don't use TinyDB as cache (#1034) 2022-03-13 03:59:13 +01:00
values-zh Crowdin 2022-02-26 (#1049) 2022-02-26 19:13:44 +01:00
xml Prepare for next dev (#1051) 2022-02-27 15:10:24 +01:00