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

180 Commits

Author SHA1 Message Date
Daniel Svärd
2a7324d9c3 Wait for any thread working on in to finish before closing the deck 2010-02-28 13:30:19 +01:00
Daniel Svärd
d08c28c6e1 Better error message when unable to load deck 2010-02-28 13:16:56 +01:00
Daniel Svärd
e6b2894d69 Removed unused constants that created warnings 2010-02-28 12:57:16 +01:00
Daniel Svärd
cbc095e60a Update behaviour to that of Anki 0.9.9.8.6 2010-02-28 12:40:41 +01:00
Daniel Svärd
dc5a7054c4 Remove unused code 2010-02-27 23:59:15 +01:00
Daniel Svärd
569f92118a Change order of SRS operations
Changed back to the original ordering of the SRS operations, i.e. first
answer the card and then get the new card. No more suspending of the
current card while getting the new card, and then answering it. Since
adding transactions, testing has shown that this order is actually more
responsive. It is also easier to maintain since it is the same as
desktop Anki.
2010-02-27 23:52:26 +01:00
Daniel Svärd
2b4a1b7589 Remove some unnecessary timing messages 2010-02-27 20:58:18 +01:00
Daniel Svärd
b3c0da23f3 Make setting deck study options behave as expected
Allows setting option values of 0, which was disallowed for some reason
before. Also creates a temporary table (it is not there in Anki) to get
new cards in random order if that option is selected.
2010-02-27 17:13:47 +01:00
Daniel Svärd
b9523181d4 Do not throw exception when query returns no results 2010-02-27 13:59:43 +01:00
Daniel Svärd
e81211bb5c Type passed to queryColumn must be a class and not a built in type 2010-02-27 09:51:10 +01:00
Daniel Svärd
c2048ae85c Minor cleanup 2010-02-24 12:21:50 +01:00
Daniel Svärd
9094102252 Do not allow editing of card when there is no card to edit 2010-02-23 14:04:01 +01:00
Nicolas Raoul
e96a9b3142 Merge branch 'master' of git://github.com/daniel-svard/Anki-Android 2010-02-23 20:34:11 +09:00
Daniel Svärd
25256904da Make sure all database cursors are properly closed
Surround all cursor statements with try...finally to make sure that the
cursor is closed at all times, even when an unexpected exception occurs.
If a cursor is not closed, java will throw an exception, but it is
silently (well, it can be seen in the log) discarded and does not cause
a force close. However, it does cause a noticeable slow-down in the execution.
2010-02-23 09:20:41 +01:00
Nicolas Raoul
d42072b169 Merge branch 'master' of git://github.com/daniel-svard/Anki-Android 2010-02-23 13:46:24 +09:00
Nicolas Raoul
dfd2145981 Friendlier message when there are no more card to review. The previous message sounded like an AnkiDroid error 2010-02-22 21:41:32 +09:00
Nicolas Raoul
cd49082477 Changed answer labels to again/hard/good/easy. It is more understandable for beginners, but it is dirtily hard-coded until someone implements what is described here: http://groups.google.com/group/anki-android/browse_thread/thread/19305b70c3d5eb84 . And i18n would be nice too. 2010-02-22 21:31:52 +09:00
Daniel Svärd
5e98e0cfd9 Remove unused spaced repetition preference 2010-02-21 01:06:05 +01:00
Daniel Svärd
7d1860d20b Speed up!
Using transactions seems to speed up database operations significantly.
2010-02-20 21:59:26 +01:00
Daniel Svärd
c2b9388050 Wait for old thread in new thread instead of the gui thread
Brings the progress dialog up quicker so the user won't think the app is
stuck.
2010-02-20 13:45:41 +01:00
Daniel Svärd
4a6f578996 Wait for deck thread to finish before closing deck
Caused crash for example when using a big deck and then answering a card
and opening the deck picker immediately afterwards.
2010-02-20 13:29:17 +01:00
Nicolas Raoul
3f6965cabe I got this file by email from Brennan, it should fix the card editor 2010-02-18 15:07:36 +09:00
Nicolas Raoul
76accf2da2 Merged contributions from Edu and Brennan 2010-02-18 14:22:48 +09:00
Nicolas Raoul
42dcd40841 The code was not compiling anymore. I modified it so that it compiles, but card edition is probably broken somehow. Please somehow check card_editor.xml 2010-02-18 14:20:23 +09:00
Edu Zamora
c16d938088 Changed the project build target and included targetSdkVersion on AndroidManifest.xml. 2010-02-17 09:04:13 +01:00
Edu Zamora
0d75189fab Added support for multiple screen sizes and densities on AndroidManifest.xml. 2010-02-16 16:35:46 +01:00
Nicolas Raoul
126a6fdb67 Merged Daniel and Brennan's changes, conflicts arose on Ankidroid.java and DeckTask.java 2010-02-16 18:20:58 +09:00
Nicolas Raoul
1e4bac365d Merge branch 'master' of git://github.com/brennan-daguilar/Anki-Android 2010-02-16 15:23:14 +09:00
Daniel Svärd
be5c213dac Do not allow suspending when no card is loaded 2010-02-16 07:19:17 +01:00
brennan-daguilar
48c627368c Continued work on card editing.
Card edit activity generates fields based on the underlying Fact instead of the card.
- Each field in the fact generates a seperate EditText
- When saving updated cards
	- Facts are saved,
	- Then all cards based on the fact are regenerated based on their CardModel
- Some messy code (mostly related to updating and redisplaying the current card)
2010-02-16 00:51:30 -05:00
Daniel Svärd
f33b87ebeb Fix for not reviewing the correct amount of new cards
Reviewing would get one new card more than specified in newCardsPerDay.
This was because decreasing the count of reviewed new cards happend after
getting the next new card.
2010-02-15 14:37:17 +01:00
Nicolas Raoul
8986536050 Merge branch 'master' of git://github.com/brennan-daguilar/Anki-Android 2010-02-15 21:19:11 +09:00
Nicolas Raoul
2724f5496e Merge branch 'master' of git://github.com/daniel-svard/Anki-Android 2010-02-15 21:18:08 +09:00
brennan-daguilar
201d6040eb Added basic support for editing cards.
- New CardEditor Activity created
- Deck, DeckTask, and Ankidroid modified to handle opening the card in the editor, saving changes to the database, and redisplaying updated card.

- TODO: add support for adding new card.
	- Create a new card in the deck,
	- Edit the new card as if it were an existing card.
2010-02-14 01:35:45 -05:00
brennan-daguilar
ccc19e307f Added support for ruby text (furigana).
- Created utility class RubyParser to convert ruby text from Anki's Japanese support format to html ruby markup
- Updated CSS to include ruby text support
- Updated Ankidroid to send question and answer text through the parser before displaying.

- CSS Ruby support modified from http://web.nickshanks.com/stylesheets/ruby.css

Signed-off-by: brennan-daguilar <brennan.daguilar@gmail.com>
2010-02-12 04:27:59 -05:00
Daniel Svärd
5d23502620 Make answer card undoable 2010-02-08 17:52:45 +01:00
Nicolas Raoul
7791ef8873 Merge branch 'master' of git://github.com/edu-zamora/Anki-Android 2010-02-08 21:37:24 +09:00
Daniel Svärd
3cd791e366 Start of undo/redo funtionality
This is not finished. Do not use yet.
2010-02-07 12:34:33 +01:00
Daniel Svärd
eca3100494 Methods for easy querying of a database column 2010-02-07 11:16:34 +01:00
Daniel Svärd
e4c6021e4a Proper suspension of card 2010-02-05 20:37:32 +01:00
Nicolas Raoul
07fe0c884f Changed CSV format for import by Anki, updated sample Anki file based on CSV file modified by gravel 2010-02-05 22:53:52 +09:00
Nicolas Raoul
44531ff430 Removed stale file, as per Ramblurr. Somehow I didnt manage to pull this one from Ramblurr, Git was saying: Already up-to-date 2010-02-02 23:57:09 +09:00
Nicolas Raoul
cfe6d83f85 Added some Javadoc, removed dead code, cosmetic changes 2010-02-02 23:31:21 +09:00
Nicolas Raoul
d70d1c290b Added Suspend feature 2010-02-02 22:32:48 +09:00
Nicolas Raoul
c5f9ace0c2 Merge branch 'master' of git://github.com/daniel-svard/Anki-Android 2010-02-02 21:53:11 +09:00
gravel
13fa2cde1a The capital of USA is more correct with "DC" (abbreviation of District of Columbia) appended. "Washington" alone can be several other locations in the USA, and would more commonly refer to the state of Washington rather than the capital city.
Also, capitals for China, Indonesia, Bangladesh, and Nigeria were added - their inclusion warranted by virtue of being among the 10 most populace countries (ref: http://en.wikipedia.org/wiki/List_of_countries_by_population).

Finally, capitals for South Korea, Mexico, United Kingdom were added due the stature and size of the cities themselves (ref: http://en.wikipedia.org/wiki/List_of_national_capitals_by_population), and because I'm on a roll.

I understand that this deck was likely intended solely to demo Anki-android, but it may as well be accurate and thorough :)
2010-02-02 20:39:22 +08:00
Daniel Svärd
4b753460a6 Fix for issue #46
Zero session time limit now interpreted as infinite time limit.
2010-02-02 20:39:05 +08:00
Jan Berkel
289eb382e7 install-emulator/device ant tasks 2010-02-02 20:37:15 +08:00
Nicolas Raoul
3dd7107904 Running with ant 2010-01-08 14:03:06 +09:00
Daniel Svärd
d8321c68e9 Fix for issue #46
Zero session time limit now interpreted as infinite time limit.
2009-12-28 14:13:44 +01:00