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

244 Commits

Author SHA1 Message Date
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
edu-zamora
dfef1d820a 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-09 13:31:35 +01:00
nicolas-raoul
0cabe07126 please someone explain me how to not create this kind of really unnecessary conflicts... 2009-11-09 14:15:16 +09:00
edu-zamora
ac7cd3eaa6 Added message informing the user when there is no deck loaded, removed the title bar from Ankidroid Activity from Manifest, fixed some minor bugs and cleaned and reorganized the code. 2009-11-08 00:04:56 +08:00
edu-zamora
6a40e9e60c Fixed minor bug where the controls were shown when they had not to be shown and cleaning of the code. 2009-11-08 00:04:31 +08:00
edu-zamora
13e4e6f081 Fixed all the crashes caused by starting the app without any selected deck and with the option 'Sample deck' deselected. It also has been implemented the DeckPicker's title change when sd card is unmounted and the correct display in both orientations of the message informing the user about the sd card being unavailable. 2009-11-07 23:36:23 +08:00
edu-zamora
b99052bc39 Complete handling of the events of sd card implemented. There is still some bugs regarding with using the app with any deck selected and the "Deck sample" option off. 2009-11-07 23:36:04 +08:00
edu-zamora
2c434c1344 Fixed the crash when trying to load an empty deck. Right now, if an empty deck is loaded an informative message is shown to the user. 2009-11-06 18:40:03 +01:00
edu-zamora
e2903b9df8 Added message informing the user when there is no deck loaded, removed the title bar from Ankidroid Activity from Manifest, fixed some minor bugs and cleaned and reorganized the code. 2009-11-06 17:45:32 +01:00
edu-zamora
376d9b6a56 Fixed minor bug where the controls were shown when they had not to be shown and cleaning of the code. 2009-11-05 19:59:34 +01:00
edu-zamora
fddf1f8683 Fixed all the crashes caused by starting the app without any selected deck and with the option 'Sample deck' deselected. It also has been implemented the DeckPicker's title change when sd card is unmounted and the correct display in both orientations of the message informing the user about the sd card being unavailable. 2009-11-05 14:10:52 +01:00
edu-zamora
6272c63c0d Complete handling of the events of sd card implemented. There is still some bugs regarding with using the app with any deck selected and the "Deck sample" option off. 2009-11-05 12:04:20 +01:00
edu-zamora
c46bc02af7 Fixed bug involving the displaying of all the decks on DeckPicker. The decks that had the same last modification date were not displayed and now this problem is solved. 2009-11-04 12:37:58 +08:00
edu-zamora
1091865d4a Fixed bug involving the displaying of all the decks on DeckPicker. The decks that had the same last modification date were not displayed and now this problem is solved. 2009-11-03 17:03:17 +01:00
Eduard Zamora Suriñach
e56a6fe943 Fixed the DeckPicker bug where it crashed when there was some file ending in '.anki' that was not a real anki file. 2009-11-03 20:34:20 +08:00
Eduard Zamora Suriñach
008ce58291 Fixed the DeckPicker bug where it crashed when there was some file ending in '.anki' that was not a real anki file. 2009-11-03 13:08:43 +01:00
nicolas-raoul
f8369c875e I somehow managed to create a conflict with myself... 2009-10-30 19:33:16 +09:00
edu-zamora
b554dd2efe Deleted Toast message when About page was displayed. 2009-10-29 19:11:56 +01:00
edu-zamora
6fdcbe0fb1 Fixed the bug where the application crashed when there was no sd card attached. Right now, the app can be openend without sd card attached and the navigation between the different activities works just fine. Moreover, the sd card can be attached while the app is being used without crashing. 2009-10-29 18:39:02 +01:00
edu-zamora
7fcaba037e Implemented the focus behaviour between buttons. 2009-10-28 21:47:26 +08:00
edu-zamora
70629e4075 Implemented the focus behaviour between buttons. 2009-10-28 14:22:09 +01:00
edu-zamora
ab4f8fc3bf Fixed the bugs involving rotation of the device: Now the deck is not reloaded when the orientation changes and it's possible to write on all Whiteboard's surface in every possible orientiation 2009-10-23 11:07:50 +02:00
edu-zamora
fe0a7b4369 Unified the way of tagging log messages on Deck.java and Stats.java 2009-10-22 13:03:04 +02:00
nicolas-raoul
966887513d Removed @Override annotation that somehow prevented Eclipse from compiling 2009-10-19 14:06:02 +09:00
Daniel Svärd
88f34fe976 Start of implementation of desktop Anki's SRS
Mostly a straight port of the classes and methods from the python code.
Code should be in place for getting the next scheduled card, but this is
not used to get the new card currently in the UI (ie. it is not tested
yet).
2009-10-18 20:51:19 +02:00
Daniel Svärd
0495113b91 Fix for issues when rotating the screen
This fixes the crash when changing screen orientation while a deck is
loading. It also saves the currently displaying card so that it doesn't
need to be reloaded if the screen changes orientation. This improves the
responsiveness.

I also moved all the card loading into a separate thread subclass in
order to make the code cleaner and to remove some redundancies.
2009-10-09 13:41:05 +02:00
edu-zamora
bec770b0e1 Merge different versions and solved minor conflicts. Fixed a bug between subsequent executions, where the Timer and the Whiteboard toggle button were visible although on Preferences the option wasn't selected. Unified the way to log messages and formatted the code. 2009-10-09 12:29:53 +02:00
Daniel Svärd
63fee04c95 Merge branch 'master' into orientation-change 2009-10-08 17:29:56 +02:00
Daniel Svärd
0be32be8c8 Better support for screen rotation
Makes ankidroid not reload the current card on screen orientation
change. Also fixes the crash when rotating the screen while a new deck
is being loaded when returning from the deck picker activity.
2009-10-08 17:26:28 +02:00
edu-zamora
f644fb37bc Easy toggle between front and back card implemented and fixed a minor bug involving the whiteboard. Implemented the Whiteboard's behaviour: right now, you only can write on it the first time you see the question of a fact 2009-10-08 16:41:59 +02:00
nicolas-raoul
2d1d406f54 Resolved trivial merge conflict 2009-10-08 14:04:29 +09:00
Daniel Svärd
1e8132c8d1 Fixes whiteboard bug
Fix for the bug where the whiteboard and timer is displayed despite
being set not to be displayed in the preferences.
2009-10-07 22:55:23 +02:00
Daniel Svärd
35cf3fbb6c Changed visibility of some methods in DeckPicker.java
No need to have these methods public.
2009-10-04 18:59:46 +02:00
Daniel Svärd
3b291a4c22 Moved UI strings for deck picker to resources
Moved all the UI strings for the deck picker screen into strings.xml so
that they can be changed easily and to enable future translation.
2009-10-04 18:47:18 +02:00
Daniel Svärd
a99b25d2f2 Sort the deck list by last modified deck
Last modified as in the last time the desktop anki application modified
the deck.
2009-10-03 19:00:07 +02:00
Daniel Svärd
cc39fd6363 The progress spinners now actually works as expected 2009-10-03 12:48:50 +02:00
Daniel Svärd
5bdd741863 Fix for IllegalStateException bug
Fixed a bug causing no database to be open when returning from the deck
picker screen if user presses "back". This caused an exception when
trying to space a rated card.
2009-10-02 18:58:22 +02:00