Commit graph

9503 commits

Author SHA1 Message Date
Weblate
b14c6b5003 Merge remote-tracking branch 'origin/android_translate' into android_translate 2016-05-28 08:43:40 +02:00
Eric House
f8cfb9cc44 change string and enum name to indicate Bluetooth is where the connect
failure is.
2016-05-21 14:35:53 -07:00
Eric House
f001455589 fix so tablets are found in BT scans: they're considered computers, not phones 2016-05-21 14:25:54 -07:00
Eric House
f51565839a no need to set summary to null when pausing. 2016-05-21 14:05:47 -07:00
Eric House
e127c8a3aa fix to uninstall (by default) based on directory invoked from 2016-05-21 13:36:56 -07:00
Eric House
17945b2dc0 turn on auto-capitalization of sentences in chat 2016-05-17 22:21:11 -07:00
Eric House
4791ccaca8 commented out code to add notification used to duplicate the bug
addresses by the previous commit.
2016-05-17 21:09:32 -07:00
Eric House
80ebcff4c9 Handle case where we want to open a game that's already open (likely
in the process of being closed.) If we're successful in getting a
JNIThread object that's already initialized, re-use it, closing only
the JNI part (which probably can't be cleanly re-used with a different
Context.) I worry about the case where the thread's event queue isn't
empty, so there's an assert to catch that case.
2016-05-17 21:08:03 -07:00
Eric House
79efbd2076 upgrade gradle (recommended by AS) 2016-05-17 20:56:31 -07:00
Eric House
253c0d7496 turn off saving logs for now; move capture of title to where it's more
likely to succeed, and assert that it is. I think this will fix the
title-not-reverting problem I've been seeing.
2016-05-10 06:40:23 -07:00
Eric House
608533d189 Merge branch 'from_android_beta_106' into android_branch 2016-05-03 06:44:39 -07:00
Eric House
c013c152d7 up version strings for release 107 (f-droid only is the plan) 2016-05-02 21:56:11 -07:00
Eric House
f0dc295bde break gradle release builds with an error message that will, with
luck, communicate to the f-droid maintainer that ant it still the way
to build. Should stop the flood of error reports from f-droid users.
2016-05-02 21:45:53 -07:00
Eric House
1cb75bd970 turn off an especially oft-occurring log message 2016-04-22 21:14:58 -07:00
Eric House
d376679d00 add new database table for persisting logs. DEBUG builds only for
now. Keep the most recent 5K worth of messages. TODO: add a display
activity and the ability to email them.
2016-04-22 21:14:36 -07:00
Eric House
1216ec49d7 cleanup: move method 2016-04-22 07:08:13 -07:00
Eric House
bf871a20fb test for null to avoid NPE. I'm not sure how it gets here -- race
condition on opening maybe -- but not showing the one menuitem in this
case is harmless.
2016-04-21 06:35:42 -07:00
Eric House
18503f2237 If we get an intent and can't open the game it names, that's probably because GamesListActivity has been relauched on top of itself. So exit with a (temporary) Toast message. 2016-04-20 21:50:09 -07:00
Eric House
c9a1f00a43 catch up with non-dbg changes, esp. enabling dual-pane mode (though
it's off now thanks to a compile-time constant)
2016-04-18 06:21:49 -07:00
Eric House
406eb77f54 post notification (rather than just play sound) when turn comes into
boarddelegate but it's not visible
2016-04-14 22:16:18 -07:00
Eric House
c860773234 still learning magit: check preference before playing sound 2016-04-14 21:50:18 -07:00
Eric House
99effcac89 looks like I missed a hunk in previous commit 2016-04-14 21:42:22 -07:00
Eric House
e239430260 play notification sound when a move or chat is added to the board or
chat view. Still TODO: post a notification when that view isn't visible.
2016-04-14 21:39:23 -07:00
Eric House
994672667c gitignore some stuff 2016-04-14 21:07:12 -07:00
Eric House
33225f3bc5 refactor message receiving/distributing code into superclass. 2016-04-11 06:01:25 -07:00
Eric House
f288fe2860 use malloc to allocate storate for hci_inquiry instead of the
stack. That *seems* to fix it always returning 0, something that
changed with newer version of linux or libbluetooth or who knows
what. BT still doesn't work from linux, but this is a necessary start.
2016-04-09 15:49:11 -07:00
Eric House
a0ae117e35 fix invitations breakage introduced when JNIThread because self-initing. 2016-04-09 14:47:48 -07:00
Eric House
27b3004b43 exclude computers from BT paried devices scan -- since doesn't work on
ubuntu right now.
2016-04-09 13:57:16 -07:00
Eric House
baee084a90 add assert to catch case where exception may otherwise be thrown 2016-04-09 13:34:13 -07:00
Eric House
57dcbabab6 use a constant 2016-04-09 13:10:04 -07:00
Eric House
04a697b260 fix NPE: put back setReceiver() call lost when JNIThread became
self-initing.
2016-04-09 12:42:47 -07:00
Eric House
3dd69d90d9 This stuff has to be done before content gets added. Move into
Activity for now, though this may not work in dual-pane mode.
2016-04-09 12:23:26 -07:00
Eric House
8c9e3ce14c use pthreads mutex to synchronize alloc and free operations in (debug
only) mpool. I'm getting assertions about failure to free now that
multiple threads are accessing open games, but I think they're bogus:
due to multiple threads modifying the leak-detection counters. This
seems to fix the assertions I was seeing in mpool_destroy().
2016-04-09 11:54:08 -07:00
Eric House
f876c49cd6 don't require that ant be run before install 2016-04-09 11:51:48 -07:00
Eric House
1c6e97e164 AS-generated changes adapting to the 2.0 release 2016-04-07 12:34:58 -07:00
Eric House
589535cdbc Make JNIThread responsible for opening/owning game and other objects
whose lifespan matches its, e.g. the gameptr and gi. This is a big
change, and there are still some bugs/crashes, but it's worth
committing this snapshot.
2016-04-07 12:23:13 -07:00
Eric House
160d69640a log refcount changes 2016-04-07 09:48:23 -07:00
Eric House
b2c4bd9e23 better chat text hint 2016-04-07 09:30:29 -07:00
Eric House
14bdde7ff0 save game whenever refcount is released. Works around BoardDelegate
reloading the game every time it resumes. Better fix would be to have
JNIThread() own loading the game and only do so when first created.
2016-04-07 09:27:00 -07:00
Eric House
d541c976bf add PENDING comment 2016-04-07 09:23:07 -07:00
Eric House
9f05d45e05 sometimes when return from background ChatDelegate is the first to try
to reference JNIThread. Until I can make that work, just finish() --
to avoid crashes.
2016-04-07 09:22:41 -07:00
Eric House
049c25f16d save when exiting to prevent data loss opening chat window. 2016-04-06 21:41:48 -07:00
Eric House
a55e17cd41 cleanup; log rowid in release() and retain() 2016-04-06 21:40:46 -07:00
Eric House
a90ec29ff0 fix delete game problem: delete first using lock we already have. 2016-04-06 18:42:37 -07:00
Eric House
3a368a8efd toward working better in background: log and print stack when doing
nothing because jnithread is null. Pass incoming chat messages to
ChatDelegate if it's up, and otherwise launch it as before.
2016-04-06 11:16:51 -07:00
Eric House
919e44f21e first cut at accepting input when running. Won't work when whole app is in background. 2016-04-06 11:08:27 -07:00
Eric House
347ff60434 toward working in background: log when called on null thread rather than crashing 2016-04-06 11:07:30 -07:00
Eric House
70c0db6504 chat: add hint string, and make textfield full width 2016-04-06 11:06:10 -07:00
Eric House
4bb16e88ef better logging 2016-04-06 11:03:18 -07:00
Eric House
7b045fb413 add constant to disable dualpane on debug builds too 2016-04-06 11:03:02 -07:00