We can't lock the database via file locking on macOS under Robolectric
So instead, we lock the database in code.
This is better than locking via `CollectionHelper` as it's not opt in
So, we use `Storage`, where the Collection is created
Throws `SQLiteDatabaseLockedException` if an attempt to access the DB
is made when the database is locked.
This adds 4 user dictionaries:
* anki.xml - Anki Desktop specific terminology: 'did'
* android.xml - Android and dependencies: 'miui.securitycenter'
* usernames.xml - Usernames in copyright declarations
* davidallison.xml - Anything else.
* Each user has their own dictionary to avoid merge conflicts
* But this is shared within the project
https://www.jetbrains.com/help/idea/spellchecking.htmlhttps://stackoverflow.com/a/36256338
Fixes 10713
code style itself was imported to Android Studio via Checkstyle plugin
using the file docs/code_conventions/eclipse/ankidroid.checkstyle.xml,
with the only alterations being to implement blank line rules from
/docs/code_conventions/AnkiDroid_code_conventions.html
Remove redundant code which was only done on Eclair
Change to Java 7 as recommended by Android Studio
Don't show Hebrew preference on Jellybean and above
Get rid of lint warnings in Preferences