Commit Graph

6135 Commits

Author SHA1 Message Date
akwizgran 165b5c533d Show attachment icon if newest message in group is not plain text. 2013-03-15 17:36:07 +00:00
akwizgran 3fcb30c207 Database executor parameters were causing performance problems. 2013-03-15 17:28:09 +00:00
akwizgran 5f8dba7bf6 Access result columns in order, in case it helps performance. 2013-03-15 16:55:29 +00:00
akwizgran a94867907f Getting group message headers requires acquiring rating lock. 2013-03-15 16:52:56 +00:00
akwizgran 61cf16b808 Forgot to call super.onPause(). 2013-03-15 16:48:37 +00:00
akwizgran e63555123a Added logging for DB events. 2013-03-15 16:42:33 +00:00
akwizgran b8e97b0bc1 Removed complex premature optimisations from DB/UI interaction. 2013-03-15 16:35:14 +00:00
akwizgran 8b6bbd77ab Attach the IDs of expired messages to MessageExpiredEvent. 2013-03-15 16:34:38 +00:00
akwizgran 3fd23830c9 Use an unbounded executor for DB tasks, which may depend on each other. 2013-03-15 16:34:00 +00:00
akwizgran f076a65e0a Removed unused message header constructors. 2013-03-15 00:55:00 +00:00
akwizgran 5151fc3824 Cache ratings to avoid hitting the DB. 2013-03-15 00:46:00 +00:00
akwizgran 23ab23a931 Attached data to DB events to avoid DB lookups; refactored UI code.
Fields in Android UI objects that are accessed from background threads
must be declared volatile. UI objects use data attached to DB events to
avoid DB lookups, which complicates the UI code but should improve
performance.
2013-03-14 22:46:57 +00:00
akwizgran c783958d94 Minor layout and colour changes. 2013-03-13 10:41:07 +00:00
akwizgran c02ce6cb12 Preserve alignment by making rating icons INVISIBLE rather than GONE. 2013-03-12 18:10:55 +00:00
akwizgran 0280ea2aa9 Android UI for peer moderation. 2013-03-12 18:02:21 +00:00
akwizgran d3b742e14c Renamed VerificationExecutor, as it may be used for any crypto task. 2013-03-12 16:19:36 +00:00
akwizgran 36df192521 String.isEmpty() doesn't exist until Java 1.6. 2013-03-12 16:07:22 +00:00
akwizgran 747a06d1ad Android UI for group messages (anonymous text only, no moderation yet). 2013-03-12 15:55:41 +00:00
akwizgran 211950ce66 Added a factory method for unrestricted groups. 2013-03-12 14:42:28 +00:00
akwizgran be3b0bf4d6 Renamed some factory methods. 2013-03-12 13:59:55 +00:00
akwizgran 127ed22c40 Show number of unread messages rather than total number of messages. 2013-03-12 11:26:46 +00:00
akwizgran 768bd8d603 Exclude private messages when counting unread group messages. 2013-03-11 17:58:43 +00:00
akwizgran 89087a32c3 Added new database events to support updating the UI. 2013-03-11 17:33:28 +00:00
akwizgran 4c56f8d027 Removed commented-out layout code. 2013-03-11 16:15:21 +00:00
akwizgran 46e5cef46c Removed unnecessary final modifier. 2013-03-11 16:13:20 +00:00
akwizgran 21dfa6be84 Sort headers on the UI thread as the sorted list will be accessed there. 2013-03-11 16:12:47 +00:00
akwizgran a75dd3a79a Removed unnecessary final modifier. 2013-03-11 16:11:59 +00:00
akwizgran 5c7457fff0 Fields of immutable classes should be final. 2013-03-11 16:10:59 +00:00
akwizgran 035fb2ca9a Make final copies of non-volatile fields when passing to other threads. 2013-03-11 15:58:22 +00:00
akwizgran 7f71c1d5e7 Show a spinner while Guice is initialising. 2013-03-11 14:24:43 +00:00
akwizgran 78ccebf357 If Bluetooth is enabled but not discoverable, warn but continue. 2013-03-11 13:56:12 +00:00
akwizgran 787c428874 Added contact name dropdown to message composition screen. 2013-03-11 13:35:38 +00:00
akwizgran aa4f1cdfdd Minor layout changes: padding and text size. 2013-03-11 12:33:09 +00:00
akwizgran 19a6178b54 Removed star icons, added padding around text, renamed boards -> groups. 2013-03-11 10:57:44 +00:00
akwizgran 056eaa2797 Bluetooth debugging and code cleanup.
Generate a random UUID instead of using a fixed UUID. Close sockets when
exceptions are thrown (not doing so can cause problems with subsequent
sockets on Android). Use a semaphore with tryAcquire() instead of a lock
when making alien calls, to avoid possible deadlocks.
2013-03-11 10:39:30 +00:00
akwizgran cd5d922b5e Cleaned up Android Bluetooth reflection code and added logging. 2013-03-11 10:35:14 +00:00
akwizgran a02ca4b356 Close invitation connections after use. 2013-03-11 10:31:31 +00:00
akwizgran 4d590f4533 Accept any six-digit invitation/confirmation code.
Rejecting codes greater than 2^19 - 1 creates a confusing user
experience.
2013-03-11 10:30:20 +00:00
akwizgran 1ece8a05fb Stricter verification of public keys. 2013-03-07 21:01:44 +00:00
akwizgran ecfb4e98a1 Forgot to specify NoPadding for temporary storage cipher. 2013-03-07 10:20:07 +00:00
akwizgran edaf4e4b23 Temporary storage crypto doesn't need AAD, so it can use a Cipher. 2013-03-06 23:01:01 +00:00
akwizgran 91a068c4bd Created some utility classes for commonly used layouts. 2013-03-05 18:37:09 +00:00
akwizgran 050f2094cf Added a border to separate the button bar from the content area. 2013-03-05 15:31:10 +00:00
akwizgran c83b1b74e5 Previous message and next message buttons. 2013-03-05 15:02:21 +00:00
akwizgran 86925ef402 Hooked up star/unstar and read/unread buttons. Tinkered with layouts. 2013-03-05 14:28:09 +00:00
akwizgran 792d8cb071 Removed backgrounds from home screen buttons. 2013-03-05 14:19:59 +00:00
akwizgran f549b6d818 Android UI for writing private messages (text only for now). 2013-03-05 01:57:15 +00:00
akwizgran 666499337c Mark local messages read when they're added to the database. 2013-03-05 01:52:09 +00:00
akwizgran 7cfdacb0ae Scroll to the first unread message, or the end of the list if all read. 2013-03-05 00:44:10 +00:00
akwizgran 706ca5d531 Added some more fake messages to test scrolling. 2013-03-05 00:43:27 +00:00