0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-19 19:42:17 +02:00
Commit Graph

19543 Commits

Author SHA1 Message Date
AnkiDroid Translations
64e36b55bf Updated strings from Crowdin 2024-09-06 13:10:30 +00:00
David Allison
8947ee26d7 refactor: remove dead code
Remaining code used in AddonData
2024-09-05 20:34:36 +00:00
AnkiDroid Translations
eaa0463fd6 Updated strings from Crowdin 2024-09-03 05:42:48 +00:00
Arthur Milchior
25d7246251 Notify the UI that a sync was done
In this case, I really don't think it's realistic to expect an
OpChange from the backend. The backend already sends informations that
are relevant for the sync process. Given that "sync" does not uses the
processes uses for undoable change (indeed, it should not be
undoable), no OpChange is generated.

It seems reasonable in this place at least to directly notify the
observers.

Given that the observers expect an OpChanges, I create one, and simply
assume everything may be changed. This seems reasonable in case of
sync, and it's sufficiently rare that the cost won't be prohibitive
anyway.

Fixed: #16943
Fixed: #16942
2024-09-03 04:59:41 +00:00
MorenoTropical
fa53c16fc2 add filtered deck option to browser 2024-09-02 17:32:02 +00:00
Robozinho
733cecac82 fix menu in template editor
this was very hard to do because CardTemplateEditor is tightly coupled with CardTemplateFragment, so most changes break something even if not related
2024-09-02 09:40:40 +00:00
Sumit Singh
9c9018b049 Fix: Ensure Media Sync Aborted Message Displays Correctly After Canceling Media Sync 2024-09-02 09:39:01 +00:00
Robozinho
941be0ce2a change donate icon to heart 2024-09-01 17:15:15 +00:00
AnkiDroid Translations
bc30d753a8 Updated strings from Crowdin 2024-09-01 08:54:19 +00:00
lukstbit
e7eee16a39 Fix can't delete search input in CardBrowser after an initial search
The DEL KeyEvent was previously declared to act as a keyboard shortcut
to delete the selected notes. After an initial search which registered
a search query entering DEL attempted to delete the current selected
notes which also resulted in another search(same input) being executed.

The fix registers the DEL keys as a delete notes shortcut ONLY if the
search box of the CardBrowser is not currently available(isIconified
returning true).
2024-08-31 15:48:23 +00:00
lukstbit
83def3fad3 Fix E key event handling in CardBrowser
The previous code was showing the edit note screen every time the
E key was pressed, this was changed to only handle the E key event
as a shortcut only if the searchbox isn't currently available(
isIconified returning true).
2024-08-31 15:48:23 +00:00
lukstbit
7f783473d4 Fix T key event handling in CardBrowser
The previous code was showing the tags filter dialog every time the
T key was pressed, this was changed to also introduce Ctrl as a
modifier like the documentation for the onKeyUp method recommends.
2024-08-31 15:48:23 +00:00
lukstbit
1d27d54738 Fix improper keys events handling in CardTemplateEditor
The onKepUp should return true only when the event is consumed.
2024-08-31 15:48:23 +00:00
Ashish Yadav
ce4ccc53c3 bump com.vanniktech:android-image-cropper from 4.5.0 to 4.6.0 2024-08-31 00:00:03 +00:00
Ashish Yadav
6b78e45f0d feat: use CropImageView to crop images
* Replaced the use of CropImageContract with CropImageView to ensure continued compatibility and adherence to best practices, updated related logic and UI.
* The decision to follow this migration path was influenced by the library's intent to depracte the CropImageContract see : https://redirect.github.com/CanHub/Android-Image-Cropper/pull/637
2024-08-31 00:00:03 +00:00
Matias Grioni
015b06fa91 Fix missing return for special API endpoint. 2024-08-29 10:13:39 +00:00
AnkiDroid Translations
034e9065e9 Updated strings from Crowdin 2024-08-29 06:02:45 +00:00
Brayan Oliveira
aabd99dc4e remove scoped storage migration 2024-08-28 19:22:01 +00:00
AnkiDroid Translations
a98e72dec9 Updated strings from Crowdin 2024-08-28 18:59:13 +00:00
MinusMallard
5ccb81c9a9 pressing enter on physical keyboard change creates a new deck 2024-08-28 13:28:14 +00:00
David Allison
285500da29 docs: improve bug report form
A user said:

> it asks whether the bug is specific to AnkiDroid twice

So we remove the second confirmation

> * What are the steps to reproduce? Alright, gimme a minute
> * Expected behavior? Does this have to be a separate field?
> * Actual behavior? Does this really have to be a separate field?

I have consolidated 'Expected' and 'Actual' behavior

> * Debug info? I... uhhh... ok, I give up.
> ...
> should probably elaborate this a bit, to make
> it more clear where to find this info

Since we've been using the new Settings for a while
I have made this less ambiguous
2024-08-28 03:27:49 +00:00
AnkiDroid Translations
551e910646 Updated strings from Crowdin 2024-08-28 03:24:20 +00:00
Brayan Oliveira
b3b217babe add warning to WIP dev options 2024-08-28 03:09:17 +00:00
Anoop
a03d3c1d3b Changed assert to assertThat in the test file and other refactoring. 2024-08-27 22:10:21 +00:00
Anoop
d5e1f21d43 Relocating the DeckPickerWidget-specific files to a dedicated package 2024-08-27 22:10:21 +00:00
Anoop
d5e97a5243 Integrated ChangeSubscriber for DeckPickerWidget updates on study queue changes
- Added `ChangeSubscriber` to subscribe the `ChangeManager` and monitor changes in the study queue (`OpChanges.studyQueues`).
 - Implemented `opExecuted` in `ChangeSubscriber` to trigger `updateDeckPickerWidgets()` when relevant changes are detected.
2024-08-27 22:10:21 +00:00
Anoop
2865dc08c2 Add WidgetAlarm for managing recurring widget updates
- Introduced `WidgetAlarm`to handle the setting and cancellation of recurring alarms for widget updates.
- Added methods to create or retrieve `PendingIntent` instances associated with widgets.
- Ensured that alarms are set to trigger widget updates every one minute, avoiding multiple alarms for the same widget.
2024-08-27 22:10:21 +00:00
anoop
44143f00c4 Implemention of Deck Picker Widget !Add Deck Picker Widget to display deck statistics
This commit introduces the Deck Picker Widget, which displays a list of decks along with the number of cards that are new, in learning, and due for review. It is a display-only widget.

Features:
- Displays deck names and statistics (new, learning, and review counts).
- Retrieves selected decks from shared preferences.
- Can be reconfigured by holding the widget.

This widget provides users with a quick overview of their decks without needing to open the app.
2024-08-27 22:10:21 +00:00
AnkiDroid Translations
f9ea4df68e Updated strings from Crowdin 2024-08-27 15:31:28 +00:00
lukstbit
0776858581 Modify StudyOptionsFragment to follow desktop UI
This PR:
- replicates the main UI seen in the desktop app
- removes information that isn't shown in the desktop app
like the total cards count and total new cards
- shows the bury counts + info message if the options for the deck allow it
2024-08-27 14:38:12 +00:00
lukstbit
e009291ea4 Implement deckDueTree() backend method
Adds a complete implementation(+ supporting method) that follows the
desktop code.

See a179da3827/pylib/anki/scheduler/base.py (L69-L81)
See a179da3827/pylib/anki/decks.py (L188-L198)

Note that there was already a deckDueTree method defined in the
Scheduler class which didn't take any parameters and returned a
DeckNode. Ideally the two methods would be combined into one, this
was not done here because the full implementation returns a
nullable DeckNodeTree and the multiple call sites using the
parameterless method would require lots of changes.
2024-08-27 14:38:12 +00:00
AnkiDroid Translations
bd28bf2f22 Updated strings from Crowdin 2024-08-27 14:22:12 +00:00
David Allison
be991d0cfa docs: dependencies - changelogs (Triple-T Publisher) 2024-08-26 20:29:07 -03:00
Aditya kumar
bc75f078bc Fixed the timebox 2024-08-26 10:39:11 +00:00
lukstbit
92b4525691 Fix foreground of status bar when using SingleFragmentActivity
SingleFragmentActivity was built with a call to setTransparentStatusBar()
which worked great for the initial Statistics page but currently the
activity can be used/is used with other fragments as well which don't
need this call(and results in undesired status bar foreground colors).
2024-08-26 10:34:07 +00:00
lukstbit
248a0eaa54 Revert "Fix:Status bar color"
This reverts commit 7512a8e545.
The commit provided a fix related to the status bar colors but it
didn't worked. See #16770.
2024-08-26 10:34:07 +00:00
Robozinho
207a16ccb4 use backend string for backups 2024-08-25 15:53:17 +00:00
Arthur Milchior
0ac307c382 NF: remove all onboarding related code
It seems it will never get used.

19-onboarding was not sent to crowdin for translation. So no need to
remove the file in other directories or update the translation script.
2024-08-25 10:20:12 +00:00
SanjaySargam
92f4d1c091 feat: deckpicker drag & drop 2024-08-24 03:24:41 +00:00
Mike Hardy
6630ff411d Bumped version to 2.19beta1 2024-08-23 21:18:32 +00:00
Mike Hardy
54c8d458fb release: switch 2.19 to beta version series, beta play store track 2024-08-23 18:14:18 +00:00
AnkiDroid Translations
0137b5c50b Updated strings from Crowdin 2024-08-23 17:22:46 +00:00
David Allison
2aa2040173 feat(libAnki): implement decks.cardCount()
Sourced from

a179da3827/pylib/anki/decks.py (L225)
2024-08-22 18:17:47 +00:00
parasite-68
fa5c6c296b docs: Twitter link changed to X 2024-08-22 17:40:14 +00:00
Moreno
8b5eb60ba3 add toggle auto advance command 2024-08-22 17:36:07 +00:00
Sumit Singh
fe88577dc5 Update top bar setting description 2024-08-22 17:36:01 +00:00
AnkiDroid Translations
1c4d66b55d Updated strings from Crowdin 2024-08-22 17:21:31 +00:00
Shruti Gitte
72e023a254 update:twitter logo 2024-08-22 17:00:03 +00:00
Arthur Milchior
1985077bbf Document the reason for dynamic shortcuts
I was very surprised to see we used dynamic and not static one. I
tried to transform them into static shortcut, which seems cleaner. And
realized that we can't for a very absurd technical reason.

So I document it here, hoping nobody else will lose time on it.
2024-08-22 16:37:22 +00:00
David Allison
f5bd014752 docs(deps): add 'kotlin' changelog
Dependabot lists changes, but the changelog is often
truncated due to its size
2024-08-22 16:21:14 +00:00