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

19583 Commits

Author SHA1 Message Date
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
David Allison
20d4627ab5 build(deps): consolidate 'kotlin' dependency
Libraries are released in lockstep
2024-08-22 16:21:14 +00:00
Warley
2910ce55a8 fix(api): /schedule limit parameter returned same data
The limit parameter didn't work: returning the same card data N times
2024-08-22 13:26:29 +00:00
Arthur Milchior
3f68530c0f NF: Don't update the deck list when the deck picker is hidden
I discover that each time an action occur in the reviewer, the deck
picker is updated. This is uselessly costly.

I tested and when going back to the deck picker, I still get the up to
date data immediately.
2024-08-22 09:30:50 +00:00
Mike Hardy
f720ae030b Bumped version to 2.19alpha12 2024-08-21 18:54:12 +00:00
MorenoTropical
8878e0f537 fix: check sign in note editor 2024-08-21 16:56:18 +00:00
AnkiDroid Translations
92da13444c Updated strings from Crowdin 2024-08-21 16:16:47 +00:00
Mike Hardy
e4e19327e0 fix: use anki 24.06.03 as new backend 2024-08-21 16:01:32 +00:00
Mike Hardy
28704d6822 test: identical values in filtered decks are shuffled now
this behavior changed upstream, with associated test change, we adopt it here
ref: 55d68c01d8
2024-08-21 16:01:32 +00:00
Ashish Yadav
353da3eaaa fix: unnecessary camera permission check
* We previously removed the camera permission from the manifest file (commit: fix: remove camera permission #14162, by Brayan). However, the code now includes a check for this permission that was introduced in commit 6a8ede0. Since th permission is not declared, this check fails, and the camera cannot be launched.

* The camera feature is declared in the manifest file as <uses-feature android:name="android.hardware.camera" /> rather than using <uses-permission android:name="android.permission.CAMERA" />. This omission causes the current permission
check to always return false, preventing users from accessing the camera options. This PR corrects that issue by removing that permission check.
2024-08-21 02:24:25 +00:00
AnkiDroid Translations
1a0f620078 Updated strings from Crowdin 2024-08-21 02:23:22 +00:00