Andy2
4345fc1543
fix failure of renamegame feature when orientation changes while
...
dialog is up. I'm making two fixes, either of which is enough: saving
the rowid across teardown of the activity; and changing the manifest
to not tear down the activity. The reason for the latter is that the
teardown is unnecessary and wasteful. The former's just safer coding.
2011-08-07 20:22:11 -07:00
Andy2
f8715feea6
update version and changelog for b32
2011-08-06 23:08:42 -07:00
Andy2
6f7279a6b0
fix crash that happens whenever orientation changes while there's a
...
dialog up in DictsActivity. (There are still problems updating the
UI, e.g. indicating the current loc of a moved dict.)
2011-08-06 23:03:11 -07:00
Andy2
fd61c0af02
'final' not needed
2011-08-06 22:30:48 -07:00
Andy2
c47189e81f
fix crasher introduced with eeac03d40f
:
...
update delegate's dialog id constants.
2011-08-06 21:30:38 -07:00
Andy2
b20584b74e
fix bug moving dicts: location wasn't getting updated when the move
...
was successful and so subsequent moves reported wrong location.
2011-08-06 20:06:21 -07:00
Andy2
fc650ef317
fix assertion failure reported by google when unable to create
...
directory on SD card. Just return null and carry on as if SD card not
writable.
2011-08-06 20:05:30 -07:00
Andy2
ed832f9545
update database from any version, not just two adjoining.
2011-08-06 19:26:36 -07:00
Andy2
011b283566
tweak copy dialog to suggest using new-from.
2011-08-06 16:18:32 -07:00
Andy2
719fd314a5
move net msg icon outside of hideable part of game list item layout so
...
it remains visible when not expanded. Otherwise people won't see that
something happened to a closed game.
2011-08-06 16:03:38 -07:00
Andy2
eeac03d40f
query user for html vs text before creating new networked game so it
...
isn't left sitting if [s]he cancels.
2011-08-06 15:49:55 -07:00
Andy2
66a673c478
make the game name green when it's somebody's turn and player names
...
are hidden.
2011-08-06 15:46:49 -07:00
Andy2
6cde6be6a5
up version and changelog for beta 31
2011-08-06 14:29:58 -07:00
Andy2
1c28433bd0
store expandedness in DB rather than a class static, which will
...
eventually die. Generalize DBUtils methods int get/setInt(). Adds
new column to DB, the second for this version number.
2011-08-06 14:19:07 -07:00
Andy2
13cbca3368
cleanup
2011-08-06 14:03:50 -07:00
Andy2
35a5aad477
make name text larger -- button is anyway.
2011-08-06 13:19:48 -07:00
Andy2
d7dfb89f65
query user before sending invite whether to use html or text and
...
format differently depending on the answer. With html only I couldn't
invite using SMS, which bites.
2011-08-06 13:01:40 -07:00
Andy2
560208f516
roll my own expandable list items. (The stupid built-in ones don't
...
allow any control over whether the initial state is expanded.)
Getting click to work is a bit of a hack, requiring a callback from
the adapter back to the activity, but it works well on emulator. Need
to test on device then try to shrink the ImageButton.
2011-08-06 11:29:41 -07:00
Andy2
017f4da29d
fix formatting
2011-08-06 03:22:26 -07:00
Andy2
58f1618586
put oft-used menuitems up higher
2011-08-06 03:19:59 -07:00
Andy2
9c298a16e7
The email apps won't display non-http schemes as clickable links, so
...
go with html and encode both the invite and install links as php refs
that get redirected. Works, but eliminates SMS as sending mechanism.
2011-08-06 02:57:14 -07:00
Andy2
cd6aa8fe98
fix crasher using Copy menuitem: when summary is copied out of a db it
...
doesn't have a gi, but it does have the summaries values copied in so
use those.
2011-08-05 22:38:01 -07:00
Andy2
e8b66e230c
add title to context menu that includes game name
2011-08-04 18:16:32 -07:00
Andy2
97d5e3cc6d
remove old FILE_NAME DB column for new DBs; ignore it elsewhere. Move
...
default name creation from DBUtils to GameUtils.
2011-08-04 06:15:00 -07:00
Andy2
9aeb8858fe
add menuitem and dialog it triggers to rename games. Add new DB field
...
to hold game name, and getter and setter. Replace existing gameName()
method with call to new getter.
2011-08-03 18:59:32 -07:00
Andy2
173e2e8423
track games by row id (an sqlite built-in) rather than name (so that
...
names can be changed without constraints)
2011-08-03 06:53:42 -07:00
Andy2
294df7055e
log rowid -- step one to using it instead of name as unique
...
identifier.
2011-08-01 18:13:10 -07:00
Eric House
cbfdf992bd
add compile-time option to allow passing game seed from commandline.
...
This should allow testing relay changes to deal better with duplicate
seeds.
2011-07-31 22:23:46 -07:00
Eric House
1c227c8921
remove code for engine progress -- it's been disabled for a while
...
anyway as it gave away whether robot had blanks.
2011-07-31 20:52:27 -07:00
Andy2
f642a0972f
replace all ancient logf calls that were doing concatenation (with +)
...
with calls using formatting -- for consistency and effeciency in the
case where logging is disabled. There should be no discernable
change, though if I got and percent-format specifiers wrong I'll get
runtime exceptions.
2011-07-29 07:45:32 -07:00
Andy2
c8c1fe6f70
fix failure to save when exiting, e.g. by pressing Home when when a
...
blocking dialog is up, by always saving on exiting the jni loop
instead of exiting after pushing a SAVE event which was getting
dropped.
2011-07-29 07:31:46 -07:00
Andy2
8d9aa5ae0e
failing to post a blocking dialog means the jni thread hangs forever.
...
Bad. So test if we can post (if the handler's still available) and
drop the request, freeing the thread, if not. (Access to m_handler
should probably be synchronized now that it's getting cleared, but
that's another bug.)
2011-07-29 07:19:33 -07:00
Andy2
704b08f733
use bundle to save/restore dialog-related ivars. This should fix very
...
rare crash where class is reloaded (e.g. after long period of non-use)
after being taken down with a dialog in mid-load. The OS tries to put
the dialog back up but the dialog title string ID, passed to
setTitle() in onCreateDialog(), is 0.
2011-07-28 06:42:57 -07:00
Andy2
acafc0a2df
remove assert that was there just to prove a fix; use %b in logging.
2011-07-22 10:55:03 -07:00
Andy2
3563ca5855
finish changes list
2011-07-22 10:54:06 -07:00
Andy2
698d549fd1
assert fired for unknown reason. Fix behavior in non-assert-enabled
...
build to do the right thing in that case.
2011-07-21 05:07:41 -07:00
Andy2
5fc7836eca
when not using FLAG_ACTIVITY_NEW_TASK need to look for invite-launched
...
intents in onCreate too.
2011-07-21 04:52:12 -07:00
Andy2
9bf22c12f4
erase the static bitmap so we don't show the previous board prior to
...
drawing the new one.
2011-07-20 18:48:50 -07:00
Andy2
de16ee93d7
get rid of some logging
2011-07-20 18:46:55 -07:00
Andy2
00e4dfd09e
FOR DEBUGGING ONLY: test theory about dropped dialogs.
2011-07-20 18:25:14 -07:00
Andy2
4f29048f49
fix format specifier to not crash (use %h); remove redundant logging.
2011-07-20 18:23:30 -07:00
Andy2
84502a89bf
FOR DEBUGGING ONLY: %p segfaults!
2011-07-20 18:23:05 -07:00
Andy2
348af5a935
FOR DEBUGGING ONLY: add remaining Activity lifecycle methods so
...
they'll get logged, and log this ptr as well.
2011-07-20 18:22:14 -07:00
Andy2
04a80fca07
Remove FLAG_ACTIVITY_NEW_TASK to fix duplication of root
...
activity. Explanation in code.
2011-07-20 18:20:22 -07:00
Andy2
ba40d96fea
remove unused variable
2011-07-20 05:39:52 -07:00
Andy2
1f89eb0238
start on changes list
2011-07-19 18:37:23 -07:00
Andy2
30b9df399c
Address crash that happened when runnable ran too late by nulling out
...
m_handler in onPause() and adding new methods that check if it's null
before calling post(), postDelayed() or removeCallbacks() on it.
2011-07-19 18:31:20 -07:00
Andy2
ea853e2e51
replace hard-coded list of preferences whose summaries are their
...
values and code to enforce that with custom subclasses that do the
right thing automatically.
2011-07-19 18:21:52 -07:00
Andy2
e4ba5fb5fd
log svn rev
2011-07-19 18:14:32 -07:00
Andy2
39e752cbc9
add comment explaining change
2011-07-19 06:24:15 -07:00