Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Unverified Commit 65005a8e authored by Arnau Mora's avatar Arnau Mora Committed by GitHub
Browse files

Subscriptions in database: UI (#111)



* Removed permissions requesting

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Migrated loading to database

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Minor changes

* `add` returns ids

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Migrated creation to database

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Added update method

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Changed ViewModel

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Removed active switch

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Migrated edit to database

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Rework EditCalendarActivity

- use explicit EXTRA_SUBSCRIPTION_ID
- use ViewModelProvider.Factory instead of custom loadSubscription()
- create one-two-one relationship between Subscription and Credential

* Added permission extra

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Moved permission request

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Added permission required Snackbar

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Fixed permission request

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Added `showCalendarPermissionNotification`

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Added notification permission requests

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Added calendar permission notification

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Changed threading (#112)

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>

* Change model/view/result pattern to states (LiveData)

* Don't ask to enable sync framework auto-sync because we don't use the sync framework anymore

* Remove unneeded string

---------

Signed-off-by: default avatarArnau Mora <arnyminer.z@gmail.com>
Co-authored-by: default avatarRicki Hirner <hirner@bitfire.at>
parent a3e8c31f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment