Eric House
ab15037076
fix method name that prevented its getting called
2014-06-06 06:52:22 -07:00
Eric House
60dc482e76
move method into superclasses
2014-06-06 06:33:28 -07:00
Eric House
164199335a
oops: this activity doesn't have a menu
2014-06-06 06:10:46 -07:00
Eric House
4ff473ed41
need to call super to avoid a crash
2014-06-06 05:56:37 -07:00
Eric House
bfe3e1303f
conform with static member naming convention (no code change)
2014-06-06 05:46:05 -07:00
Eric House
93446a1760
tweak: don't redo adapter once the last download finishes
2014-06-06 05:31:08 -07:00
Eric House
c184d68976
fix NPE -- but something's still wrong with player config dict spinner
2014-06-06 05:24:41 -07:00
Eric House
202c942ab0
remove progress trackers as downloads come in
2014-06-05 07:17:55 -07:00
Eric House
b0912f3fa2
oops: needed to rename in manifest too
2014-06-05 06:19:42 -07:00
Eric House
fe7bb09d46
rename class: it's not just for wordlist any more
2014-06-05 06:10:15 -07:00
Eric House
f8612e727d
Support download of multiple dicts at once. (Download of apps not tested and may be broken. Next...)
2014-06-05 06:05:23 -07:00
Eric House
08b96dac82
center empty list message
2014-06-03 07:49:20 -07:00
Eric House
f3daed2e12
add menu to remote dicts display, track selected dicts, and implement
...
download. Which works. Still need to clean up UI for multiple
downloads, track selection across rebuilds of list adapter, etc.
2014-06-03 07:45:08 -07:00
Eric House
11178845fc
remove extension from dict name in download progress bar
2014-06-03 07:45:08 -07:00
Eric House
7c95c36025
cleanup imports
2014-06-03 07:45:08 -07:00
Eric House
064ef0c137
display languages in sorted order
2014-06-03 07:45:08 -07:00
Eric House
ae4260a259
snapshot: handle json data (hardcoded for now) from server and display
...
collapsible list of selectable dict names.
2014-06-03 07:45:08 -07:00
Eric House
b1705e6073
make lang group header expand button actually expand/contract.
2014-06-03 07:45:08 -07:00
Eric House
03f16a1e0b
avoid NPE
2014-06-03 07:45:08 -07:00
Eric House
4596ed5d7b
snapshot on the way to removing last expandablelist use: dictsdelegate
...
lists languages and wordlists under them, but nothing's colapsable yet.
2014-06-03 07:45:08 -07:00
Eric House
393d419056
cleanup: remove unused imports
2014-06-03 07:45:08 -07:00
Eric House
d55dd7e206
change format of downloadable dict info. Late checkin: Android code's
...
been counting on this for several days.
2014-06-03 07:43:47 -07:00
Eric House
a6205f3dca
move onBackPressed() into activity superclasses
2014-05-29 07:15:34 -07:00
Eric House
092c0f54c8
include md5sums of dicts in json
2014-05-28 20:45:55 -07:00
Eric House
ef970efc7a
don't crash: call setContentView() from delegate rather than activity
2014-05-28 20:45:14 -07:00
Eric House
5d0a6babae
add function to list all wordlists by lang in a json -- toward not
...
using webview for download function.
2014-05-28 07:14:45 -07:00
Eric House
937e1fa9a9
don't upgrade app and translations at the same time (since new app may
...
behave differently once installed)
2014-05-28 06:43:37 -07:00
Eric House
9d23aef31d
when a string has format specifiers, highlight them, and offer a
...
newbie tip explaining the translation must match.
2014-05-22 23:50:44 -07:00
Eric House
a6d8a74102
move a few methods, and add utilities, to superclass.
2014-05-22 23:35:51 -07:00
Eric House
4b26e04691
fix update when text cleared: passing null to setText() is ok
2014-05-22 06:46:59 -07:00
Eric House
91d7213be6
fix strings.xml files, syncing names and removing obsolete elements
2014-05-22 06:35:08 -07:00
Eric House
f87bf2f95d
allow non-English strings.xml files to have duplicate text
2014-05-22 06:07:55 -07:00
Eric House
d1aa5d73f2
don't allow to save translation where format specifiers don't match; cleanup
2014-05-22 05:59:43 -07:00
Eric House
6f6781ceed
move dialog creation stuff into activity base class
2014-05-21 22:03:56 -07:00
Eric House
174ee22a4b
use inherited invalidateOptionsMenuIf()
2014-05-21 20:08:57 -07:00
Eric House
0b379a941b
snapshot: add menu to xlation item editor.
2014-05-21 06:59:38 -07:00
Eric House
2293e6a730
remove unused imports
2014-05-21 06:56:51 -07:00
Eric House
3055a0a1e4
result of running fix_loc_xmls.py with new -% option
2014-05-20 20:54:12 -07:00
Eric House
9a9a4e2991
add option to replace %s with %1$d etc.
2014-05-20 20:53:48 -07:00
Eric House
0b6549d829
as formatted by python scripts, but without any non-whitespace changes
2014-05-20 20:52:18 -07:00
Eric House
dbaa28de5e
don't refuse to delete local translation
2014-05-20 07:00:03 -07:00
Eric House
9bf92257b9
ignore more stuff
2014-05-19 07:54:08 -07:00
Eric House
af5cbe5325
need to call super when don't handle an id locally
2014-05-19 07:53:41 -07:00
Eric House
4452adf33d
no blank Translate menu titles
2014-05-19 07:26:10 -07:00
Eric House
1ebf51d3ab
when building from modified tree, still use latest commit number for
...
about box for easier debugging. Shouldn't matter for releases.
2014-05-19 07:15:21 -07:00
Eric House
f8dbc91cb0
don't set constant if R.java has uncommitted changes
2014-05-19 07:10:29 -07:00
Eric House
8f15f76fed
label xlations with the language name
2014-05-17 16:57:24 -07:00
Eric House
018424e6e8
modify item text after the db backing it is modified by covering edit
...
activity.
2014-05-16 22:11:18 -07:00
Eric House
dfbb1bae71
derive context from menu that's triggered from it rather than trying
...
to set it from onResume() calls.
2014-05-16 22:05:48 -07:00
Eric House
3c4ed7de46
associate strings with the contexts in which they're looked up and
...
implement that filter. I'm tracking by the name of the class rather
than a WeakReference, which means that the hashsets of keys will never
be freed. Will need to see how much memory that means I'm using.
2014-05-16 06:40:01 -07:00
Eric House
c44a676808
derive from XWListActivity
2014-05-15 21:47:46 -07:00
Eric House
750393a5e6
oops: get the translation activity translated!
2014-05-15 06:53:03 -07:00
Eric House
891af6a84d
use iter.remove to avoid ConcurrentModificationException
2014-05-15 06:43:59 -07:00
Eric House
6ce47f8208
use WeakReference rather than hashCode to associate menu with its strings
2014-05-15 06:37:03 -07:00
Eric House
5364f31da0
add filter and state-tracking for most recent menu. Used hashCode to
...
identify menu (since keeping a reference to it would cause it to
leak.) Will try WeakReference instead, or just dumping when another
comes along.
2014-05-15 05:41:15 -07:00
Eric House
e8efd70bdc
tweak strings
2014-05-15 05:39:29 -07:00
Eric House
cbb10f6994
remove logging
2014-05-15 05:31:40 -07:00
Eric House
5e70d28ea1
first cut at filtering: all and modified work, but the other two
...
require that I track strings by the contexts in which they appear.
2014-05-14 21:24:29 -07:00
Eric House
6426e41d30
show locally-translated strings in red
2014-05-14 19:04:58 -07:00
Eric House
d00e49f843
save edited translations
2014-05-14 06:46:08 -07:00
Eric House
3040003126
oops -- include auto-modified files
2014-05-13 21:23:53 -07:00
Eric House
c4598f2bf9
tweak main translations strings layout
2014-05-13 21:22:50 -07:00
Eric House
4d42768f83
add separate activity/delegate for editing translations, launched by
...
tapping on a line in the list-o-strings.
2014-05-13 21:07:56 -07:00
Eric House
47eaca3d71
add filter spinner to translate dialog (though there's not yet data to filter on)
2014-05-13 06:30:38 -07:00
Eric House
049c55e2d2
toward adding default menu to all activities and eventually tracking
...
translations by where they're used so most relevant can be shown: put
back common superclasses XWActivity and XWListActivity with default
implemenations of activity lifecycle methods that call through to
delegates (and that later can help LocUtils track what's been seen
when.) Not thoroughly tested, but seems to work for the main screens
anyway.
2014-05-12 21:26:31 -07:00
Eric House
19204d5720
remove unused/commented-out file
2014-05-12 21:23:27 -07:00
Eric House
c42e5f2c0f
keep elipses char where it belongs when reversing rest of strings
2014-05-11 20:15:10 -07:00
Eric House
49001c6893
various changes so dbg and bt versions build again -- and may work, but
...
that's not tested yet.
2014-05-11 19:55:05 -07:00
Eric House
2a3b8c7a74
when reversing words, preserve capitalization (i.e. start don't end with a cap)
2014-05-10 06:52:26 -07:00
Eric House
c06f0e157d
first cut at file to clean up variant trees by removing anything not
...
under version control
2014-05-10 06:50:55 -07:00
Eric House
b085aeeb46
translate DialogPreference title, message and buttons
2014-05-06 21:13:10 -07:00
Eric House
30b966b902
generate fake translations automatically
2014-05-06 07:47:29 -07:00
Eric House
c0afd40337
update test section to work again
2014-05-06 07:25:00 -07:00
Eric House
806851057c
update translations, late. This needs to be automated!!
2014-05-06 07:24:17 -07:00
Eric House
0ff09868cb
Query user before removing build dir
2014-05-06 06:58:57 -07:00
Eric House
a4cd137cef
get rid of #1 used to make strings unique: remove duplicates where
...
possible, and where not replace it with a non-printing zero-width
unicode char.
2014-05-06 06:27:33 -07:00
Eric House
d566bd63ae
break the last Activities out into Delegates, and move a bunch of
...
stuff info the delegate base class so fewer calls required on
m_activity and LocUtils.
2014-05-06 05:56:43 -07:00
Eric House
5d9e846316
make constructor protected
2014-05-06 05:55:33 -07:00
Eric House
ce77f09588
the new spinner adapter override works much better for game config's
...
spinners
2014-05-05 07:38:37 -07:00
Eric House
96ca4f9946
fix NPE: not all spinners have adapters
2014-05-05 07:27:06 -07:00
Eric House
1170a31385
translate spinners by replacing their adapters with new class that
...
delegates to old then translates any views returned
2014-05-05 07:19:35 -07:00
Eric House
6165fc2201
translate list summary
2014-05-05 06:45:37 -07:00
Eric House
22a9fbdb3e
translate color setting pref dialog
2014-05-05 06:37:05 -07:00
Eric House
3a7111c098
translate ListPreference lists
2014-05-05 06:03:33 -07:00
Eric House
477019757e
make getopt flags match what usage says is there
2014-05-04 16:39:56 -07:00
Eric House
1fcf9027cb
when looking for a translation for locale xx_YY, if there is none try
...
again for just xx. And silently drop strings in the translation file
with names that don't exist in English, though eventually that
shouldn't happen. With this change a newly installed app on a
claiming-to-be-Czech emulator picks up the Czech translation within
moments.
2014-05-04 16:26:35 -07:00
Eric House
edcd29c88d
in order that non-English versions not go long after installation
...
without translations, try immediately after any install or upgrade to
get translations from server. (Triggered from the Application rather
than an Activity, so initializing the preferences DB had to be moved
there too.) Should probably post a notification after installing
localizations, ideally with a message in the language, offering to
restart with all new strings.
2014-05-04 15:41:02 -07:00
Eric House
6d60e45eb9
tweak fake translation generation (and include new strings)
2014-05-02 22:08:44 -07:00
Eric House
43f90cb3b0
use -1 as array index
2014-05-02 22:03:02 -07:00
Eric House
ad65b93ef2
changes necessary to actually return a translation based on revision
...
hash of R.java passed by client, or none if it already has it. Rough,
but works.
2014-05-02 22:00:25 -07:00
Eric House
56a057f06c
when translations get out of sync with R.java values, there's often a
...
format exception. Catch that, and strip out the locale's translations
so the app at least doesn't crash. This should not happen once I have
the server side right, but it'll help now and provide a safety net
later.
2014-05-01 22:05:57 -07:00
Eric House
8d6f46fa22
snapshot. Should work for current case where the newest R.java is older than the app connecting
2014-05-01 08:15:42 -07:00
Eric House
7b40abfa2f
more features and some refactoring
2014-05-01 08:14:40 -07:00
Eric House
5a22e08664
no need for package name in app info as it's in the top-level obj
2014-04-30 07:28:42 -07:00
Eric House
164387b37d
update to use mygit
2014-04-30 07:25:23 -07:00
Eric House
6d194e5362
don't chdir (which isn't cool when a cgi); use subprocess's cwd param instead
2014-04-30 07:08:59 -07:00
Eric House
d91c307792
include hash of current R.java in xlation update json, not of the entire app
2014-04-30 03:29:47 -07:00
Eric House
a3bcef18f0
add more functionality
2014-04-29 21:15:50 -07:00
Eric House
a7c4730eb5
start of a file to interact with git for getting xlations
2014-04-29 06:53:02 -07:00
Eric House
d463ea3f30
commented-out line to copy xwdb into /sdcard from which it can be retrieved
2014-04-29 06:43:11 -07:00
Eric House
4279457471
name change to remind what script is doing
2014-04-29 06:43:11 -07:00
Eric House
b4d5130588
Merge remote branch 'origin/android_localize' into android_localize
2014-04-29 06:39:35 -07:00
Eric House
7ea037d56a
work with arrays of locales
2014-04-29 06:33:14 -07:00
Eric House
6c46ce2297
send and receive array of locales for translation info, one of which
...
is the device's current default. Plan's to include a fake as well if
set, but currently that replaces the default.
2014-04-28 07:58:23 -07:00
Eric House
b42c372c79
send git version code, app package name, and git hash with all messages
2014-04-27 20:03:40 -07:00
Eric House
be817feb55
add git rev hash as constant (and usage())
2014-04-27 20:03:08 -07:00
Eric House
19badff420
tweak text
2014-04-27 19:21:21 -07:00
Eric House
b87a7e808c
don't fail building if scp fails
2014-04-27 19:08:04 -07:00
Eric House
33a83b0e2f
toward use of data text messages for games: don't let CDMA phone users
...
turn data messages on, and when checking if SMS is supported say yes
for KitKat users if they've successfully turned data on.
2014-04-27 13:34:09 -07:00
Eric House
f386cd5c1b
for consistency, createDialog -> onCreateDialog
2014-04-27 13:17:48 -07:00
Eric House
716109e979
Merge branch 'android_branch' into android_localize
...
Conflicts:
xwords4/android/XWords4/src/org/eehouse/android/xw4/PrefsActivity.java
xwords4/android/XWords4/src/org/eehouse/android/xw4/SMSService.java
2014-04-26 22:04:57 -07:00
Eric House
c82c59d985
experimental: enable SMS on KitKat if debug setting to use Data SMS is on
2014-04-26 20:04:55 -07:00
Eric House
fbb042ffee
merge android_branch -> android_sms_kitkat
2014-04-26 18:31:05 -07:00
Eric House
ae4c6e98f2
replace escaped carraige returns and unicode from resources to get
...
closer to what getString returns. If I can't find an Android API to
do this it should be done on the server, but this is an improvement
until I do.
2014-04-25 20:58:14 -07:00
Eric House
540eb73aec
merge android_branch
2014-04-25 20:33:57 -07:00
Eric House
ead0fdf668
merge from_android_beta_82->
2014-04-25 20:29:54 -07:00
Eric House
f954b09391
merge android_branch->
2014-04-25 18:47:24 -07:00
Eric House
19573af533
a more elegant way of building up params to pass to PQexecParams
2014-04-25 18:45:51 -07:00
Eric House
a7c1724bb8
another change
2014-04-25 07:46:33 -07:00
Eric House
2f3a7f4bd2
allow board screen to be "upside down" on OS version new enough to
...
support it (and make SMS Invite Activity go any way, just like
everything else)
Conflicts:
xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java
2014-04-25 07:46:22 -07:00
Eric House
6eaf7a57b5
fix crash when there's a "'" in model name
2014-04-25 07:41:58 -07:00
Eric House
7818cd002b
merge android_branch->android_localize
2014-04-24 20:00:38 -07:00
Eric House
6e011ab36f
allow board screen to be "upside down" on OS version new enough to
...
support it (and make SMS Invite Activity go any way, just like
everything else)
2014-04-24 19:59:20 -07:00
Eric House
808e342cd4
clean up
2014-04-24 19:58:18 -07:00
Eric House
28e81e3a74
translate preferences -- finally.
2014-04-24 07:56:27 -07:00
Eric House
3b4c672492
toward substituting what getString (or the resource compiler) normally does.
2014-04-24 07:08:57 -07:00
Eric House
ed3370133f
use lowercase \u instead; \U isn't acceptable in java
2014-04-24 07:01:53 -07:00
Eric House
00ecf0d9d0
be consistent using capital-U \U to indicate unicode
2014-04-24 06:53:13 -07:00
Eric House
28c0862604
translations come in with ids rather than English strings as keys
2014-04-24 06:31:27 -07:00
Eric House
8612a5f624
use IDs rather than english strings as keys in passing
...
translations. Requires parallel change on client, and currently
doesn't quite work because e.g. \n is not replaced before the
translation is rendered.
2014-04-24 06:24:38 -07:00
Eric House
1e5a474692
remove unneeded param
2014-04-24 06:21:10 -07:00
Eric House
7434c6a3a7
cleanup
2014-04-23 19:41:44 -07:00
Eric House
6d7d4955a0
more informative log message
2014-04-23 19:38:16 -07:00
Eric House
780b22678e
add param caller expects
2014-04-23 19:35:35 -07:00
Eric House
36f839f8d1
more stuff to not reverse/capitalize (e.g. "\n"); print to stdout by default
2014-04-23 19:35:10 -07:00
Eric House
19c32b0444
Merge branch 'android_branch' into android_localize
...
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2014-04-23 07:44:51 -07:00
Eric House
6a4c599da5
Merge remote branch 'origin/android_branch' into android_branch
2014-04-23 07:40:46 -07:00
Eric House
e25a0e7dbc
changes for translation downloading
2014-04-23 07:39:36 -07:00
Eric House
cb96960446
let's track changes in the fake translations for a bit
2014-04-23 06:28:03 -07:00
Eric House
e643e9d5c0
add debug preference via which Translate menuitems must be enabled
2014-04-22 21:06:05 -07:00
Eric House
0a3371a82f
break most of PrefsActivity into PrefsDelegate
2014-04-22 20:59:58 -07:00
Eric House
f410f8bb1a
separate local and blessed (server) translations, fix to update or insert correctly and handle keys with embedded quotes, etc. Works to download translations, but a lot of longer keys don't seem to be matching.
2014-04-22 07:43:55 -07:00
Eric House
0e9790ee7c
new string
2014-04-22 07:42:26 -07:00
Eric House
66768c7e7d
better formatting and key identity checking
2014-04-22 07:30:32 -07:00
Eric House
ec0443b2ce
add constraint to loc table
2014-04-22 07:29:35 -07:00
Eric House
94597ee287
record R.java where it won't be used. I want to see how often, and in what ways, it changes.
2014-04-21 19:46:27 -07:00
Eric House
45b1b0bfa8
script to produce the translation array that's downloaded to device
2014-04-21 07:13:41 -07:00
Eric House
0bf8b45157
implement reverse fake-locale
2014-04-20 21:36:41 -07:00
Eric House
5d3beb6404
script to generate fake locales from English strings.xml for use testing downloading translations
2014-04-20 21:26:43 -07:00
Eric House
155dd6f19a
snapshot: now receives updates from the server and they show up in
...
menus etc. (after a restart.)
2014-04-20 06:49:26 -07:00
Eric House
f0bd300f1b
add setter for new table
2014-04-20 06:45:00 -07:00
Eric House
ed7da84da6
fix compile: add missing param
2014-04-18 19:38:12 -07:00
Eric House
e0404801ba
fix clean builds
2014-04-18 19:25:40 -07:00
Eric House
dbc42c3ad2
include xlation info in update request to server. It's not handled yet
...
and so the handling of the result is untested.
2014-04-18 08:03:01 -07:00
Eric House
901e07c0aa
getter for new pairs DB
2014-04-18 08:02:25 -07:00
Eric House
b636fe263b
new table for generic key/value pairs, and fix crash on new install by
...
not requiring localization db to exist during db creation.
2014-04-18 08:01:26 -07:00
Eric House
96c7f301d0
replace the last of the context.getString(...) calls with LocUtils.getString(context,...)
2014-04-18 07:14:27 -07:00
Eric House
ce59793458
use table to recover from too-new db. (tables are ugly in java)
2014-04-18 07:06:51 -07:00
Eric House
62ecd00971
remove redundant code
2014-04-18 06:26:25 -07:00
Eric House
4d08c7cef9
merge android_branch->android_localize
2014-04-18 06:21:45 -07:00
Eric House
33175e271c
Merge remote-tracking branch 'sf/android_branch' into android_branch
2014-04-18 06:13:53 -07:00
Eric House
48eb900212
merge -> android_branch
2014-04-18 06:10:25 -07:00
Eric House
c576ec7d7d
up client version so relay knows we're cool
2014-04-18 06:05:15 -07:00
Eric House
4de894627a
fix infinite loop -- duh
2014-04-18 06:01:03 -07:00
Eric House
8ba19184a0
merge from_android_beta_82->android_branch
2014-04-17 08:32:39 -07:00
Eric House
529e6733d0
up strings for new release
2014-04-17 08:27:42 -07:00
Eric House
0e4f24dfe9
use fixed string for model rather than clearing it
2014-04-17 08:24:09 -07:00
Eric House
6f0b5c1bea
empty the model string if the client version's lower than what I'm
...
about to release and there's non-ascii stuff in it.
2014-04-17 08:13:01 -07:00
Eric House
f05b1e0525
log model -- can remove later
2014-04-17 07:44:32 -07:00
Eric House
0897ae2ba9
log the bad query
2014-04-17 07:43:58 -07:00
Eric House
56ce5761d7
fix malformed utf-8: writeBytes just strips all but the last byte of multi-byte utf8 chars!
2014-04-17 07:42:34 -07:00
Eric House
843518af4d
use antcall with params rather than dependency with global properties
2014-04-17 05:34:27 -07:00
Eric House
538cd7b154
disallow duplicate strings in strings.xml, manually appending #<digit>. Will eventually filter that out of displayed strings.
2014-04-16 21:14:53 -07:00
Eric House
f5f7428683
fix debug tree to build again, this time with a paramaterized common
...
xml file
2014-04-16 21:06:41 -07:00
Eric House
79dc66b3a7
add array index as comment
2014-04-16 07:44:10 -07:00
Eric House
be581e762e
fix more getString calls -- just keeps going
2014-04-16 07:12:45 -07:00
Eric House
85ffd0cad9
fix getStrings() calls for studylists
2014-04-16 07:02:09 -07:00
Eric House
1eea5bfed5
route more getString() calls through LocUtils
2014-04-16 06:52:20 -07:00
Eric House
1c35bd2a1b
call init from outside after constructor completes rather than from inside constructor
2014-04-16 06:46:24 -07:00
Eric House
e2ed445fca
complete rename of activity
2014-04-16 06:44:38 -07:00
Eric House
57f9182a4d
inval group cache after deleting a game
2014-04-16 06:44:24 -07:00
Eric House
6198992fcd
rename file
2014-04-16 06:07:59 -07:00
Eric House
e5151c32be
make constructor private
2014-04-15 21:22:56 -07:00
Eric House
9e78d23014
break up more activities into delegates, using all the new methods in
...
the base. Crashes a lot, but this is a snapshot to work from.
2014-04-15 21:02:40 -07:00
Eric House
2e89b95e70
add methods subclasses will be able to use
2014-04-15 20:31:29 -07:00
Eric House
d9a407c9f3
move to superclass
2014-04-15 08:07:04 -07:00
Eric House
3465605481
more moving stuff into superclass
2014-04-15 08:02:57 -07:00
Eric House
548ba63dda
more use of overridden AlertBuilder and getString
2014-04-15 07:49:21 -07:00
Eric House
8432500541
override setPositiveButton and friends so ids can be translated
2014-04-15 07:40:27 -07:00
Eric House
e12fbcce8e
more use of LocUtils.getString()
2014-04-15 07:34:14 -07:00
Eric House
01c94d91cd
I apparently don't understand how varargs works in java
2014-04-15 07:31:57 -07:00
Eric House
3c76de6851
call method on superclass rather than activity
2014-04-15 06:38:51 -07:00
Eric House
dc8b5b073e
use superclass's getString() where possible instead of LocUtils's static version
2014-04-15 06:36:18 -07:00
Eric House
9720684ce7
break activity up into delegate
2014-04-15 06:27:17 -07:00
Eric House
1cf7e70091
use superclass's setContentView()
2014-04-15 06:26:55 -07:00
Eric House
0ae63c37ac
add convenience methods for subclasses
2014-04-15 06:26:37 -07:00
Eric House
f0b5584e38
translate activity window titles
2014-04-14 08:10:49 -07:00
Eric House
7f48783fb2
get translations working in dicts browser (save title)
2014-04-14 08:05:11 -07:00
Eric House
67ca205774
remove compile command -- which never worked
2014-04-14 08:04:44 -07:00
Eric House
d3c5aeb977
add param
2014-04-14 07:40:35 -07:00
Eric House
a0fd457ad1
add stuff, including ability to list strings missing in english or translated version
2014-04-14 07:40:24 -07:00
Eric House
a04f091d7f
more cleanup: copy over comments and manually fix what script couldn't
2014-04-14 07:38:48 -07:00
Eric House
9a4474ac1e
ignore .pyc file
2014-04-14 06:28:48 -07:00
Eric House
1249fa5849
call getString on LocUtils instead of context
2014-04-14 06:28:29 -07:00
Eric House
13e900695e
call new AlertBuilder only once
2014-04-14 06:28:05 -07:00
Eric House
9abc7b3212
add comment
2014-04-14 06:24:09 -07:00
Eric House
5d5a828dc2
as new printer prints -- no changes but whitespace
2014-04-12 09:33:52 -07:00
Eric House
e227038354
move not-to-be-localized string out of string.xml
2014-04-12 09:22:45 -07:00
Eric House
42ba1baaf7
include preceeding comments with string text
2014-04-12 08:19:48 -07:00
Eric House
6b30248af0
one more _fmt add
2014-04-12 08:17:23 -07:00
Eric House
1b79bcb1c4
add and use ability to remove nodes
2014-04-12 06:37:55 -07:00
Eric House
fe287719eb
more fixes
2014-04-12 06:32:50 -07:00
Eric House
b2c6aabd74
start updating: swap %1$[sd] for %[sd]
2014-04-12 06:20:37 -07:00
Eric House
64ebbcfbae
mods to export getString
2014-04-12 06:16:32 -07:00
Eric House
539f1205c9
more script-generated changes
2014-04-11 23:34:15 -07:00
Eric House
5434a3c03c
more changes by script
2014-04-11 23:17:25 -07:00
Eric House
ac4fc367bb
first changes made by script
2014-04-11 23:12:16 -07:00
Eric House
30b861879a
first modification made by script
2014-04-11 22:54:13 -07:00
Eric House
77b87c6458
localized files as read in and printed back out, unmodifed but for how
...
python prints them differently. This is a baseline: modifications
will follow.
2014-04-11 22:43:56 -07:00
Eric House
258b81dfb5
add localized string files exactly as copied from android_branch
2014-04-11 22:19:25 -07:00
Eric House
a22763298a
extend AlertDialog.Builder and override setTitle so string ids can be
...
translated when passed.
2014-04-10 21:34:08 -07:00
Eric House
10d6969930
fix release builds: generate empty version of checker function
2014-04-10 07:43:57 -07:00
Eric House
ff03284c5c
for debugging (testing what strings aren't yet reachable), uppercase
...
all strings without a tranlation.
2014-04-10 07:31:56 -07:00
Eric House
5c5a353d12
add string array to spinner manually so it can be translated -- sucks
...
to have to change code for this, but... The dropdown views look
crappy though I'm using identical code to what's in DictLangCache
building similar arrays that look fine. Needs work.
2014-04-10 06:44:33 -07:00
Eric House
f3b5cbb794
fix NPE
2014-04-09 21:14:30 -07:00
Eric House
67bca0dd4e
Because loc: strings can't be supplied for all Views, don't do
...
that. Instead use the English strings themselves as keys. Generate a
java array of all R.string.whatever contants at build time, and use
that at runtime to build a hashmap of localizable strings that may be
found in UI widgets. When one is found and there's a translation,
substitute.
2014-04-09 21:09:46 -07:00
Eric House
b4016eaec3
get rid of loc: stuff
2014-04-09 21:05:12 -07:00
Eric House
ce3fab3b15
don't try to write file if not specified
2014-04-09 07:29:56 -07:00
Eric House
7e72cb506d
add some more logging/tracking.
2014-04-09 07:28:53 -07:00
Eric House
edf720c58c
add EditText's hint. But Spinner's prompt MUST be a reference -- fuck you Android -- so I need another way to do this
2014-04-09 07:28:31 -07:00
Eric House
812c54f598
CheckBoxes get translated too
2014-04-09 07:10:55 -07:00
Eric House
291d4f0217
create table in new DB as well as when upgrading
2014-04-09 06:25:07 -07:00
Eric House
c96e848a05
remove unused method
2014-04-09 05:58:53 -07:00
Eric House
b61f1fbac9
fix crash adding first game to newly installed app by counting games and groups the same way getView determines if they exist.
2014-04-09 05:58:44 -07:00
Eric House
051cc5eb1d
call init from outside constructor since constructor can call back into callee
2014-04-09 05:57:33 -07:00
Eric House
0aa2a03760
remove unused method
2014-04-09 05:54:36 -07:00
Eric House
5e03e0cc75
fix crash adding first game to newly installed app by counting games and groups the same way getView determines if they exist.
2014-04-09 05:52:36 -07:00
Eric House
1035c94c3f
call init from outside constructor since constructor can call back into callee
2014-04-09 05:38:46 -07:00
Eric House
ccf84135a0
fix NPE on fresh install
2014-04-09 05:08:49 -07:00
Eric House
5d83d2f318
translate GameConfig view -- though it really needs to be broken to have a Delegate....
2014-04-08 19:12:00 -07:00
Eric House
0ac951c096
remove format() in favor of LocUtils call
2014-04-08 19:00:49 -07:00
Eric House
0b93e77018
combine the xml-manipulation and java-class-generation scripts
2014-04-08 18:57:31 -07:00
Eric House
9e228ab368
use version of getString that translates
2014-04-08 06:54:16 -07:00
Eric House
d27f2d580a
(more of prev commit) generate xml layout files from res_src, and run all inflation through LocUtils that tries to substitute strings
2014-04-08 06:48:42 -07:00
Eric House
201e808b4a
move layout files into res_src, and modify script to mark their localizable strings with loc:; run all layout inflation through new function that substitutes for loc:
2014-04-08 06:47:33 -07:00
Eric House
848f6ff221
no longer need these custom classes
2014-04-08 06:44:41 -07:00
Eric House
dfb3ea842b
get rid of the Loc* classes -- will be transforming xml at buildtime as with menus
2014-04-08 05:20:22 -07:00
Eric House
aad4872f68
generate menu resources from the old files, adding the 'loc:' key for those title strings listed in strings.xml
2014-04-07 08:14:09 -07:00
Eric House
96194671e2
move menu xml files outside build tree: scripts will generate now
2014-04-07 08:00:18 -07:00
Eric House
1bed9e3bec
move menu xml files outside build tree: scripts will generate now
2014-04-07 07:59:55 -07:00
Eric House
4ce7f923c1
revert changes adding loc: to mark localizable strings: will be doing that automatically
2014-04-07 07:54:59 -07:00
Eric House
36672395ff
store new column, always false for now
2014-04-07 07:47:08 -07:00
Eric House
227a25e259
add column for tracking xlation source
2014-04-07 07:09:43 -07:00
Eric House
437e2024cc
generate hashmap from strings.xml -- all of them -- making it
...
unmodifiable, and test for stuff not being in it.
2014-04-06 18:58:33 -07:00
Eric House
86cc8f6dbf
move onCreateOptionsMenu into superclass
2014-04-06 16:48:17 -07:00
Eric House
2ae6ecb125
get rid of allcaps translation, instead using translations where
...
available. Works -- but app needs to be restarted for menus to change.
2014-04-06 16:08:45 -07:00
Eric House
a351b2a5b9
implement search through loc dialog
2014-04-06 06:43:48 -07:00
Eric House
7e16d7abc5
add getContentView -- since I can never remember how to do it
2014-04-06 06:37:51 -07:00
Eric House
6b59093d84
use new loc db to save translation data (per locale) across boots.
2014-04-05 14:04:02 -07:00
Eric House
47ea2b8b62
add loc table to store translation data, mapping key and locale to text
2014-04-05 14:00:41 -07:00
Eric House
527685da79
preserve translation changes in memory. Next: write to DB.
2014-04-05 13:33:12 -07:00
Eric House
7dfa042b77
rename style and use it to align table header with columns
2014-04-05 12:12:00 -07:00
Eric House
663f4293a9
display English text on left side of table
2014-04-05 11:45:20 -07:00
Eric House
2494f7b8d4
add activity for localizing strings and add menuitem to localizable activities to trigger it. Does nothing yet, including populating itself.
2014-04-05 10:27:05 -07:00
Eric House
16346beeb1
enforce new convention: strings containing formatting must be names whatever_fmt (and strings containing formatting must be so named.) I'm going to have to parse such strings, which will be expensive, so being able to determine from the name whether there's a need should help.
2014-04-04 23:42:57 -07:00
Eric House
2b2fd32951
replace %s and %d (and enforce)
2014-04-04 23:09:50 -07:00
Eric House
409940adae
remove localized files. They'll get used somehow but not in this form on this branch.
2014-04-04 23:09:22 -07:00
Eric House
073c461693
new type of problem: make a string array in ListPreference localizable
2014-04-04 08:00:30 -07:00
Eric House
589b740af6
include loc: strings from common_rsrc.xml
2014-04-04 07:59:16 -07:00
Eric House
2c9dc526c2
convert most of GamesList to be localizable
2014-04-04 06:50:08 -07:00
Eric House
9531c6939e
add getString() variants to LocUtils and use from BoardActivity
2014-04-04 06:34:46 -07:00
Eric House
f6b2e5a3c2
transform submenus too
2014-04-04 06:20:46 -07:00
Eric House
0e7676b301
make board menu localizable -- but submenus don't work yet
2014-04-03 22:37:13 -07:00
Eric House
a6954a71dc
menu title can be null
2014-04-03 22:36:47 -07:00
Eric House
11dabca721
generate mapping from actual strings to R.string.id that can be used at runtime to convert/lookup menu titles. Works to uppercase a menu! Changes break dbg and bt builds -- to be fixed.
2014-04-03 22:27:50 -07:00
Eric House
f2bfd36780
menus are broken: you don't get access to an AttributeSet when inflating them. So replace string references with strings equal to the name of the id (xxx in R.string.xxx); next I'll need to harvest the strings from R.java and map them to their numbers in a way that's runtime-accessible.
2014-04-03 06:21:02 -07:00
Eric House
2afe048095
fix formatting
2014-04-03 06:19:17 -07:00
Eric House
bd02a10fc3
beginnings of framework to allow localized strings to be read from downloaded modules: in xml replace string references with a custom attribute that's the same thing, then in overridden view subclasses pull the reference from the AttributeSet and look it up myself. Works to uppercase all strings in the NewGames dialog.
2014-04-02 08:06:51 -07:00
Eric House
eff00c1743
use setBackground rather than setBackgroundColor to fix not reverting on 4.4 (and maybe earlier)
2014-04-01 06:27:19 -07:00
Eric House
9351eb257b
call setPct on new group item if appropriate
2014-03-31 07:57:31 -07:00
Eric House
9a55c97793
add new style for expander buttons
2014-03-31 07:20:19 -07:00
Eric House
3ff60861f7
derive GameListGroup from ExpiringLinearLayout
2014-03-31 07:14:40 -07:00
Eric House
d896670c21
remove unneeded paramter
2014-03-31 06:34:35 -07:00
Eric House
256dda85c0
don't show resend messages menu when anything's selected
2014-03-30 17:15:26 -07:00
Eric House
6f373c6c11
drop click event when don't have any games (easier than uninstalling the handler when there are no child games)
2014-03-28 22:41:57 -07:00
Eric House
fe14c88685
fix so gameless groups are still shown (but don't have an expand button)
2014-03-28 22:32:35 -07:00
Eric House
52d2436903
snapshot on the way to fixing query that failed to show empty groups
2014-03-28 07:46:46 -07:00
Eric House
fe64f89788
fix assertion on newer devices by letting the compiler do its job
2014-03-28 06:20:28 -07:00
Eric House
fb3b6ff96d
expand/contract in response to click anywhere
2014-03-27 08:45:12 -07:00
Eric House
3f3e9f5389
implement expand/contract of groups. Still skanky, but works.
2014-03-27 08:28:34 -07:00
Eric House
64d0e0c867
toggle image when clicked
2014-03-26 21:12:43 -07:00
Eric House
84698273a5
fix selection of group item by adding a delegate all selectable items can call.
2014-03-26 21:03:51 -07:00
Eric House
31b65e659d
make GamesList list- not expandable-list-based for future compatibility with Fragments. Groups still don't contract since they need arrows. Next...
2014-03-26 20:01:55 -07:00
Eric House
0a1449859a
add countGames and to group info the count of games in each
2014-03-26 19:55:05 -07:00
Eric House
af0522b0f4
always serve the newest .apk for debug builds wanting to upgrade
2014-03-26 18:44:14 -07:00
Eric House
9993ef1e4c
add function to return all apks sorted by creation time
2014-03-26 08:22:17 -07:00
Eric House
e70bb33537
break ChatActivity up
2014-03-25 22:29:20 -07:00
Eric House
558d34bc98
break part of BoardActivity out into BoardDelegate (and make a bunch of little changes that required)
2014-03-25 21:53:38 -07:00
Eric House
609962df58
cleanup
2014-03-25 07:21:12 -07:00
Eric House
0430cfbd24
break parts of StudyListActivity into StudyListDelegate
2014-03-25 07:14:22 -07:00
Eric House
dae0c7208f
rename StudyList -> StudyListActivity
2014-03-25 06:31:59 -07:00
Eric House
8084e63d09
add and use a showDialog() that takes a DlgID
2014-03-25 06:26:28 -07:00
Eric House
e0c0ff219f
rename onCreateDialog createDialog where it's not an overridden method
2014-03-25 06:16:46 -07:00
Eric House
cae30c61e8
need onCreateDialog() to get into DlgDelegate; onContentChanged needs to call super()
2014-03-25 06:03:25 -07:00
Eric House
1da9d36f3a
emacs added missing file-terminating NL
2014-03-25 06:02:07 -07:00
Eric House
c988859063
get rid of XWExpandableListActivity
2014-03-24 22:18:58 -07:00
Eric House
b78514ca6c
break parts of DictsActivity into DictsDelegate
2014-03-24 21:48:03 -07:00
Eric House
6c8cedf5bb
rename GamesList -> GamesListActivity, then move most of it into GamesListDelegate. This is part of exploring what it'll take to separate Activity-ness from the rest that can then also be used, say, from a Fragment.
2014-03-24 21:10:02 -07:00
Eric House
5ff5074180
yet another version of showConfirmThen()
2014-03-24 21:08:06 -07:00
Eric House
ef381f1d71
hide more files (changes generated)
2014-03-24 20:27:19 -07:00
Eric House
c60da510cb
add new source file
2014-03-24 20:26:56 -07:00
Eric House
9af9e2089b
ignore more files in dbg dir
2014-03-24 19:54:35 -07:00
Eric House
6256e2a843
don't show check-for-updates menuitem unless we can update something: we're not installed from the Play store OR we've installed at least one wordlist.
2014-03-24 07:37:44 -07:00
Eric House
b4df0125cc
make formatting uniform (no code change)
2014-03-24 06:56:21 -07:00
Eric House
57e2dd5492
make remote/robot score report dialog non-blocking to fix ugly first-game experience
2014-03-24 06:55:13 -07:00
Eric House
a842363be1
rename file: Lookup dialog is no longer an Activity
2014-03-23 18:53:38 -07:00
Eric House
73a1083dff
only show lookup menuitem when there's a single word selected, and include that word in the menu title
2014-03-22 10:37:48 -07:00
Eric House
e2cd275459
cleanup
2014-03-22 10:14:27 -07:00
Eric House
c426741fa1
use same counter title for wordlist and studylist browsers
2014-03-21 19:54:30 -07:00
Eric House
0b01caf262
add missing image, fixing build breakage
2014-03-21 19:48:28 -07:00
Eric House
9dab6bc772
add studylist menu to lookup selected words -- same as tapping, but maybe easier to discover.
2014-03-21 19:42:23 -07:00
Eric House
b776b7cd71
try inverting it
2014-03-21 19:07:12 -07:00
Eric House
13b64871d5
update strings for release
2014-03-21 18:57:00 -07:00
Eric House
638f9725e3
new versions of placeholders
2014-03-20 18:57:15 -07:00
Eric House
2f49f64c4f
clear selection in onResume since we're rebuilding list; fixes it being forever out of sync after a wordslist is opened
2014-03-20 18:56:56 -07:00
Eric House
c2c81dbbf1
use tmp model to find words crossing a point to avoid undoing pending turns
2014-03-20 18:52:57 -07:00
Eric House
5d32fce43e
don't allocate new Runnable on every draw
2014-03-20 05:18:40 -07:00
Eric House
673ab53a61
go back to extending XWListAdapter
2014-03-20 05:11:52 -07:00
Eric House
3717035150
include number to be deleted in comfirm message
2014-03-19 22:56:17 -07:00
Eric House
c7818bd364
build query a bit more effeciently
2014-03-19 22:52:33 -07:00
Eric House
38fe8ec3fd
invalidate menubar when might change
2014-03-19 22:39:21 -07:00
Eric House
426e939b61
hook up onClick to launch lookup
2014-03-19 22:25:14 -07:00
Eric House
64a5aab456
hook up long click to [de]select
2014-03-19 21:36:49 -07:00
Eric House
fd817a98da
implement menus, including adding crappy placeholder icons
2014-03-19 21:29:20 -07:00
Eric House
aa6fbf8605
snapshot on the way to making studylists editable: add checkbox to xwlistitem. It's to be an alterative to long tap to select. Implement selectAll and deselectAll.
2014-03-19 20:42:29 -07:00
Eric House
e7708ef439
fix NPE when serializing
2014-03-19 20:17:53 -07:00
Eric House
c333e561af
use a global enum for DlgDelegate actions -- should be no real code change
2014-03-18 06:06:21 -07:00
Eric House
12e77e8c47
get rid of three Utils.format calls
2014-03-17 08:20:43 -07:00
Eric House
a5f0c797bb
use one message for deletion of groups, whether one or many
2014-03-17 07:45:09 -07:00
Eric House
37b2458140
add number being reset to message
2014-03-17 06:56:10 -07:00
Eric House
cb5bb00ef0
remove LookupActivity
2014-03-14 19:21:31 -07:00
Eric House
94a838d88e
give lookup alert a title
2014-03-14 18:55:06 -07:00
Eric House
be440c8abf
try, again, making lookup dialog an alert rather than an activity. It's a much better experience on a nexus 5 but I've lost my records of why I made it an activity in the first place -- what phones it sucked on as an alert. Still probably doesn't bundle itself correctly and is missing a title.
2014-03-14 18:41:54 -07:00
Eric House
d4930e157b
make method private
2014-03-14 07:12:53 -07:00
Eric House
ea189c5717
turn study lists on by default
2014-03-14 06:45:17 -07:00
Eric House
94d9a03d51
add enum to hold all dialogIDs so they're forced to be unique across the app. (The diff's big but there's no behavior change.)
2014-03-14 06:37:32 -07:00
Eric House
ad0f882335
change port to live server's so recovery can be faster
2014-03-12 19:47:14 -07:00
Eric House
5f34fe3317
first cut at script to fetch messages for a game
2014-03-12 19:45:07 -07:00
Eric House
ed41fdd924
Fix to work with newest format. (This should fix updating of wordlists.)
2014-03-12 19:26:08 -07:00
Eric House
b869940997
fix another 64-bit bug, this one prevening opening new SOWPODS.
2014-03-12 19:24:00 -07:00
Eric House
2bb9a12b63
add missing (for android build) header
2014-03-11 22:04:30 -07:00
Eric House
1ee16ca09d
remove unnecessary import
2014-03-11 22:01:30 -07:00
Eric House
d1a9b716bb
protect refcount operations with mutex
2014-03-11 22:01:11 -07:00
Eric House
4231ed1108
fix refcount leak
2014-03-11 21:59:53 -07:00
Eric House
fbcd953a3e
define as void instead of <empty>
2014-03-11 19:38:51 -07:00
Eric House
7d8f5844bd
fix to compile without DEBUG defined
2014-03-11 19:38:08 -07:00
Eric House
640837f318
up strings for new release
2014-03-11 19:16:41 -07:00
Eric House
a3e9562654
put related fields together -- no code change
2014-03-11 07:02:10 -07:00
Eric House
dee75f5a0a
don't ref dicts from dmgr_get()
2014-03-10 21:50:06 -07:00
Eric House
a4302897e2
enlarge dictmgr to track a compile-time defined number of dicts
2014-03-10 21:01:24 -07:00
Eric House
55267f2e42
add memmove
2014-03-10 20:25:38 -07:00
Eric House
f601f2bf57
use dictmgr in java. This requires jni globals that live across boards being opened and that include a mempool dicts will be allocated out of. Seems to work, and to get ref counts as high as 6 or so before they drop down to one when all boards are closed. (The final is held by the dictmgr which won't give it up until the app itself is GC'd)
2014-03-10 19:14:59 -07:00
Eric House
3c32ca6402
add option to log callsites of dictmgr put and get for easier ref leak tracking
2014-03-10 18:59:10 -07:00
Eric House
6203a23c62
don't crash in networked games
2014-03-10 18:58:16 -07:00
Eric House
fec1ce3bed
use pthreads mutex to protect with will become critical sections in dict mgr, as will be accessed from several threads on android
2014-03-10 18:56:39 -07:00
Eric House
5500d36cde
add and use dict manager that caches, using refcount, dicts across games. Allows multiple games to be opened, and open at the same time, with only one instance of a dict ever created. Works on linux; not used or tested yet on Android.
2014-03-09 19:12:21 -07:00
Eric House
a2671f5ef0
add global mempool that can survive individual games, and include it every game's globals. Use it instead of game's mempool to create dictionaries so they can outlive a game and not trip asserts on pool delete. Wrap dicts in a java class that refcounts them when BoardCanvas wants to keep one so that, I hope, the bug using a deleted dict will go away.
2014-03-09 14:46:33 -07:00
Eric House
9f5d470c07
no need for final
2014-03-09 14:39:18 -07:00
Eric House
9d9c822bb8
save, commented out, how to call the contstructor of a nested class -- in case I go back to doing things that way.
2014-03-09 14:23:24 -07:00
Eric House
a7c114e3f9
refcount dicts. Model "owns" its copy and so increments the refcount when gaining one and decrements the count on any being replaced (and on all on exit). This is setting up the real change, which is to let the java world wrap dicts in objects that hang onto them until they're destroyed, which should fix problems where dicts are referenced after they've been destroyed.
2014-03-08 20:57:27 -08:00
Eric House
8a6adfec34
cleanup -- no logic change
2014-03-08 20:51:49 -08:00
Eric House
e0c17c50b3
catch off-thrown exception. This should prevent a crash, but the fix is probably to figure out why it's happening -- later.
2014-03-08 12:55:46 -08:00
Eric House
23b72467bb
don't assert unset cookieID, as that's normal (I think) for unconnected case
2014-03-08 12:47:58 -08:00
Eric House
fb7c1682b4
tweak string
2014-03-07 19:10:06 -08:00
Eric House
3b971e0153
tweak build timestamp format
2014-03-06 22:11:13 -08:00
Eric House
c31c9cb365
don't show resend menuitem unless there are moves to resend
2014-03-06 07:43:20 -08:00
Eric House
c982fb54d9
up strings and notes for new release
2014-03-06 06:47:43 -08:00
Eric House
3daa877bee
Send from resend asyncTask using factored-out code in CommsTransport. Works for SMS at least.
2014-03-05 07:15:34 -08:00
Eric House
923ac6db98
show loadDB menuitem only when nothing's selected
2014-03-05 06:37:02 -08:00
Eric House
45ace48490
tweak string
2014-03-05 06:32:03 -08:00
Eric House
bcfd27ee7f
don't crash when there's a SMS game with pending messages
2014-03-04 21:38:22 -08:00
Eric House
5ebbf87c24
don't kick off async task if there's nothing to send
2014-03-04 21:13:23 -08:00
Eric House
811be34a20
remove logging
2014-03-04 21:12:40 -08:00
Eric House
cfee7ef8ac
resend all messages from the network change broadcast receiver itself instead of GamesList, which will not be listening if another activity is in front or if the app's in the background.
2014-03-04 19:03:39 -08:00
Eric House
3c0b4a899f
resend all unacked messages each time we regain network, but only up to four times/hour.
2014-03-04 18:36:46 -08:00
Eric House
431b24409f
Fix kitkat-only problem where expiring rects are clipped at top and left
2014-03-04 07:40:25 -08:00
Eric House
0a601a73a4
(commented out) line to cause ndk to be built without optimization for better source-level debugging
2014-03-04 07:07:44 -08:00
Eric House
7002ff11c7
fix so non-DEBUG build compiles
2014-03-04 07:07:01 -08:00
Eric House
df771f50c4
add function that resends all pending (un-ackd, at the comms level) messages for unlocked games and, for testing mostly, a menuitem on the main activity to trigger it. Probably crashes if there's a message for a game connected by other than relay.
2014-03-04 07:05:55 -08:00
Eric House
60bce8f22b
add menuitems recently added to non-small-devices' menu
2014-03-02 20:34:58 -08:00
Eric House
9d174740c8
don't show "send pending messages" menuitem when there are none
2014-03-01 16:15:35 -08:00
Eric House
386c28e596
don't notify network change listeners unless a change is in fact a change and until there's been two seconds without changes. There's a lot of connection up-and-down spam when connecting and maybe with iffy connectivity, and no point in passing that through to code that will do stuff like stopping a send thread in response.
2014-03-01 15:17:14 -08:00
Eric House
23638310bc
register for net state changes, and toast/log on debug builds. This is toward resending from all games with packets pending on reconnect.
2014-03-01 14:59:17 -08:00
Eric House
56c05869da
allow to run from bin directory, which turns out to be useful
2014-03-01 12:39:51 -08:00
Eric House
d122b7d2ff
include all .xml and .java files, but only if they're not named in a .gitignore file in the same directory
2014-03-01 11:44:20 -08:00
Eric House
c1e22dd3cf
add summary DB column and jni code to fetch it to store and display number of unacked messages a game has. And add debug-only option to display it in the main list. In the future I want to be able to iterate over all these games and resend their packets (without opening them visually) when an internet connection comes back up.
2014-02-28 18:59:12 -08:00
Eric House
242f722f2e
remove logging
2014-02-28 18:56:39 -08:00
Eric House
e536a6d3ee
format build timestamp added to about dialog
2014-02-28 06:47:44 -08:00
Eric House
1d85a74a6c
readd old assertions -- and fix compile error
2014-02-28 06:47:27 -08:00
Eric House
b45fcf2aa6
force output in UTF-8 -- fixes German BYOD display and still works for English
2014-02-28 06:27:54 -08:00
Eric House
9a94663fb8
log when we drop a message because two possible receiving games are open
2014-02-28 06:13:52 -08:00
Eric House
61080e1b62
revert changes pausing instead of exiting JNI thread (and so not saving game data) from BoardActivity's onPause() when onFinishing() returned false. This is necessary because there are cases where moves were generated and sent without local state ever being saved because onPause() was called only once on what turned out to be activity termination.
2014-02-28 05:57:32 -08:00
Eric House
cc4982b833
add debug-only code to assert that movestack is never disposed when dirty (via macros easy to use elsewhere)
2014-02-28 05:43:47 -08:00
Eric House
efbb676cce
better formatting for hexdump offsets
2014-02-28 05:42:22 -08:00
Eric House
3ecd0a4b03
fix to compile without DEBUG
2014-02-28 04:58:25 -08:00
Eric House
2f7839f7e0
cleanup
2014-02-28 04:35:39 -08:00
Eric House
39983f65b6
remove logging
2014-02-27 21:44:25 -08:00
Eric House
5274a803b2
move menuitem
2014-02-27 19:13:22 -08:00
Eric House
29d08b95ce
expose comms_getStats() via a debug-build-only menu and dialog
2014-02-26 21:41:49 -08:00
Eric House
4e2c93fd3c
more work on script
2014-02-26 07:52:18 -08:00
Eric House
33d6f212b2
beginning of a script to parse relay logs
2014-02-25 07:56:48 -08:00
Eric House
1f9a4180e8
remove misleading comments
2014-02-25 07:56:22 -08:00
Eric House
fc799449e9
save game and summary in a synchronized block so lock doesn't get released halfway through
2014-02-24 21:50:17 -08:00
Eric House
27a5990283
log out-of-date token
2014-02-24 08:00:52 -08:00
Eric House
cd31cd432a
tweak column display
2014-02-24 08:00:43 -08:00
Eric House
b840f7d708
add filter for rooms
2014-02-24 08:00:21 -08:00
Eric House
565a466164
capitalize note
2014-02-23 12:10:19 -08:00
Eric House
fe2a623a5a
use sowpods list from freescrabbledictionary.com
2014-02-23 11:28:49 -08:00
Eric House
f50c1191b5
fix to compile and produce correct output on 64-bit system
2014-02-23 11:26:10 -08:00
Eric House
a72932486b
toward having networking and activity swaps work without fully
...
shutting down the game in onPause(): use pause() and resume() to
suspend the jnithread when the game's been unlocked.
2014-02-13 19:29:35 -08:00
Eric House
7c45e3c5b3
add pause() and resume()
2014-02-13 19:26:09 -08:00
Eric House
1e30582c3b
more logging
2014-02-13 07:50:21 -08:00
Eric House
802e798180
refactor
2014-02-13 06:44:57 -08:00
Eric House
89435fc688
fix to compile
2014-02-13 06:40:39 -08:00
Eric House
b3cce8c535
reduce verbosity and add info to GameLock logging
2014-02-13 06:33:30 -08:00
Eric House
de7638525a
commit sdk-generated file (might be better to ignore it?)
2014-02-13 06:31:31 -08:00
Eric House
44e52278a4
remove unused method
2014-02-12 07:52:39 -08:00
Eric House
218d232798
add dictNames() variant that takes a GameLock
2014-02-12 07:35:49 -08:00
Eric House
61334efa1a
fix to generate rather than copy
2014-02-12 07:35:12 -08:00
Eric House
536a1e3b13
install dbg variant too
2014-02-11 22:11:28 -08:00
Eric House
c0e7c0bf88
only log stack for first and last attempts to get lock
2014-02-11 22:11:16 -08:00
Eric House
80c3374728
add build timestamp to about dialog (needs better formatting)
2014-02-10 19:20:35 -08:00
Eric House
ea6da8cd74
add crittercism library
2014-02-10 18:55:16 -08:00
Eric House
9b43fed03f
rule for .jar files: copy
2014-02-10 18:32:00 -08:00
Eric House
bdfbb3ffca
update bt build, adding new .java file and logic to copy gcm.jar rather than commit a copy of it.
2014-02-10 18:30:19 -08:00
Eric House
6332bbbcbe
use ccache
2014-02-10 18:24:42 -08:00
Eric House
339e784d7c
fix compile warnings
2014-02-10 18:23:03 -08:00
Eric House
4b293ac89b
add Crittercism App ID if available
2014-02-10 07:32:16 -08:00
Eric House
d02481879b
catch debug variant up with recent changes and lay groundwork for including crittercism in it.
2014-02-10 07:31:52 -08:00
Eric House
daa59ee03d
pass Context to CrashTrack
2014-02-10 07:14:00 -08:00
Eric House
f27394ca03
framework for calling Crashlytics from debug variant
2014-02-10 06:53:39 -08:00
Eric House
f2ad4fd3d5
add StudyList activity and otherwise catch up
2014-02-10 06:19:16 -08:00
Eric House
0d80511a1a
remove logging
2014-02-09 19:35:35 -08:00
Eric House
025bcb885b
don't move state forward when should be moving back
2014-02-09 19:35:17 -08:00
Eric House
b56d990a04
go back to overriding onPause and onResume, but don't tear down the game unless isFinishing() returns true
2014-02-08 16:50:27 -08:00
Eric House
5e3c26d453
track current BoardActivity instance using HashSet rather than single instance since during transitions there can be two. Fixes asserts from recent commit.
2014-02-07 21:22:13 -08:00
Eric House
0b132661ca
change struct name from r to rr for easier searching; no code change
2014-02-07 21:12:45 -08:00
Eric House
a4e65f667d
add ok button to about dialog
2014-02-07 07:59:34 -08:00
Eric House
ca8a901bbb
add assertion aimed at confirming theory about race-condition based Android crash
2014-02-07 07:41:50 -08:00
Eric House
a388351219
save/load games in onStop/onStart rather than onPause/onResume so we don't do it as often, and specifically not every time the LookupActivity is pushed. This is an experiment.
2014-02-07 07:40:34 -08:00
Eric House
d97784ba13
track which dialog is blocking rather than just that there is one
2014-02-07 07:38:07 -08:00
Eric House
ed9b9646e7
launch app after installing
2014-02-07 07:34:09 -08:00
Eric House
048ae63802
make bad-words reporting dialog blocking so robot doesn't go ahead and move and put its moved dialog up on top of the bad words one before it's dismissed; also change name of string to reflect that it's a format.
2014-02-06 07:22:57 -08:00
Eric House
f6a1e06d41
create myGames group only on upgrade and only if there are existing games to put into it.
2014-02-05 19:46:42 -08:00
Eric House
ca57da44c6
fix duplicate column crash when upgrading
2014-02-05 19:34:42 -08:00
Eric House
18f31ad9d6
up strings for new version
2014-02-03 07:42:59 -08:00
Eric House
46b02d49c1
generated gitignore changes in bt directory
2014-02-03 07:29:12 -08:00
Eric House
6dfaf8127f
fix reported crash: assertion copying non-network game
2014-02-03 07:28:38 -08:00
Eric House
f805d7309f
modify emacs compile command to use find-and-ant.sh
2014-02-02 11:40:40 -08:00
Eric House
2b653dcf9b
add build script
2014-02-02 11:27:09 -08:00
Eric House
babb02898e
credit BRS
2014-01-31 18:22:32 -08:00
Eric House
f65b5fda71
don't disable button after it's used: feels as if the device is hanging
2014-01-31 18:22:21 -08:00
Eric House
b29dcb1d2c
add debug-only logging toward figuring out occasional bad-dict crash
2014-01-31 07:55:07 -08:00
Eric House
57cd547078
remove apparently gratuitous second call to srandom
2014-01-31 07:54:43 -08:00
Eric House
dd38543398
add toast to confirm that word's been added
2014-01-31 07:25:28 -08:00
Eric House
cb574ca156
up version strings
2014-01-31 07:25:07 -08:00
Eric House
ff2615fbc6
Merge branch 'android_studylist' into android_branch
2014-01-31 06:43:36 -08:00
Eric House
c40cef2101
add newbie tip for studylist copy feature
2014-01-30 21:31:14 -08:00
Eric House
426b5b59b2
for better discoverability, always show the studylist menus when the feature's on and supply explantions when there's nothing to show
2014-01-30 19:16:00 -08:00
Eric House
9dc94c97b2
put some of DlgDelegate's methods into an interface that can be passed around to be called by non-activities.
2014-01-30 19:14:23 -08:00
Eric House
647282968a
hide the label and spinner when there's only one language
2014-01-30 08:15:43 -08:00
Eric House
433993a384
remove early -- should not have gone out
2014-01-30 07:30:34 -08:00
Eric House
3ea86e630d
add label before lang-pick spinner
2014-01-30 07:12:32 -08:00
Eric House
a8d01f6de2
remove mistaken break
2014-01-30 07:00:30 -08:00
Eric House
cd6293fbd3
ignore img_src/ -- for now anyway
2014-01-30 06:39:50 -08:00
Eric House
652ce75277
add actionbar icon for copy
2014-01-30 06:38:03 -08:00
Eric House
f78af55cd1
disable add-to-list button after adding so there's feedback
2014-01-30 06:26:40 -08:00
Eric House
8e3cbdc1e3
Merge branch 'android_branch' into android_studylist
2014-01-29 21:56:28 -08:00
Eric House
32ecd1d026
more studylist: add lookup-on-tap, show language in title bar, and add
...
menuitem to board menu too
2014-01-29 19:37:04 -08:00
Eric House
253be9a48e
ignore more stuff
2014-01-29 19:29:43 -08:00
Eric House
11767a41e4
show toast on successful paste
2014-01-29 07:49:57 -08:00
Eric House
21f2936e87
confirm before deleting all words
2014-01-29 07:43:45 -08:00
Eric House
b5d4b6b778
implement clear (without warning)
2014-01-29 07:36:05 -08:00
Eric House
2520fb4c05
add menu and implement copy-to-clipboard
2014-01-29 07:15:25 -08:00
Eric House
d02787f591
fix capitalization
2014-01-28 18:52:35 -08:00
Eric House
42f35cb3d9
populate study list, doing the sorting in the DB query for now
2014-01-28 07:48:08 -08:00
Eric House
3f8e456db2
populate language chooser
2014-01-28 07:15:59 -08:00
Eric House
4421472391
add (empty so far) studylist browser and menu to invoke it
2014-01-28 06:50:27 -08:00
Eric House
9d19bed3b7
add studyListLangCount()
2014-01-28 06:32:25 -08:00
Eric House
aab876bf6d
remove toast
2014-01-27 21:25:22 -08:00
Eric House
49d26dab07
rough out UI for adding selected or played words to study list DB. Next: add a UI for displaying it etc.
2014-01-27 21:24:57 -08:00
Eric House
af035962e6
revise release notes; up version code
2014-01-27 18:58:41 -08:00
Eric House
1f698eae6d
use ccache for relay build too
2014-01-25 19:03:50 -08:00
Eric House
b3ebadfde5
test for null that should never happen but google play says does.
2014-01-25 19:03:22 -08:00
Eric House
e9ffcdbbc5
fix, by inspection, NPE reported via Play dev console
2014-01-25 18:04:32 -08:00
Eric House
843c6389cf
use the same key to set and get bundle item, probably fixing a couple of recent Dev Console-reported crashes.
2014-01-25 17:56:15 -08:00
Eric House
4499639d73
up version strings
2014-01-23 19:46:21 -08:00
Eric House
acb090154d
add rate-me menu
2014-01-23 19:32:06 -08:00
Eric House
cb9f095d93
remove unused variable
2014-01-23 07:48:02 -08:00
Eric House
e72beaa265
add and use isGooglePlayApp()
2014-01-23 07:47:32 -08:00