davx5-ose/app
Sunik Kupfer b83d116f40
show real name of davowner (bitfireAT/davx5#208)
* add principal table with dao

* add principal table with dao

* collection saves ownerId instead of owner URL

* save and refresh principals

* show display name of collection owner in GUI

* show only the owner name (preferably) or respective url

* remove principals which do not own any collections

* Don't mock AppDatabase

* ensure we are really dealing with a principal and save it even without its display name

* ensure owner label is hidden when neither owner-displayname nor  owner-url are available

* save principal urls without trailing slash

* use a custom query to find principals without collections

* Some changes

- insertOrUpdateByUrl
- don't explicitly set id=0 when not necessary,
- make it work when there are already entries with trailing slahes
- added TODOs

* Small changes
- Update principal only if display name changed
- Rename methods
- Kdoc
- Tests

* stop using simple methods with vague names

* rename method insertOrUpdateOrGet to insertOrUpdate and leave existing kdoc for explanation

---------

Co-authored-by: Ricki Hirner <hirner@bitfire.at>
2023-02-20 13:29:56 +01:00
..
schemas/at.bitfire.davdroid.db.AppDatabase show real name of davowner (bitfireAT/davx5#208) 2023-02-20 13:29:56 +01:00
src show real name of davowner (bitfireAT/davx5#208) 2023-02-20 13:29:56 +01:00
.gitignore Minor code tweaks (by lint) 2014-12-21 11:24:00 +01:00
build.gradle Update dependencies 2023-02-20 13:29:52 +01:00
lint.xml Version 0.7 2015-03-12 18:25:09 +01:00
locales.gradle Added language selection (bitfireAT/davx5#137) 2022-12-22 21:22:55 +01:00
proguard-rules-release.pro ProGuard rules: XmlPullParser 2021-08-31 15:08:17 +02:00