Eric House
c7f33a7c8e
cleanup: remove logging
2016-08-22 19:15:07 -07:00
Eric House
091854eee3
ignore new file
2016-08-22 19:13:49 -07:00
Eric House
bd3caf25eb
re-create list when size limits change
...
Problem: brain-dead Android code (on 5.1.0 anyway) caches the
SectionIndexer separately from the ListAdapter that implements it, so
when you change the ListAdapter it keeps using the old one for its
SectionIndexer. Solution is to replace the ListView in the layout with a
FrameLayout into which a ListView is inserted at runtime on init and
whenever the data changes.
2016-08-20 13:37:35 -07:00
Eric House
9f2bc23b80
implement setTitle for GamesListDelegate
...
Was missing and so when other panes went away didn't always replace the
title.
2016-08-20 09:33:48 -07:00
Eric House
f23e44c56d
cleanup: use chaining everywhere building alerts
2016-08-19 14:44:37 -07:00
Eric House
78c3d4c0e9
tweak changes text
2016-08-19 14:14:39 -07:00
Eric House
9517516ab3
tweak changes text
2016-08-19 14:11:03 -07:00
Eric House
54feb61bf4
Merge branch 'android_branch' into android_translate
2016-08-19 13:12:57 -07:00
Eric House
06b6091780
upgrade -Dbg version code too
2016-08-19 12:56:07 -07:00
Eric House
e1dbd8efc7
cleanup and add a bit of logging
...
I suspect curThis() is no longer needed so will log it for a while.
2016-08-19 12:49:30 -07:00
Eric House
2285502f33
offer to enable dual-pane mode only on upgrade
...
And do it starting with launches after the changes list has been
shown. Also change "Cancel" on negative button to "Later".
2016-08-19 12:48:15 -07:00
Eric House
495c82baa0
look for and remove '-' in locale
...
Some versions apparently return "en-us" as the language code when "en"
is expected. Check for and remove anything after a '-'.
2016-08-19 12:28:54 -07:00
Eric House
16b9bab719
up version strings and changes list
2016-08-19 11:58:10 -07:00
Eric House
6cc67b2347
always show toast announcing dual-pane mode
...
on startup, even for non-debug builds. And move the string into a
resource for localization.
2016-08-19 11:37:24 -07:00
Eric House
ba968b1e36
fix so extra game info shows in dual-pane mode too
...
onWindowFocusChanged() isn't called when a pane opens, and setting up
that field depended on it. So call from init() too.
2016-08-19 10:57:48 -07:00
Eric House
0bd9667163
cleanup: remove unnecessary attributes
2016-08-19 10:29:12 -07:00
Eric House
41e8df6f19
give any extra space to the board
...
Measure toolbar before board, and if it's narrower/shorter than we
allowed more that extra space into the rect given the board.
2016-08-19 10:05:31 -07:00
Eric House
ff6e9f0051
specify larger toolbar icons on larger devices
...
As it was before, and adding for xlarge too. Looks better this way. I
still can't figure out how to make the things center....
2016-08-18 17:38:57 -07:00
Eric House
43fcf21133
get rid of transparent frame around toolbar images
2016-08-18 13:44:03 -07:00
Eric House
62461d8de0
move toolbar button to left
...
Put it where it'll be visible/discoverable on more devices since it's a
pretty cool feature now.
2016-08-18 13:10:41 -07:00
Eric House
19a3f40d66
script to swap resources for small-device testing
...
Setting up an emulator that'll grab {menu,layout}-small resources is a
pain so this script exchanges them with regular resources so that a
subsequent compile will produce something that (when run) will catch
missing resources etc.
2016-08-18 12:38:41 -07:00
Eric House
c4d7626ae1
tweak toolbar layout to fit better
2016-08-18 12:00:18 -07:00
Eric House
2a8ce27ca9
make custom layout better on old android version
...
tweaks to BoardContainer and Toolbar to better position toolbar and
better hide/show it in tile exchange mode. The bar's still partially
offscreen sometimes on a 2.3.7 emulator but it's usable. Next I need to
try specifying the size of the bar rather than having it derive from the
size of the images it contains.
2016-08-18 11:30:32 -07:00
Eric House
9e81fb53b5
move NotAgainView into scroller for small screens
2016-08-18 10:08:27 -07:00
Eric House
9545d9c457
Merge branch 'android_branch' into android_translate
2016-08-16 11:22:01 -07:00
Eric House
bc98cdc83a
don't use newer APIs in custom layout
...
They crash on 2.3.7 at least, and don't seem to be required anyway. I
think the only reason I need to implement onMeasure() is because
BoardView expects to be called a certain way.
2016-08-16 11:18:18 -07:00
Eric House
fbaaa4e5aa
ignore new files
2016-08-16 11:18:02 -07:00
Eric House
6da7c85dbf
use custom layout for board/toolbar relationship
...
Correct or not, this is my solution to the circular problem of how to
choose a vertical or horizontal toolbar before beginning the layout of
the board and toolbar. Adding a new custom container that holds the
board, toolbar(s) and tile exchange buttons and uses the ratio of its
own dimensions to choose which toolbar to show. Also drive toolbar
initialization from the layout process because when started from
BoardDelegate it now tries to install button listeners too early.
2016-08-16 11:01:46 -07:00
Eric House
4857ad6b26
complain when CLASSPATH isn't set for success
2016-08-15 17:29:28 -07:00
Eric House
3b24aab8c3
add new jni call board_containsPt()
...
for use debugging layouts/orientation changes later
2016-08-15 17:26:10 -07:00
Eric House
0a41471410
use dimen resource for toolbar button size
...
I need a way to have the buttons be smaller when the view's in a
fragment in dualpane mode. This probably is isn't the fix but it's worth
preserving.
2016-08-15 16:42:09 -07:00
Eric House
fd0bf23915
remove volume-keys-zoom option
...
Seem sit hasn't worked in a while on newer devices and nobody's
complained. We all pinch to zoom now.
2016-08-15 16:23:24 -07:00
Eric House
d15eab013d
remove zoom button and menu
...
Everybody has multi-touch phones now.
2016-08-15 16:13:01 -07:00
Eric House
ab24140813
cleanup: constants + parallel array => enum
...
I didn't always know enums could have constructors
2016-08-15 16:01:30 -07:00
Eric House
71ac6062f1
don't enable delete of newly-configured game
...
Wasn't recording as open a game created then opened via the
configure-first option so the delete menuitem was being left enabled.
2016-08-15 14:14:14 -07:00
Eric House
8fdc2b90ea
explain before exiting when dual-pane enabled
2016-08-15 14:03:01 -07:00
Eric House
232f5e1a15
do a builder for okonly alerts too
...
Might be getting carried away with this, but I like having all common
dialogs built the same way.
2016-08-15 13:55:11 -07:00
Eric House
1a56854d41
more cleanup using setters to replace overloading
2016-08-15 12:38:27 -07:00
Eric House
25823aec74
cleanup: "Then" implies Action
2016-08-15 12:11:17 -07:00
Eric House
c36adeebbd
refactor: use builder for notAgain dialogs too
2016-08-15 12:10:36 -07:00
Eric House
7f211c6cb5
more cleanup: replace overloads with builder
...
There were too many versions of showConfirmThen(). Now there's one
builder with a bunch of optional parameters.
2016-08-15 10:15:35 -07:00
Eric House
ecdd453698
major cleanup: first use of ConfirmThenBuilder
2016-08-15 09:15:39 -07:00
Eric House
bf93189313
cleanup: Map.remove() does a get
2016-08-15 08:25:36 -07:00
Eric House
34b7f9de4d
tweak string
2016-08-15 08:18:11 -07:00
Eric House
b17dfc91cc
fix to compile! (bad commit)
2016-08-15 08:17:33 -07:00
Eric House
e6cb693c3c
launch dict download pane from config as fragment
...
One of the last to be converted. But missing dict functionality still
needs testing.
2016-08-15 07:59:49 -07:00
Eric House
10a0e33ee4
send cancel if no dict's been chosen
...
Fix crash when game config opens dict download for result and nothing's
chosen. Was sending Activity.RESULT_OK in that case instead of
RESULT_CANCELED.
2016-08-15 07:19:05 -07:00
Eric House
87150c7d91
replace assertion with logging and dropping event
...
Until I figure out why I'm see it, as it's getting in the way of other
things.
2016-08-13 17:16:20 -07:00
Eric House
6bdfae23cb
add no-args constructors to all fragments
...
Docs and some logcat crash statements from the OS say I need no-args
constructors for fragments. So rework initialization and use bundling so
parent name doesn't have to be passed into the constructor. Seems to
work, and fixes the crash I was seeing (happened when sending an
invitation via SMS) but requires more testing.
2016-08-13 17:02:18 -07:00
Eric House
94e5b30d94
fix long-tap rematch of open game
...
Needed to do the usual JNIThread.getRetained() recipe, slightly
modified.
2016-08-12 19:14:23 -07:00