]> gitweb.fperrin.net Git - Dictionary.git/log
Dictionary.git
6 years agoCheck isFinishing when creating a Toast in some cases.
Reimar Döffinger [Tue, 17 Apr 2018 20:41:56 +0000 (22:41 +0200)]
Check isFinishing when creating a Toast in some cases.

For code that may be run in the background this
is necessary to avoid a BadTokenException when
trying to display the Toast with no active window.

6 years agoBump version once more.
Reimar Döffinger [Sat, 14 Apr 2018 20:04:17 +0000 (22:04 +0200)]
Bump version once more.

6 years agoImprove handling when a word is not found.
Reimar Döffinger [Sat, 14 Apr 2018 20:01:36 +0000 (22:01 +0200)]
Improve handling when a word is not found.

Show the most similar word, instead of always
the following word in the list.
This has the side-effect of ignoring any trailing
dots or other garbage as in issue #80.

6 years agoReorder menu items to be more logical.
Reimar Döffinger [Sat, 14 Apr 2018 19:03:00 +0000 (21:03 +0200)]
Reorder menu items to be more logical.

Mostly follows suggestion in issue #59.

6 years agoUpdate to latest stable gradle tool version.
Reimar Döffinger [Sat, 14 Apr 2018 18:39:14 +0000 (20:39 +0200)]
Update to latest stable gradle tool version.

6 years agoCorrected some minor typos
Henning Francke [Wed, 11 Apr 2018 08:49:29 +0000 (10:49 +0200)]
Corrected some minor typos

6 years agoAdd AR-ES dictionary.
Reimar Döffinger [Mon, 26 Feb 2018 20:24:36 +0000 (21:24 +0100)]
Add AR-ES dictionary.

6 years agoNewer versions of build tools, support library etc.
Reimar Döffinger [Wed, 10 Jan 2018 19:30:47 +0000 (20:30 +0100)]
Newer versions of build tools, support library etc.

6 years agoAnother fix for text colour.
Reimar Döffinger [Wed, 10 Jan 2018 19:30:17 +0000 (20:30 +0100)]
Another fix for text colour.

6 years agoBump version for next release.
Reimar Döffinger [Wed, 10 Jan 2018 19:01:43 +0000 (20:01 +0100)]
Bump version for next release.

6 years agoSimplify LayoutParams.
Reimar Döffinger [Tue, 26 Dec 2017 12:02:16 +0000 (13:02 +0100)]
Simplify LayoutParams.

6 years agoSet text color for TextViews.
Reimar Döffinger [Mon, 8 Jan 2018 11:02:19 +0000 (12:02 +0100)]
Set text color for TextViews.

This was previously set partially for some text only, via
Spans which got lost in 4b0aa089555e54ebc9bf26f58096fb808b72420b.

Fixes issue #82.

6 years agoBump version and ID.
Reimar Döffinger [Mon, 11 Dec 2017 00:23:27 +0000 (01:23 +0100)]
Bump version and ID.

6 years agoPut language buttons in Layout for better performance.
Reimar Döffinger [Mon, 11 Dec 2017 00:19:25 +0000 (01:19 +0100)]
Put language buttons in Layout for better performance.

6 years agoMinor cleanup of DictionaryManager ListView adapter.
Reimar Döffinger [Sun, 10 Dec 2017 23:19:52 +0000 (00:19 +0100)]
Minor cleanup of DictionaryManager ListView adapter.

6 years agoRefactor adding bold spans.
Reimar Döffinger [Sun, 10 Dec 2017 23:02:07 +0000 (00:02 +0100)]
Refactor adding bold spans.

6 years agoSimplify adding a ClickableLink span.
Reimar Döffinger [Sun, 10 Dec 2017 22:57:01 +0000 (23:57 +0100)]
Simplify adding a ClickableLink span.

6 years agoSkippable optimization also for HtmlEntry.
Reimar Döffinger [Sun, 10 Dec 2017 22:33:04 +0000 (23:33 +0100)]
Skippable optimization also for HtmlEntry.

6 years agoUse singletonList for better performance.
Reimar Döffinger [Sun, 10 Dec 2017 21:56:16 +0000 (22:56 +0100)]
Use singletonList for better performance.

6 years agoMake use of the new skippable CachingList optimizations.
Reimar Döffinger [Sun, 10 Dec 2017 21:43:01 +0000 (22:43 +0100)]
Make use of the new skippable CachingList optimizations.

6 years agoSimplify NonLinkClickableSpan.
Reimar Döffinger [Sun, 10 Dec 2017 21:20:24 +0000 (22:20 +0100)]
Simplify NonLinkClickableSpan.

6 years agoRemove some unnecessary/nonsense checks.
Reimar Döffinger [Sun, 10 Dec 2017 17:59:50 +0000 (18:59 +0100)]
Remove some unnecessary/nonsense checks.

6 years agoUpdate Gradle version.
Reimar Döffinger [Sun, 10 Dec 2017 12:27:49 +0000 (13:27 +0100)]
Update Gradle version.

6 years agoRe-enable aapt2 again at v27.
Reimar Döffinger [Thu, 16 Nov 2017 20:58:14 +0000 (21:58 +0100)]
Re-enable aapt2 again at v27.

v27 should contain a workaround for the system crashes
the previous version could trigger with some buggy
Android versions.
The workaround consists in always encoding strings as
UTF-16 in the xml files, not UTF-8.

6 years agoBump versions for crashfix release.
Reimar Döffinger [Thu, 16 Nov 2017 20:23:48 +0000 (21:23 +0100)]
Bump versions for crashfix release.

6 years agoDisable aapt2.
Reimar Döffinger [Thu, 16 Nov 2017 20:20:39 +0000 (21:20 +0100)]
Disable aapt2.

It seems to cause whole-system crashes on many
older Android versions.

6 years agoUpdate release script.
Reimar Döffinger [Mon, 6 Nov 2017 20:30:48 +0000 (21:30 +0100)]
Update release script.

In new gradle version, the output is in the
release/ subdirectory.

6 years agoBump version code.
Reimar Döffinger [Mon, 6 Nov 2017 20:24:11 +0000 (21:24 +0100)]
Bump version code.

6 years agoAdd DE-TH dictionary.
Reimar Döffinger [Mon, 6 Nov 2017 20:05:32 +0000 (21:05 +0100)]
Add DE-TH dictionary.

6 years agoEnsure there is no ListAdapter using the closed file.
Reimar Döffinger [Sun, 5 Nov 2017 19:54:02 +0000 (20:54 +0100)]
Ensure there is no ListAdapter using the closed file.

6 years agoBump app versions.
Reimar Döffinger [Sun, 5 Nov 2017 18:53:42 +0000 (19:53 +0100)]
Bump app versions.

6 years agoOptimize word list ListView part 3.
Reimar Döffinger [Sun, 5 Nov 2017 18:51:28 +0000 (19:51 +0100)]
Optimize word list ListView part 3.

Set various spans BEFORE setting the TextView text.
Avoids doing a second reflow once the spans have been set.

6 years agoOptimize word list ListView part 2.
Reimar Döffinger [Sun, 5 Nov 2017 18:22:33 +0000 (19:22 +0100)]
Optimize word list ListView part 2.

Also re-use the TableLayout and contained
TextViews as much as possible.

6 years agoOptimize word list ListView part 1.
Reimar Döffinger [Sun, 5 Nov 2017 18:06:08 +0000 (19:06 +0100)]
Optimize word list ListView part 1.

Do not put simple TextViews in a TableLayout.
Also avoid re-creating them over and over.

6 years agoRemove some margins that seem a bit overkill.
Reimar Döffinger [Sun, 5 Nov 2017 15:46:14 +0000 (16:46 +0100)]
Remove some margins that seem a bit overkill.

6 years agoTool and library updates.
Reimar Döffinger [Sun, 5 Nov 2017 14:42:52 +0000 (15:42 +0100)]
Tool and library updates.

6 years agoAlways set and unset DICT_FILE and INDEX_SHORT_NAME together.
Reimar Döffinger [Wed, 1 Nov 2017 22:12:31 +0000 (23:12 +0100)]
Always set and unset DICT_FILE and INDEX_SHORT_NAME together.

6 years agoRemove dead code.
Reimar Döffinger [Wed, 1 Nov 2017 22:08:09 +0000 (23:08 +0100)]
Remove dead code.

The search token was saved and restored to shared preferences
for no reason at all.

6 years agoRemove dead code.
Reimar Döffinger [Wed, 1 Nov 2017 22:08:09 +0000 (23:08 +0100)]
Remove dead code.

The search token was saved and restored to shared preferences
for no reason at all.

6 years agoSome updates to readme file, to reflect e.g. use of submodule.
Reimar Döffinger [Wed, 1 Nov 2017 21:50:28 +0000 (22:50 +0100)]
Some updates to readme file, to reflect e.g. use of submodule.

6 years agoBump version again.
Reimar Döffinger [Sat, 2 Sep 2017 19:14:55 +0000 (21:14 +0200)]
Bump version again.

6 years agoSanity-limit allocations.
Reimar Döffinger [Sat, 2 Sep 2017 19:13:48 +0000 (21:13 +0200)]
Sanity-limit allocations.

6 years agoImprovements to unzip and install code.
Reimar Döffinger [Sat, 2 Sep 2017 19:04:55 +0000 (21:04 +0200)]
Improvements to unzip and install code.

Request more permissions if necessary,
and do not delete shared files.

6 years agoExtended error messages and additional null checks.
Reimar Döffinger [Sat, 2 Sep 2017 18:12:22 +0000 (20:12 +0200)]
Extended error messages and additional null checks.

6 years agoAdd DE-RO dictionary.
Reimar Döffinger [Sat, 2 Sep 2017 17:59:38 +0000 (19:59 +0200)]
Add DE-RO dictionary.

6 years agoFix HtmlEntry for v6 dictionaries.
Reimar Döffinger [Sat, 2 Sep 2017 17:50:05 +0000 (19:50 +0200)]
Fix HtmlEntry for v6 dictionaries.

6 years agoAvoid null in Intent, just in case.
Reimar Döffinger [Sun, 20 Aug 2017 14:39:03 +0000 (16:39 +0200)]
Avoid null in Intent, just in case.

6 years agoBump version for next release.
Reimar Döffinger [Sun, 20 Aug 2017 14:05:10 +0000 (16:05 +0200)]
Bump version for next release.

6 years agoAdd menu item to download dictionaries in browser.
Reimar Döffinger [Sun, 20 Aug 2017 14:04:01 +0000 (16:04 +0200)]
Add menu item to download dictionaries in browser.

Fallback when DownloadManager has issues, which is all
too frequent.

6 years agoSupport installing local dictionary zip files.
Reimar Döffinger [Sun, 20 Aug 2017 13:51:45 +0000 (15:51 +0200)]
Support installing local dictionary zip files.

Has app show up as an open option from e.g.
browser.

6 years agoSupport opening .quickdic files from file manager.
Reimar Döffinger [Sun, 20 Aug 2017 12:38:49 +0000 (14:38 +0200)]
Support opening .quickdic files from file manager.

6 years agoFix error message when download manager in unavailable.
Reimar Döffinger [Sat, 19 Aug 2017 15:34:58 +0000 (17:34 +0200)]
Fix error message when download manager in unavailable.

6 years agoBump version and targetSdkVersion
Reimar Döffinger [Sun, 13 Aug 2017 11:42:20 +0000 (13:42 +0200)]
Bump version and targetSdkVersion

6 years agoUpdate DE-RU dictionary with fixes.
Reimar Döffinger [Sun, 13 Aug 2017 11:40:27 +0000 (13:40 +0200)]
Update DE-RU dictionary with fixes.

6 years agoBump buildTools and targetSdkVersion.
Reimar Döffinger [Sun, 13 Aug 2017 11:38:06 +0000 (13:38 +0200)]
Bump buildTools and targetSdkVersion.

6 years agoImplement "equals" for Pair class.
Reimar Döffinger [Sun, 13 Aug 2017 11:37:07 +0000 (13:37 +0200)]
Implement "equals" for Pair class.

Allows preventing duplicates more easily.

6 years agoAdd CollatorWrapper to allow using different implementation.
Reimar Döffinger [Sat, 5 Aug 2017 18:30:58 +0000 (20:30 +0200)]
Add CollatorWrapper to allow using different implementation.

PC should use the ICU version explicitly, whereas
on Android java.text.Collator is based on ICU anyway
so we do not need to waste space including ICU.

6 years agoAdd AR-TR dictionary.
Reimar Döffinger [Sat, 5 Aug 2017 08:05:43 +0000 (10:05 +0200)]
Add AR-TR dictionary.

6 years agoAdd "synchronized" to initialization function, just in case.
Reimar Döffinger [Sat, 5 Aug 2017 08:05:23 +0000 (10:05 +0200)]
Add "synchronized" to initialization function, just in case.

6 years agoWork around Android bug causing crashes.
Reimar Döffinger [Sat, 5 Aug 2017 08:04:57 +0000 (10:04 +0200)]
Work around Android bug causing crashes.

6 years agoAvoid inheriting from Application.
Reimar Döffinger [Tue, 27 Jun 2017 20:25:17 +0000 (22:25 +0200)]
Avoid inheriting from Application.

Supposedly this is best practice (a bit doubtful about
that) but it is a brute-force approach to try fixing
the ClassCastException issues.

6 years agoMove code using ISO to language resources into IsoUtils.
Reimar Döffinger [Tue, 27 Jun 2017 19:32:11 +0000 (21:32 +0200)]
Move code using ISO to language resources into IsoUtils.

Part of effort to reduce size and complexity of
DictionaryApplication class.

6 years agoAnother version code bump.
Reimar Döffinger [Sat, 24 Jun 2017 13:59:24 +0000 (15:59 +0200)]
Another version code bump.

6 years agoAvoid unnecessary use of startsWith.
Reimar Döffinger [Sat, 24 Jun 2017 13:52:04 +0000 (15:52 +0200)]
Avoid unnecessary use of startsWith.

6 years agoAllocate ArrayList to right size from the start.
Reimar Döffinger [Sat, 24 Jun 2017 13:26:56 +0000 (15:26 +0200)]
Allocate ArrayList to right size from the start.

6 years agoOptimize resolveClass a bit.
Reimar Döffinger [Sat, 24 Jun 2017 13:17:05 +0000 (15:17 +0200)]
Optimize resolveClass a bit.

Short evaluation is possible a bit more often.

6 years agoRemove unnecessary qualifier.
Reimar Döffinger [Sat, 24 Jun 2017 13:02:30 +0000 (15:02 +0200)]
Remove unnecessary qualifier.

6 years agoBuffer input/output streams.
Reimar Döffinger [Sat, 24 Jun 2017 13:02:02 +0000 (15:02 +0200)]
Buffer input/output streams.

6 years agoPrefer ordinary HashMap over LinkedHashMap.
Reimar Döffinger [Sat, 24 Jun 2017 12:47:15 +0000 (14:47 +0200)]
Prefer ordinary HashMap over LinkedHashMap.

6 years agoBump version code.
Reimar Döffinger [Fri, 23 Jun 2017 21:31:39 +0000 (23:31 +0200)]
Bump version code.

6 years agoTry to work around ClassCastException issue.
Reimar Döffinger [Fri, 23 Jun 2017 21:29:37 +0000 (23:29 +0200)]
Try to work around ClassCastException issue.

6 years agoBump version.
Reimar Döffinger [Fri, 23 Jun 2017 21:12:05 +0000 (23:12 +0200)]
Bump version.

6 years agoFix performance of unpacking zip files.
Reimar Döffinger [Fri, 23 Jun 2017 21:09:02 +0000 (23:09 +0200)]
Fix performance of unpacking zip files.

Unfortunately the zip functions absolutely need
the input stream to be buffered, or performance will
be very bad.
Also the zip read functions return very short reads
(< 1 kB on average), so we need to buffer them up
to get a usable write size.
Using a FileChannel improves performance a little
bit in addition, but it's probably the least
critical change.

6 years agoBump version for release.
Reimar Döffinger [Thu, 15 Jun 2017 17:12:22 +0000 (19:12 +0200)]
Bump version for release.

6 years agoAdd russion to resConfigs.
Reimar Döffinger [Thu, 15 Jun 2017 17:01:02 +0000 (19:01 +0200)]
Add russion to resConfigs.

6 years agoMerge pull request #69 from antonv6/l10n-ru
Reimar Döffinger [Thu, 15 Jun 2017 15:00:01 +0000 (17:00 +0200)]
Merge pull request #69 from antonv6/l10n-ru

Russian translation

6 years agoMore error messages
Anton Shestakov [Wed, 14 Jun 2017 03:28:55 +0000 (11:28 +0800)]
More error messages

6 years agoMore robust code to get display density.
Reimar Döffinger [Tue, 13 Jun 2017 20:35:28 +0000 (22:35 +0200)]
More robust code to get display density.

Hopefully avoids the occasional null pointer
exceptions triggered by the previous code.

6 years agoUpdate gradle version.
Reimar Döffinger [Tue, 13 Jun 2017 20:35:03 +0000 (22:35 +0200)]
Update gradle version.

6 years agoImprove wording
Anton Shestakov [Tue, 13 Jun 2017 10:50:17 +0000 (18:50 +0800)]
Improve wording

6 years agoTranslate font types
Anton Shestakov [Sun, 4 Jun 2017 07:08:05 +0000 (15:08 +0800)]
Translate font types

6 years agoCreate values-ru/languages.xml
Anton Shestakov [Sun, 4 Jun 2017 07:02:09 +0000 (15:02 +0800)]
Create values-ru/languages.xml

6 years agoXML header
Anton Shestakov [Sun, 4 Jun 2017 05:09:25 +0000 (13:09 +0800)]
XML header

6 years agoReword some phrases
Anton Shestakov [Sun, 4 Jun 2017 05:09:11 +0000 (13:09 +0800)]
Reword some phrases

6 years agoCreate values-ru/strings.xml
Anton Shestakov [Sun, 4 Jun 2017 04:51:37 +0000 (12:51 +0800)]
Create values-ru/strings.xml

6 years agoCreate values-ru/arrays.xml
Anton Shestakov [Sun, 4 Jun 2017 04:46:17 +0000 (12:46 +0800)]
Create values-ru/arrays.xml

7 years agoSet resConfigs to include strings only for supported languages.
Reimar Döffinger [Sat, 15 Apr 2017 20:25:51 +0000 (22:25 +0200)]
Set resConfigs to include strings only for supported languages.

7 years agoAdd supportsRtl flag.
Reimar Döffinger [Sat, 15 Apr 2017 20:18:26 +0000 (22:18 +0200)]
Add supportsRtl flag.

7 years agoAllow multi-window (untested).
Reimar Döffinger [Sat, 15 Apr 2017 20:04:33 +0000 (22:04 +0200)]
Allow multi-window (untested).

7 years agoAdd EN-cu dictionary.
Reimar Döffinger [Thu, 13 Apr 2017 21:02:15 +0000 (23:02 +0200)]
Add EN-cu dictionary.

7 years agoUpdate tools.
Reimar Döffinger [Thu, 13 Apr 2017 20:54:29 +0000 (22:54 +0200)]
Update tools.

7 years agoRefine German translation as per issue #67.
Reimar Döffinger [Tue, 4 Apr 2017 22:02:06 +0000 (00:02 +0200)]
Refine German translation as per issue #67.

7 years agoAdd EN-scn.
Reimar Döffinger [Thu, 23 Mar 2017 22:29:57 +0000 (23:29 +0100)]
Add EN-scn.

7 years agoBump version code for release.
Reimar Döffinger [Sun, 19 Mar 2017 20:44:00 +0000 (21:44 +0100)]
Bump version code for release.

7 years agoMake thread priority setting actually work.
Reimar Döffinger [Sun, 19 Mar 2017 20:39:25 +0000 (21:39 +0100)]
Make thread priority setting actually work.

Also tune the priority value for better results.

7 years agoFix too course locking that broke startup optimization.
Reimar Döffinger [Sun, 19 Mar 2017 19:56:32 +0000 (20:56 +0100)]
Fix too course locking that broke startup optimization.

Fixes issue #35.

7 years agoNormalizeComparator: improve type, support null normalizer.
Reimar Döffinger [Sun, 19 Mar 2017 18:05:59 +0000 (19:05 +0100)]
NormalizeComparator: improve type, support null normalizer.

Useful for using it without a transliterator, in
case that one is not up yet.

7 years agoBump version.
Reimar Döffinger [Sat, 18 Mar 2017 16:10:34 +0000 (17:10 +0100)]
Bump version.

7 years agoUpdate dependencies to newer versions.
Reimar Döffinger [Sat, 18 Mar 2017 15:45:04 +0000 (16:45 +0100)]
Update dependencies to newer versions.

7 years agoAdd hack to make binary search a bit more robust.
Reimar Döffinger [Sat, 18 Mar 2017 15:38:07 +0000 (16:38 +0100)]
Add hack to make binary search a bit more robust.