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

9341 Commits

Author SHA1 Message Date
dependabot-preview[bot]
ece5f8e1a9 Bump material from 1.0.0 to 1.1.0
Bumps [material](https://github.com/material-components/material-components-android) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/material-components/material-components-android/releases)
- [Commits](https://github.com/material-components/material-components-android/compare/1.0.0...1.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-01 21:44:40 -06:00
dependabot-preview[bot]
203be5ab0a Bump sqlite-android from 3.30.1 to 3.31.0
Bumps [sqlite-android](https://github.com/requery/sqlite-android) from 3.30.1 to 3.31.0.
- [Release notes](https://github.com/requery/sqlite-android/releases)
- [Changelog](https://github.com/requery/sqlite-android/blob/master/CHANGELOG.md)
- [Commits](https://github.com/requery/sqlite-android/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-01 21:44:40 -06:00
dependabot-preview[bot]
532f84b790 Bump powermock-module-junit4 from 2.0.4 to 2.0.5
Bumps [powermock-module-junit4](https://github.com/powermock/powermock) from 2.0.4 to 2.0.5.
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.4...powermock-2.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-01 21:44:40 -06:00
dependabot-preview[bot]
7569166960 Bump powermock-core from 2.0.4 to 2.0.5
Bumps [powermock-core](https://github.com/powermock/powermock) from 2.0.4 to 2.0.5.
- [Release notes](https://github.com/powermock/powermock/releases)
- [Changelog](https://github.com/powermock/powermock/blob/release/2.x/docs/changelog.txt)
- [Commits](https://github.com/powermock/powermock/compare/powermock-2.0.4...powermock-2.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-01 21:44:40 -06:00
Mike Hardy
cd7a89e529
Bumped version to 2.10alpha41
@branch-specific
2020-02-18 15:53:43 -05:00
Mike Hardy
e6bdf50307 Handle dynamic decks' lack of rev JSON object 2020-02-18 15:47:29 -05:00
Mike Hardy
4bc5ee1461 Avoid crash on audio clip w/no extension or mime type 2020-02-18 15:00:17 -05:00
Arthur Milchior
006faf3621 replace current().getLong("id") by .selected()
That should be ex actly the same thing, unless there is a real bug in
the collection. After all, current uses selected. Then get the deck
using the id. If we return the deck's id obtained through the id, it
present no interest
2020-02-18 12:02:02 -05:00
Arthur Milchior
e49b94d48f Try catch throw catched exception
I just had a problem hard to debug because the original exception was
lost. I correct it globally.
2020-02-18 09:35:05 -05:00
Mike Hardy
2a1da85dcd
Bumped version to 2.10alpha40
@branch-specific
2020-02-17 17:51:52 -05:00
Arthur Milchior
5aa75331f6 Applying correctly limit for top level new deck
In dbf3c09d5b I made a mistake. I moved
some codes from Sched and SchedV2 to Decks. This code was essentially
in charge of correcting errors in decks (duplicate name, missing parent...)

In the middle of this code was one line which was actually dealing
with scheduling, and which got removed by accident:
`nlim = Math.min(nLim, lims.get(p)[0]);`
This commit simply adds back this line. I should note that this line
is actually present in anki code. pylib/anki/sched.py#L:258
2020-02-17 17:49:05 -05:00
Mike Hardy
dc8049f605
Bumped version to 2.10alpha39
@branch-specific
2020-02-17 10:59:31 -05:00
Mike Hardy
75c2160a75
Bumped version to 2.10alpha38
@branch-specific
2020-02-17 10:58:16 -05:00
Mike Hardy
7a31c625ff Use application-level resources for Async fragments
Otherwise you will crash when you attempt to touch context resources
as the context does not exist (or we would not be doing an async fragment
to begin with...)
2020-02-17 10:23:12 -05:00
Mike Hardy
ede86059e4
Bumped version to 2.10alpha37
@branch-specific
2020-02-16 15:24:05 -05:00
Mike Hardy
2733857b87 Avoid crashing if initialization of CustomTabs fails 2020-02-16 15:21:44 -05:00
Mike Hardy
6958194e17 Avoid crashing on missing or oddly named audio clips
Fixes #5509
2020-02-17 08:22:33 +13:00
Mike Hardy
77282ef21d Improve file copy / error handling for audio clips 2020-02-17 08:22:33 +13:00
Mike Hardy
162b826c62 Add missing copyright header to audio clip controller 2020-02-17 08:22:33 +13:00
Mike Hardy
c8af8579f5 Add showToast as a general UIUtils method 2020-02-17 08:22:33 +13:00
Mike Hardy
e37e41c37d
Bumped version to 2.10alpha36
@branch-specific
2020-02-16 09:52:44 -05:00
Mike Hardy
6681602ea6 Avoid collection closed crash in reminders or study options fragment
This shows up in the crash database for people with auto-sync on startup,
that closes the database when it is done, at same time reminder or study
options fragment is still in process of being built.

Simple extract method refactors for the parts that touch
the collection, and we give it one more try

If that doesn't work, we at least don't crash now
2020-02-16 09:22:02 -05:00
Mike Hardy
6070b2804e Use OkHTTP for translation and pronunication fetching
This was an Apache HTTP client remnant, and it meant pronunciations
were broken in version 2.9.3 and later
2020-02-16 12:10:08 +13:00
Mike Hardy
84b200d12e Handle new pronunciation link text from beolingus 2020-02-16 12:10:08 +13:00
Mike Hardy
63fc087e4f Use https for glosbe and beolingus to match network policy 2020-02-16 12:10:08 +13:00
Mike Hardy
97a1270bff
Bumped version to 2.10alpha35
@branch-specific
2020-02-13 14:08:36 -05:00
Mike Hardy
3417928c45 Fix ImportDialog IllegalStateException crash
It appears ImportDialog can be requested in an async manner now from the
system file picker, and attempting to show the dialog when the Activity
has gone away results in a crash.

This is a simple conversion to an AsyncDialogFragment so we can gracefully
toast a message instead of crashing
2020-02-13 09:10:53 +13:00
Mike Hardy
e597068254 Fix MathJax crash due to usage of API26 regex APIs 2020-02-12 12:14:53 -05:00
Mike Hardy
464da436b3 Add lint job in CI, fail NewApi violations 2020-02-12 12:14:53 -05:00
Mike Hardy
014e695198 Categorize more okhttp connection errors as harmless 2020-02-12 18:24:47 +13:00
Mike Hardy
ef43f111ee
Bumped version to 2.10alpha34
@branch-specific
2020-02-09 21:26:24 -05:00
correia55
2c1564c436 Changed use general settings option title
Co-Authored-By: Mike Hardy <github@mikehardy.net>
2020-02-09 21:06:09 -05:00
Acácio Correia
8f9df8738a Fixed code style
Removed ignore missing translations
Removed portuguese translations for timeout
2020-02-09 21:06:09 -05:00
Acácio Correia
4d53139506 Option string moved to xml translations file
Changed the default value to 20 for all of the timeoutAnswer related variables
2020-02-09 21:06:09 -05:00
Acácio Correia
3a7bea5541 Added review options related to the automatic showing of answer specific to a group of decks 2020-02-09 21:06:09 -05:00
Michal Warzecha
794caeb785 Fix for: Latest update plays audio file twice #5530 2020-02-09 21:04:03 -05:00
Arthur Milchior
e0d26206bb Card browser accepts empty answer string
It partially corrects #5694. The browser does not seems to be loading
anymore when the answer is an empty string. (E.g. if the answer
consists only of a music file, or anything else which was deleted
because it can't be rendered)
2020-02-09 21:03:09 -05:00
Jacob Scherber
ded2dc4c0d Ignore android VM image captures 2020-02-09 21:01:51 -05:00
Timothy Rae
9678d634f0 Bumped version to 2.10alpha33
@branch-specific
2020-02-04 09:34:05 +13:00
Mike Hardy
a49271b2b4 Avoid RuntimeException crash in Sound
It is not documented, but in AOSP source RuntimeException may be
thrown for a variety of reasons while retrieving media metadata

This fix expands the catch to handle those RuntimeExceptions, even
though we can't really recover from them. The method is only responsible
for returning the duration of the sound, and it will now default to 0
in these cases.

This media duration method itself is only used when AnkiDroid is
configured for auto-advancing review, to calculate the delay correctly.
Since the file is likely inaccessible anyway, waiting for 0 duration in
that case seems correct anyway
2020-02-04 09:30:34 +13:00
Mike Hardy
8b909f6d2e Add okhttp connection failure to list of timeouts 2020-02-04 09:08:14 +13:00
Mike Hardy
63df867ffe de-lint and spelling fixes in Connection object 2020-02-04 09:08:14 +13:00
Mike Hardy
ab4e5b8e59 Adapt timeout detection to handle okhttp transition
Without this change, timeouts that were handled with apache-http are bubbling
up and causing app crashes when it is really just a connection error
2020-02-04 09:08:14 +13:00
dependabot-preview[bot]
9c1db92899 Bump junit-vintage-engine from 5.5.2 to 5.6.0
Bumps [junit-vintage-engine](https://github.com/junit-team/junit5) from 5.5.2 to 5.6.0.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.5.2...r5.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 09:52:03 -05:00
Mike Hardy
8c39ee3234 Update google-analytics-java7 library 2020-01-23 09:52:03 -05:00
dependabot-preview[bot]
3f89ce6e5c Bump okhttp from 3.12.7 to 3.12.8
Bumps [okhttp](https://github.com/square/okhttp) from 3.12.7 to 3.12.8.
- [Release notes](https://github.com/square/okhttp/releases)
- [Changelog](https://github.com/square/okhttp/blob/master/docs/changelog_3x.md)
- [Commits](https://github.com/square/okhttp/compare/parent-3.12.7...parent-3.12.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 09:52:03 -05:00
dependabot-preview[bot]
e1b0b31ad1 Bump okhttp from 3.12.6 to 3.12.7
Bumps [okhttp](https://github.com/square/okhttp) from 3.12.6 to 3.12.7.
- [Release notes](https://github.com/square/okhttp/releases)
- [Changelog](https://github.com/square/okhttp/blob/master/docs/changelog_3x.md)
- [Commits](https://github.com/square/okhttp/compare/parent-3.12.6...parent-3.12.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 09:52:03 -05:00
dependabot-preview[bot]
4a7af46c87 Bump com.github.triplet.play from 2.6.1 to 2.6.2
Bumps com.github.triplet.play from 2.6.1 to 2.6.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 09:52:03 -05:00
dependabot-preview[bot]
52ff9ce983 Bump mockito-core from 3.2.0 to 3.2.4
Bumps [mockito-core](https://github.com/mockito/mockito) from 3.2.0 to 3.2.4.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v3.2.0...v3.2.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-23 09:52:03 -05:00
Timothy Rae
87d419a5f2 Bumped version to 2.10alpha32
@branch-specific
2020-01-23 22:14:36 +13:00