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

8477 Commits

Author SHA1 Message Date
Timothy Rae
52cae03771 Updated strings from Crowdin 2016-04-03 20:20:43 +09:00
Tim Rae
e2cb5e815c Merge pull request #4193 from timrae/browser-background-rendering
Remove latency for long-tap to work in Browser
2016-04-03 20:18:39 +09:00
Timothy Rae
dc5d882ab8 Remove latency for long-tap to work in Browser
Previously we were calling TASK_TYPE_RENDER_BROWSER_QA with the first 1000 cards in the result from mSearchCardsHandler.onPostExecute().
Since mRenderQAHandler does a notifyDataSetChanged() for EVERY card in the list as they're updated, this was effectively blocking the long-click listener for the cards, so I moved that initial card rendering code into the first DeckTask and dropped it from 1000 to 500.

I also did some tidying up to use the List and Map interfaces polymorphically instead of the ArrayList and HashMap implementations.

Fixes #4191
2016-04-03 20:03:19 +09:00
Tim Rae
026ae9dd0c Merge pull request #4188 from hssm/toolbar-resize-rotate
Fix toolbar spinner text clipping on rotate
2016-04-01 08:29:26 +09:00
Houssam Salem
fbd016180f Fix toolbar spinner text clipping on rotate 2016-04-01 10:23:18 +11:00
Tim Rae
dd654b6c38 Merge pull request #4185 from hssm/no-nav-previewer
Disable navigation drawer in Previewer.
2016-03-29 19:54:16 +09:00
Houssam Salem
5590c7e4b2 Merge pull request #4184 from hssm/deck-overview-no-progress
Remove unused totals from deck overview
2016-03-29 21:11:15 +11:00
Houssam Salem
f8aa7457df Disable navigation drawer in Previewr. 2016-03-29 21:09:16 +11:00
Houssam Salem
325ed75d8a Remove unused totals from deck overview 2016-03-29 20:11:07 +11:00
Tim Rae
02b06cd4a4 Merge pull request #4178 from marcardar/empty-cards-provider
Added provider support for deleting all empty cards for a given model
2016-03-25 16:26:56 +09:00
Mark Carter
a9e4cde467 Added provider support for deleting all empty cards for a given model 2016-03-25 15:24:08 +08:00
Tim Rae
7c324f9db2 Merge pull request #4177 from timrae/dynamic-deck-guard
A few adjustments to the ContentProvider
2016-03-25 14:40:21 +09:00
timrae
1797d9c045 A few adjustments to the ContentProvider
* Throw exception if filtered deck specified as deck in insert(), update()
* Throw exception if deck insert for a name that already exists
* Use query() instead of rawQuery() in the notes database
* Change DECK_DYN to Boolean
* Add javadoc for missing fields in FlashCardsContract
2016-03-25 05:38:41 +09:00
Tim Rae
8b5cf2bbef Merge pull request #4176 from timrae/noteinfo-clonable
Some bug fixes for duplicate checking code
2016-03-25 02:39:23 +09:00
timrae
f04b4f70b7 Some bug fixes for duplicate checking code
* Compat V1 was only adding first duplicate to output array
* Compat V2 now clones NoteInfo objects before adding to multiple positions
* Made NoteInfo final to prevent subclasses breaking encapsulation
* Made NoteInfo constructor private so that it's only used as a container
* Also improved the javadoc and comments in some places
2016-03-25 02:19:03 +09:00
Tim Rae
4db1deb9e4 Merge pull request #4174 from timrae/fix-lint
Fix lint warnings in API
2016-03-24 19:09:06 +09:00
Timothy Rae
31fb5beb20 Fix lint warnings in API 2016-03-24 19:07:04 +09:00
Timothy Rae
a36c12a37a Bump API version to 1.1alpha4 2016-03-24 18:36:23 +09:00
Tim Rae
706ef7bedb Merge pull request #4173 from timrae/simplify-duplicate-code
Remove some repeated code in duplicate checking methods
2016-03-24 18:31:52 +09:00
Timothy Rae
7e0158424a Remove some repeated code in duplicate checking methods 2016-03-24 18:26:01 +09:00
Tim Rae
74e1e98f63 Merge pull request #4171 from timrae/null-checks
Allow tags to be null in API addNote()
2016-03-24 15:33:57 +09:00
timrae
71dde60d2d Allow tags to be null in addNote() 2016-03-24 15:32:36 +09:00
Tim Rae
eb274d7ce1 Merge pull request #4170 from timrae/api-strip
Strip API down to essentials
2016-03-24 14:40:44 +09:00
timrae
0d111ef07e Strip API down to essentials 2016-03-24 14:09:54 +09:00
Timothy Rae
9256bb1e5a Bumped version to 2.6alpha19
@branch-specific
2016-03-24 01:45:11 +09:00
Tim Rae
c05174abdb Merge pull request #4164 from timrae/rogue-check-2
Some minor changes to permissions checking and logging
2016-03-24 00:45:58 +09:00
timrae
488b21b167 Some minor changes to permissions checking and logging
* Simplify the logic for dynamic permission checking
* Add a fallback method to get calling package name on all APIs
* Set "exported" property to False in all Activities other than IntentHandler, as these are possible attack points. Currently only NoteEditor was actually exported due to inclusion of an IntentFilter.

Note: While it would be possible to allow the provider to work even from its own process, this is not considered good practice, so we keep it disabled on production builds until such time as it becomes explicitly required.
One reason that it is not recommended to allow this is to prevent accidental calling of checkCallingOrSelfPermission() after a call to Binder.clearCallingIdentity()
2016-03-24 00:25:17 +09:00
Tim Rae
13b805b5ae Merge pull request #4168 from ospalh/feature-new-arrow-tweaks
Tweaks for the inline replay button
2016-03-23 22:45:39 +09:00
Tim Rae
a6cf77d6ec Merge pull request #4169 from timrae/separate-sql-uri
Add a new URI for direct SQL querying of notes table
2016-03-23 22:36:48 +09:00
timrae
10880cfceb Add a new URI for direct SQL querying of notes table
Decouple the URIs for libanki style querying vs. direct SQL querying.
This has the advantage of being more intuitive, and less susceptible to SQL injection attacks
2016-03-23 22:24:15 +09:00
ospalh
b6b1df2ad8 Tweaks for the inline replay button
Make the replay button scale up for large text, but use a minimum size for small text, and make the button vertically align.
2016-03-23 12:25:42 +01:00
Tim Rae
8c0e97db33 Merge pull request #4167 from marcardar/querynull
Consistent handling of ContentResolver.query() returning null
2016-03-23 20:25:29 +09:00
Mark Carter
ca49c4e3ff Consistent handling of ContentResolver.query() returning null 2016-03-23 18:54:44 +08:00
Tim Rae
dc522944e9 Merge pull request #4166 from timrae/duplicate-refinement
Duplicate refinement
2016-03-23 18:49:19 +09:00
timrae
5f32f1a311 Rename findExistingNotes() to findDuplicateNotes(), return SparseArray 2016-03-23 18:33:29 +09:00
Tim Rae
71971a9fa4 Merge pull request #4165 from marcardar/sortf
Add support for sortf field when adding new model
2016-03-23 02:54:21 +09:00
Mark Carter
8675055130 Add support for sortf field when adding new model 2016-03-23 00:18:31 +08:00
Tim Rae
1a827d5aba Merge pull request #4163 from marcardar/find-notes-api
Fix getNoteCount() bug - was not working on provider spec v1
2016-03-22 16:16:03 +09:00
Mark Carter
e520bcd2c7 Fixed getNoteCount() bug - was not working on provider spec v1 2016-03-22 15:02:04 +08:00
Houssam Salem
36865d28b3 Merge pull request #4159 from hssm/nav-button-back
Fix activity with back icon not going back
2016-03-21 14:56:10 +11:00
Houssam Salem
4a01534401 Fix activity with back icon not going back
A NavigationDrawerActivity that opts to have a back button as the
navigation button will also override the button behaviour to go back.
2016-03-20 22:01:14 +11:00
Tim Rae
00e6e3dab9 Merge pull request #4158 from timrae/rogue-check
Check for 'rogue clients' that don't declare READ_WRITE_PERMISSION in manifest
2016-03-20 17:17:50 +09:00
Timothy Rae
83ee9c4521 Add a check for 'rogue clients' that don't even declare READ_WRITE_PERMISSION in manifest 2016-03-20 16:47:30 +09:00
Houssam Salem
21cf64f8dc Merge pull request #4145 from rubyu/fix-cookie-lost
Fix an issue that data in Cookies may be lost
2016-03-20 16:11:29 +11:00
rubyu
98515e1f7f fix an issue that a data in cookies may be lost 2016-03-19 07:57:14 -07:00
Timothy Rae
92ee137382 Bumped version to 2.6alpha18
@branch-specific
2016-03-19 14:15:59 +09:00
Tim Rae
d18bce0725 Merge pull request #4155 from jkl1337/custom-sync-server-fix-again
Fix broken custom sync server media server url generation
2016-03-19 14:14:18 +09:00
John K. Luebs
419fbe302e Fix broken custom sync server media server url generation
Commit 8273eb8e2c fixed a mistake in
the way custom sync server URLs are assembled, but at the same time it
broke the generation of the media server URL.
2016-03-19 01:06:10 -04:00
Tim Rae
9414714c5e Merge pull request #4151 from marcardar/fix-getnote
Fix bug in getNote() that meant it only ever returned null or threw exception
2016-03-19 13:48:36 +09:00
Houssam Salem
6c5aac7040 Merge pull request #4152 from ospalh/feature-svg-replay-button
Use inlined SVG for the replay button
2016-03-19 15:02:07 +11:00