Eric House
6c9be4a67d
remove dead script
...
replaced by changed to relay2 flask app
2020-10-24 22:27:47 -07:00
Eric House
04eeb8f18f
don't crash when number of INVITEMEANS changes
...
This won't impact shipping code, but if during development I add then
remove a new INVITEMEANS I can crash with AIOOB trying to load by
ordinal. So check first.
2020-10-24 13:13:47 -07:00
Eric House
a61db95266
shrink the QR code
...
It doesn't need its own alert if it's smaller, and at least a Nexus5's
phone can pick it up this size.
2020-10-24 10:08:11 -07:00
Eric House
5d4fd0e58b
don't dispose gi before game
...
gathering players was failing because disposed gi was pointing at
garbage. I'm lucky it didn't segfault.
2020-10-23 19:03:26 -07:00
Eric House
e7a63c7c0b
change mqtt register URL
2020-10-22 22:33:25 -07:00
Eric House
9e30076966
Merge remote-tracking branch 'github/android_branch' into android_branch
2020-10-21 21:16:43 -07:00
Eric House
af37fb45f7
Rewrite BT comms to not use a Service
...
It's simpler this way, and I'm tired of stuff not happening because the
OS chooses not to schedule e.g. an invitation send for minutes. Goal's
to be running BluetoothServerSocket.accept() as much as possible when
there are active BT games in play OR when the game's in the foreground.
If that's happening, sent invitations and moves will be received when
users expect. When there's no traffic and app isn't being brought to
foreground, backoff will ensure I don't try to run accept() too often.
FWIW, BTLE seems to offer a better way to do this (to have an app be
responsive to incoming invitations when it hasn't run in the foreground
in a while), but it requires users to accept FINE_LOCATION
permission. I'm hoping I can make this work to avoid asking for that
permission.
2020-10-21 21:10:09 -07:00
Eric House
e5bb7c4a8b
work around concurrent access exception
...
quick fix by copying into an array until I figure out where the other
access is coming from.
2020-10-21 12:42:49 -07:00
Eric House
8240f753ca
bluetooth tweaks
...
Add a single method to provide candidate devices; don't bother passing
bogus BT MAC addrs; let instance belonging to background-user start
communicating again when user becomes foreground.
2020-10-07 19:39:51 -07:00
Eric House
284e7eb85a
fix broken device deletion; refresh time-last-seen
...
I was comparing the wrong strings and so broke deleting known BT
devices. And wanted to see how often since I'd seen them updated, though
every 10 seconds is still 10 seconds.
2020-10-07 19:06:33 -07:00
Eric House
af7f776118
don't post RemoteDeleted Alert more than once
2020-10-07 17:06:18 -07:00
Eric House
a95e761024
fix NPE
...
I hope. Happens when there's a duplicate delete-deleted-game alert, and
trying to close the view a second time may also be a problem.
2020-10-07 11:29:04 -07:00
Eric House
fef7d2d544
Prune unpaired devs; accept uncatagorized devs
...
Some devices unpair themselves and needed to stop being listed so user'd
know to fix. And my Nexus 5x is neither a PHONE nor a COMPUTER per BT,
so accept a larger range of BT classes when scanning.
2020-10-06 11:43:21 -07:00
Eric House
a9409f8cca
beginnings of script to filter logcat
2020-10-06 10:06:13 -07:00
Eric House
94a709423a
improve UI around invites and offering QR code
2020-10-05 18:22:28 -07:00
Eric House
8957b3ff53
remove unused constant
2020-10-05 08:34:28 -07:00
Eric House
4f17c64301
close InviteChoicesAlert when game connects
...
That'll happen if QR code is used in its current location.
2020-10-04 21:47:12 -07:00
Eric House
359e1d12d1
add qrcode for invite to invite-how alert
...
Need to find the right place for it, explain it, and get rid of the
alert it's part of when the invite is accepted.
2020-10-04 21:47:09 -07:00
Eric House
6ae1ec9f81
use a grid for kp dialog layout
2020-10-01 14:44:18 -07:00
Eric House
9f1f1aeee7
only harvest when closing game
2020-10-01 13:39:02 -07:00
Eric House
377bb36c73
cleanup
2020-10-01 13:38:07 -07:00
Eric House
bae7f8a641
add delete button
2020-10-01 11:51:50 -07:00
Eric House
6c5d1b082f
start on a gtk dialog displaying/editing knowns
2020-09-30 20:38:44 -07:00
Eric House
21483cf861
add missing file
2020-09-30 20:38:44 -07:00
Eric House
f90d76329b
use semaphore to protect known players data
...
Requires adding a common method called by platform code on creating a
new dutil ctxt.
2020-09-30 17:21:18 -07:00
Eric House
479ec4ef44
tweak
2020-09-30 16:38:34 -07:00
Eric House
27b14ac201
tweaks to server-side script
2020-09-30 15:49:07 -07:00
Eric House
797ba0ba8c
make the checked icon solid, and white in middle
...
Looks like crap when translucent and you see through it
2020-09-30 15:30:09 -07:00
Eric House
fb2a2aa6bb
add missing string to fix build
2020-09-30 10:51:26 -07:00
Eric House
31fed09e12
make checkmark translucent rather than replace type
...
Got tired of losing information about what type of game it was once
selected. Now the sel checkmark is translucent and on top.
2020-09-30 10:33:15 -07:00
Eric House
dbde9c87ae
list known player in invite info where known
...
(for mqtt only)
2020-09-30 10:10:43 -07:00
Eric House
2bfeedceb3
change strings for release
2020-09-30 07:24:22 -07:00
Eric House
3af6d0671c
make long-tap on wordlist entry copy it to clipboard
2020-09-29 17:03:44 -07:00
Eric House
2b56b1f8b2
cleanup
2020-09-29 16:06:59 -07:00
Eric House
2a973b6968
make radio buttons in invite alert bigger
...
Trying to get closer to the size they were in AlertDialog
2020-09-29 15:42:32 -07:00
Eric House
f98759881c
use separate new-game scheme for debug app
2020-09-29 14:47:53 -07:00
Eric House
24df7bb694
update bad-url script to offer to launch CrossWords
...
Working around a bug in Android 11 that broke invitation http urls
getting passed to CrossWords. They always launch the backstop script on
eehouse.org. So modify that script to include a link that will pass the
invitation params to CrossWords via a proprietary scheme it already
registers for. No change to app required!
2020-09-29 13:28:54 -07:00
Eric House
65102c2114
fix test that allowed deleting new-games group
2020-09-29 08:16:46 -07:00
Eric House
148286313f
don't try to sort a null array!
2020-09-29 07:54:39 -07:00
Eric House
eb728e4368
fix crash: don't go beyond last edge
...
An obscure pattern from a user caught this one, but the test should have
been there all along.
2020-09-28 19:18:09 -07:00
Eric House
e9ec30206d
add debug-only field tracking place in iterator
2020-09-28 19:18:04 -07:00
Eric House
0f7d924a8e
accept dicts with full paths (linux)
2020-09-28 16:12:24 -07:00
Eric House
2f849efe2a
make tap on whole line toggle expander
2020-09-28 13:05:24 -07:00
Eric House
574e50f235
keep players in sorted order
...
Sorting in common/ is hard because there's not locale-aware sort
available. Java should do the right thing so do it there.
2020-09-28 12:23:48 -07:00
Eric House
0c7e9836e2
cleanup
2020-09-28 11:48:26 -07:00
Eric House
7b097ea67d
Don't allow duplicates when renaming
2020-09-28 11:17:51 -07:00
Eric House
ba9164641a
Toward more generic naming/use of Renamer
...
Not quite done
2020-09-28 09:32:46 -07:00
Eric House
8406d9e551
implement Known Player renaming
...
Used existing GameNamer which now needs to be made more general.
2020-09-28 08:59:39 -07:00
Eric House
3d078d0894
don't show KP menuitem when there are none
2020-09-28 08:16:48 -07:00
Eric House
aff75053ac
implement deleting known players
2020-09-27 20:52:56 -07:00