Edu Zamora
39103923a4
Merge branch 'master' of git://github.com/daniel-svard/Anki-Android
2009-12-23 15:55:29 +01:00
Daniel Svärd
6ec38da831
Fix for issue #42
...
For big time limits, the time limit computation overflowed with a
negative time limit as a result. This fixes the overflow.
2009-12-23 14:15:27 +01:00
Daniel Svärd
edb21d412e
Fix for exception when inserting a new CardHistoryEntry into the db
2009-12-23 13:32:58 +01:00
Edu Zamora
2724b70e24
Modified the compare method on DeckPicker to not use parseFloat, for more safety.
2009-12-23 09:45:24 +01:00
Daniel Svärd
31bd969093
Fix for issue #36
...
Moved the decrease of failed, review and new card counts to before getting a
new card.
2009-12-23 01:09:14 +01:00
Daniel Svärd
90623d9933
Changed delay columns to correct datatype
2009-12-23 00:43:54 +01:00
Edu Zamora
c115b64906
Added image support in cards and fixed a little bug that prevented DeckPicker to work properly with different deck paths.
2009-12-13 20:54:19 +01:00
Edu Zamora
e598afbe85
Increased sound volume.
2009-12-09 17:50:07 +01:00
Edu Zamora
d5e9e6ccfe
Added sound support in cards.
2009-12-09 13:14:21 +01:00
Edu Zamora
eca1ccc7be
Fixed bug that made the app crash when the sd card was unmounted while being on DeckPicker.
2009-12-07 14:01:06 +01:00
Edu Zamora
6f1bffed93
Fixed crashes when unmounting the sd card with no deck loaded and when navigating to DeckPicker with a deck with some cards answered and the sd card unmounted.
2009-12-06 19:37:58 +01:00
Edu Zamora
f432e5911d
Fixed bugs on deck_preferences.xml and preferences.xml (the xml header had to be on top in order to compile), bugs regarding the visibility of some elements (the EditText to write the answer and the Whiteboard/Timer were shown coming back from Preferences, when there was no more cards) and crashes when there was no deck loaded on DeckPicker and DeckPreferences. Also, right now Study Options is only enabled on the menu when a deck is loaded.
2009-12-06 18:59:54 +01:00
Casey Link
0ff08588a1
Update License headers based with names/emails on git blame.
...
Also removed trailing whitespace.
2009-12-06 01:36:36 -05:00
edu-zamora
1f137bf9c6
Srs branch merged into master.
2009-12-05 22:54:13 +01:00
edu-zamora
08ce9ff1f9
Correct displaying of html tags: now bold, italic, underline and colors are working fine.
2009-12-05 11:51:15 +01:00
Edu Zamora
cc0e9f68a7
Veecheck 2.0 library integrated and minor modifications (function intentToString in PrefState.java) to make it work like we expected (Veecheck is a library that allows us to check automatically for new updates and notify the user about them)
2009-12-01 18:54:40 +01:00
Jordi Chacón
9e1ee243ad
Merged from edu-zamora repository
2009-11-28 17:55:22 +01:00
Jordi Chacón
e48d75c69e
Added external diff library stored in DiffEngine.java. Previous diff function has been removed. Now the diff computation is performed through DiffEngine. Results are now supposed to be exactly the same as in the desktop Anki.
2009-11-28 17:51:45 +01:00
edu-zamora
3048d88935
Update Notification System implemented: The user can choose in Preferences if he wants to be notified when an update of Ankidroid is released. If the notifications are activated, when a new version of Ankidroid is out and the user opens the app an informative dialog asks the user if he wants to upgrade to the new version. If his answer is affirmative, he is directly taken to the Ankidroid download page on Android Market.
2009-11-25 12:57:21 +01:00
edu-zamora
fb38033722
Merge of all srs branches, fixed a new bug loading other decks and added a verification before unregistering the BroadcastReceiver on DeckPicker.java
2009-11-24 17:15:24 +01:00
edu-zamora
96244b81e8
Merge branch 'master' of git://github.com/Ramblurr/Anki-Android
2009-11-24 14:38:36 +01:00
Casey Link
e762927d23
Add default license header to all the files. PLEASE, authors, add your copyrights to the files you have edited.
2009-11-24 08:30:05 -05:00
edu-zamora
2c054cf2f5
Merge branch 'master' of git://github.com/jordi-chacon/Anki-Android
2009-11-24 14:25:51 +01:00
Casey Link
6c59770984
Merge branch 'master' of git://github.com/edu-zamora/Anki-Android
2009-11-24 08:14:54 -05:00
edu-zamora
bf0e561f87
First version of the Update Notification System.
2009-11-24 13:53:25 +01:00
Daniel Svärd
e86df8ac21
Fix for session question limit and message toast
...
Make the session question limit behave as expected. Previously it did
not honour the 0 setting and the flag was kept true across sessions.
Also fixed the session limit toast so that it actually shows up.
2009-11-23 10:26:29 +01:00
Jordi Chacón
570d24e516
Removed unnecessary imports.
2009-11-23 10:09:44 +01:00
jordi-chacon
cd40f6d3f1
Solved a bug introduced before about the content. Answer field won't expand itself more than two lines. Max and min size are now lower than before. Also the string with the answer of the user may content newlines, and now these are replaced by <br> so that they can be matched against the <br> of the correct answer. The bad part of this is that sometimes, if the amount of newlines don't match, some <br> can be shown as plain text. We'll have to figure out how to solve this, but not now :)
2009-11-22 23:34:09 +01:00
jordi-chacon
5f64c4e17d
Fixing a bug: the content (question or answer) was first showed and then resize it, and the user could realize that. I myself introduced that bug :D
2009-11-22 23:13:57 +01:00
jordi-chacon
7b1365ceaf
Added control of the font size. Depending on the actual content of the question/answer, the font size will be greater or smaller. Min and max font has been established.
2009-11-22 14:46:48 +01:00
jordi-chacon
e0438b18fb
Improved the diff routine. First, it checks for prefixes and suffixes. Then, if the body of the strings have differences, it looks for groups of two or more characters that are in both strings. Need to be strongly tested since the algorithm is kind of complex.
2009-11-22 14:29:05 +01:00
jordi-chacon
8a7263cf17
Adding write answer field
2009-11-22 10:47:57 +01:00
Casey Link
853403cd00
Deck Preferences: Add preferences to change the Review order, and Spacing options.
2009-11-21 05:42:06 -05:00
Casey Link
0163484d89
Ankidroid: Implement Session Rep/Question limit feature.
...
The review session will terminate (go to the deck picker), after
the question limit has been reached.
2009-11-21 04:10:09 -05:00
Casey Link
5684237029
Ankidroid: Implement support for max session time limit
...
Currently once the session time limit is reached, the deck picker is shown. But
there should probably be a summary screen, like the desktop app.
2009-11-21 04:00:26 -05:00
Casey Link
d8f225c309
Deck: Make some members private, and add getters/setters. The setter saves the changes to the database immediately.
2009-11-20 09:53:14 -05:00
Casey Link
8f26dda080
Add DeckPreferences (aka, Study Options). This activity allows for the editing of the currently loaded Deck's Settings.
2009-11-20 09:52:12 -05:00
Casey Link
594196bd69
Create AnkidroidApp, a singleton, which holds the reference to the currently loaded Deck.
2009-11-20 09:49:44 -05:00
Casey Link
3d13d12d47
Merge branch 'srs' of git://github.com/daniel-svard/Anki-Android into srs
2009-11-20 05:22:38 -05:00
Casey Link
e04c5c5427
compile fixes for java 1.6
2009-11-20 05:22:29 -05:00
Daniel Svärd
285451c31d
Fix timer not starting on new deck
2009-11-20 01:41:49 +01:00
Daniel Svärd
b980b1b29a
Cleaned up old unused code
2009-11-19 22:39:29 +01:00
Daniel Svärd
340b12363c
Refactoring and time precision fix
...
Moved all deck-related code from Ankidroid to a the new class
DeckThread. This class employs a separate thread for deck operations and
uses a callback mechanism to allow ui operations in Ankidroid.
Data types for time entries in the database changed from single to
double precision floating point numbers. Single precision was not
enough.
2009-11-19 22:25:31 +01:00
Casey Link
54379fc7bc
Merge branch 'master' of git://github.com/daniel-svard/Anki-Android
2009-11-19 12:31:36 -05:00
edu-zamora
ef249b5d29
Added unRegisterReceiver on onDestroy in Ankidroid.java, cleaned the code in openDeckPicker (deckPath is always obtained form Preferences so it's not necessary to put it into the Intent), created a new control variable called deckLoaded, cleaned the content of the previous card for a better visualization and fixed various minor bugs.
2009-11-16 18:24:22 +08:00
edu-zamora
b0771235f8
Unregistered the BroadcastReceiver on onStop, fixed a minor bug and added a verification for the ProgressBar Dialog to make it work correctly on the emulator.
2009-11-16 18:24:02 +08:00
Daniel Svärd
554419d471
SRS integrated in the UI
...
The SRS algorithm is now used in the UI to show and space cards in a
similar fashion as the desktop application does.
2009-11-11 22:12:44 +01:00
Daniel Svärd
fd3dab4ea8
Merge branch 'master' into srs
...
Conflicts:
src/com/ichi2/anki/AnkiDb.java
src/com/ichi2/anki/Ankidroid.java
src/com/ichi2/anki/Deck.java
src/com/ichi2/anki/Stats.java
2009-11-10 15:21:09 +01:00
Daniel Svärd
8a3015026b
Code for grading a card in the srs
...
Implements the answering of a card and spaces it as desktop Anki does.
Not tested yet and the code is not used from the GUI yet. This does not
include support for leeches as I don't know what is going on with the
SQLAlchemy magic.
2009-11-10 14:51:26 +01:00
edu-zamora
29326b827f
Added unRegisterReceiver on onDestroy in Ankidroid.java, cleaned the code in openDeckPicker (deckPath is always obtained form Preferences so it's not necessary to put it into the Intent), created a new control variable called deckLoaded, cleaned the content of the previous card for a better visualization and fixed various minor bugs.
2009-11-10 12:19:11 +01:00