Commit graph

13220 commits

Author SHA1 Message Date
Eric House
08a8bc4189 add non-again tip for archive backup 2022-06-24 12:34:46 -07:00
Eric House
6ec78c0441 group backup/restore menuitems 2022-06-24 10:37:12 -07:00
Eric House
b0d0fa8da7 fix nag timers firing when display disabled
Logic to set the fire time in the future wasn't firing when display of
the nag was diabled, so timers fired every few ms because they always
existed in the past.
2022-06-22 20:46:39 -07:00
Eric House
2f6680b9a3 tweak string 2022-06-22 20:46:39 -07:00
Viktória Nagy
f2f8904569
Translated using Weblate (Hungarian)
Currently translated at 9.7% (86 of 885 strings)
2022-06-17 18:18:07 +02:00
Viktória Nagy
ae1e9fb1ae
Added translation using Weblate (Hungarian) 2022-06-16 16:00:50 +02:00
Eric House
81236961bd deal with attempts to open bogus file
Because I can't filter for file type, user may ask to open the wrong
thing. So put up an alert with a "try again" button. And include the
name of the chosen file for clarity.
2022-06-14 22:16:25 -07:00
Eric House
ca1b12d194 add a warning before overwriting games 2022-06-14 13:36:33 -07:00
Eric House
c311eac65e don't show empty messages
Need to remember that jsonobj.optString() returns "" by default
2022-06-14 11:01:39 -07:00
Wellington Terumi Uemura
971d267460
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (885 of 885 strings)
2022-06-14 18:16:33 +02:00
Eric House
2635be0429 fix filename 2022-06-13 17:06:50 -07:00
Eric House
ec658fb970 load */* rather than x-zip
After a hard-reset I can't open an archive file if I'm looking for
x-zip, because, I guess, the mime type is something the OS records
rather than deduced from the file. With this change, I can export,
hard-reset, and then import the file to get my settings and games
going again.
2022-06-13 14:25:41 -07:00
Hosted Weblate
7c88042102
Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Crosswords/Android
Translate-URL: https://hosted.weblate.org/projects/xwords/android/
2022-06-13 18:00:23 +02:00
Eric House
f04e19e6bd add missing file to fix build 2022-06-13 09:00:05 -07:00
Hosted Weblate
ca424315a4
Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Crosswords/Android
Translate-URL: https://hosted.weblate.org/projects/xwords/android/
2022-06-13 17:54:19 +02:00
Eric House
883ab7ca1e add title (same as menuitem text) 2022-06-13 08:51:10 -07:00
Eric House
c705b6caa0 move strings 2022-06-13 08:51:10 -07:00
Eric House
7a0b38d5cf disable button when nothing checked 2022-06-13 08:51:10 -07:00
Eric House
3c1acf28ac closer to finished UI 2022-06-13 08:51:10 -07:00
Eric House
ff5a1b9ad4 add to .gitignore 2022-06-13 08:51:10 -07:00
Eric House
d3d702ad9e fixes to data export/import
Main problem, aside from the explanations being stubbed out, is that
zip file overwriting doesn't work: once an entry is in the file, it'll
be there when the file's overwritten even if that entry is
excluded. This happens even if I create the file in memory and then
overwrite using the bytes.
2022-06-13 08:51:10 -07:00
Eric House
d73481ba9b don't offer backup/restore earlier than KitKat
I'm using ContentResolver now, and it shows up in KitKat
2022-06-13 08:51:10 -07:00
Eric House
a620ae4afc use ContentResolver to export and import backups
This is the kosher way now, and solves problems with accessing
Downloads or other public directories on newer Android versions.
2022-06-13 08:51:10 -07:00
Eric House
c329b1bab4 always show load-saved-games menuitem if file present
You can't create the file naively, but want it to be easy to use if
it's present.
2022-06-13 08:51:10 -07:00
ssantos
2c3d0dd52a
Translated using Weblate (German)
Currently translated at 88.0% (781 of 887 strings)
2022-06-13 09:17:01 +02:00
Wellington Terumi Uemura
e762ad46f3
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (887 of 887 strings)
2022-06-09 12:16:28 +02:00
Eric House
6720367e66 fix NPE likely introduced by lang->isoCode changes 2022-06-06 21:46:38 -07:00
Eric House
2a6d1a0af2 save and restore prefs as part of saving/restoring games
A bit of testing says this works (to allow somebody moving to a new
phone to export and then import sharedpreferences in addition to the
games DB. There may be race conditions, but it probably works better
than nothing.
2022-06-06 20:49:58 -07:00
Eric House
4f3decc1c5 add config to get "legacy" external storage access 2022-06-06 20:38:26 -07:00
Eric House
58680980e2 show an error Toast when db file export fails
Right now I seem to be writing it someplace I'm not supposed to
2022-06-06 20:21:50 -07:00
Eric House
3dea7bd205 fix display of wordlist note when there is none 2022-06-05 17:04:28 -07:00
Eric House
8c4a1d2be6 add support for Dazaga language 2022-06-05 16:38:23 -07:00
Eric House
fd726a9563 add support for Tudaga language 2022-06-05 16:27:26 -07:00
Eric House
6b1e28e0e6 add asserts and logging 2022-06-05 16:15:31 -07:00
Eric House
d4572f2aea up version code so can test with new-format wordlists 2022-06-05 16:15:01 -07:00
Eric House
d24099f52b clean up Hex wordlist
Remove it from known set so it can be used to test. Get rid of
filenames having umlaut since that screws up URLs between Android and
nginx (not sure whose fault and not going there now.) Lang name should
be able to have an umlaut, but it gets used for filename for now so
fix later....
2022-06-05 14:38:33 -07:00
Eric House
20df5fec3a add command to print language name 2022-06-05 13:47:29 -07:00
Eric House
ce743a7e11 cleanup: tweak assertions 2022-06-05 09:46:33 -07:00
Eric House
e30fd7151f add asserts and logging 2022-06-05 09:07:06 -07:00
Eric House
6f96317e69 test for null data rather than catch and log every time 2022-06-05 09:07:06 -07:00
Eric House
7e591f39a5 log isoCode 2022-06-05 09:07:06 -07:00
Eric House
d28aaa17a9 fix failure to detect missing isocode
Needed to supply null to optString, as default is ""
2022-06-05 09:07:06 -07:00
Eric House
4398632d87 move table scheme into table name emum
Just a cleanup, basically; no behavior change
2022-06-05 09:07:06 -07:00
Eric House
20908284f5 LangCode->ISOCode replacement, Android side
Now we use only ISOCode string internally to identify languages, and
since that's universal it can be built into an wordlist and used
without the build of CrossWords knowing about that language
specifically (though it'll have to know about it to have the language
name be localizable.) For legacy support, though, the old int codes
are transmitted in invitations and URLs IFF available, otherwise the
string's used. If a newer build invites and older build to play in a
too-new language there will be trouble.
2022-06-05 09:07:06 -07:00
Eric House
ba132bb23d Replace LangCode with ISOCode, linux and common side
This will break the Android build, but it's the order in which I
work...
2022-06-05 09:07:01 -07:00
Eric House
8c04dddcc8 Fix not passing lang for studylist 2022-06-04 14:18:03 -07:00
Eric House
33b636b458 cleanup around lc code; add to JNI 2022-06-04 14:18:03 -07:00
Eric House
4190926c0a add isoCode to DictInfo, and load it 2022-06-04 14:18:00 -07:00
Eric House
0e665a990e add langName and isoCode to dict struct 2022-05-28 09:00:20 -07:00
Eric House
8c335aace3 fix crash on shutdown (post-relay world) 2022-05-28 08:49:07 -07:00