0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00
Commit Graph

207 Commits

Author SHA1 Message Date
Mark Carter
7d110c5367 Added content provider support for bulkInsert() or multiple notes into a single deck. This is done by including a new deckId query parameter in the uri.
For example: content://com.ichi2.anki.flashcards/notes?deckId=1234567890123
AddContentApi supports this with a new addNotes() method. The Api does the duplicate checking to make sure no duplicates are passed to bulkInsert().
These implementations check whether the provider supports these new features using a spec version code defined as a meta-data key of the provider in the manifest.
The new bulkInsert support for notes is 2000% faster (based on inserting 2100+ notes) than inserting notes one-by-one (as in the old way).
2016-03-08 22:10:13 +08:00
Mark Carter
c59e19ec1e joinFields now uses TextUtils#join for maximum readability 2016-03-02 09:55:04 +08:00
Houssam Salem
f8f3ab6ec2 Update to newer support libraries and build tools 2016-02-28 22:42:54 +11:00
timrae
44eabb0493 Improve efficiency splitting fields in libanki
d139048 was not very efficient or readable
2015-10-19 23:02:14 +09:00
timrae
a8bdaf7a3c Update material dialogs version
and drop targetSdkVersion to v22
2015-09-25 19:42:59 +09:00
timrae
bb6144d1da Small update to API
remove unnecessary ref to context in some methods
add check for duplicates method
add a build script to make zip for jcenter
2015-09-11 16:27:17 +09:00
timrae
93b5e4dd08 Create API for easier integration with 3rd party apps 2015-09-11 05:08:18 +09:00