Commit graph

173 commits

Author SHA1 Message Date
0a61af733e Greatly simplified add contact process.
Removed ConfirmAddContactActivity, only one side has to confirm
now. After that, messages can be sent immediately. The other
side adds the contact when the first message is received.
2015-09-11 15:50:04 +02:00
e9cfdc0481 Fixed crash when re-enabling Bluetooth. 2015-09-11 14:04:38 +02:00
c03d0d222e Use BroadcastReceiver to close connection.
This is needed when the connection is closed because one device
disabled its Bluetooth interface.
2015-09-11 14:01:45 +02:00
f695508fdd Fixed race condition and missing returns. 2015-09-11 02:17:21 +02:00
5aef929229 Updated gradle. 2015-09-09 22:40:36 +02:00
522518312f Use val instead of var. 2015-09-02 01:13:57 +02:00
85a235d35a Send message also if device is not connected. 2015-09-02 00:31:43 +02:00
7d29fa9be9 Use none instead of null. 2015-09-02 00:31:24 +02:00
a2e6c58fae Close ConfirmAddContactsActivity if user disconnected. 2015-09-02 00:30:42 +02:00
dc4327607c Fixed and simplified unit tests. 2015-08-28 00:16:36 +02:00
6c7ad3e853 Minor improvements to AddContactsHandler.
- notifications are dismissed automatically
- no toast if user was not added
- fixed potential bug when both nodes sent RequestAddContact
2015-08-28 00:09:39 +02:00
e9942b859e Allow dismissing add contact dialog. 2015-08-28 00:06:31 +02:00
6999234d7e Fixed possible crash in MessagesAdapter. 2015-08-27 23:58:48 +02:00
61b13da957 Fixed AddressTest. 2015-08-26 00:25:11 +02:00
5189a459ba Added missing close() call in TransferThread. 2015-08-26 00:24:04 +02:00
0eab785e96 Show warning toast if message can't be sent. 2015-08-25 00:23:09 +02:00
02f7d87929 Add option fields for ContentHeader to AbstractHeader.
This will hopefully save some LoC and complexity (and not increase
them).
2015-08-25 00:14:57 +02:00
0aeb82553a Use CursorAdapter for messages so all messages can be viewed. 2015-08-24 23:38:55 +02:00
6ec9b949c5 Fixed max connections setting being shown in release builds. 2015-08-23 14:42:53 +02:00
578d8d9b76 Minor clode cleanup. 2015-08-23 14:37:14 +02:00
8b832cec9d Hide acionbar in translucent theme. 2015-08-23 14:27:03 +02:00
38db151d8c Open chat after adding a new contact. 2015-08-23 14:10:21 +02:00
ee621a7d78 Don't show Bluetooth visibility dialog so often. 2015-08-22 19:42:28 +02:00
6eed89f8c0 Rethrow errors in future. 2015-08-22 01:47:02 +02:00
9840feff46 Fixed add contact toast not shown. 2015-08-19 11:25:54 +02:00
1d97e75753 Make sure scrollbar does not overlap message items. 2015-08-19 10:46:20 +02:00
547f4ff0cb Show message time and date (fixes #32). 2015-08-19 10:36:57 +02:00
122bf7f167 Fixed lint warnings regarding rtl layouts. 2015-07-28 01:45:40 +02:00
b39cfbe90c Ignore "unused resources" warnings. 2015-07-28 01:45:31 +02:00
8392127e6b Use NotificationCompat. 2015-07-28 01:45:18 +02:00
b39fb514c1 Use future inside ChatService.sendTo(), log errors in future. 2015-07-28 01:07:02 +02:00
ae814b73ba Added throws declaration to Message.read(). 2015-07-28 00:57:10 +02:00
625743d174 Print address seperated by dashes. 2015-07-27 13:18:02 +02:00
cdece0ef42 Show identicons in user list and settings (fixes #27). 2015-07-27 13:17:57 +02:00
1c3bc5618e Updated gradle. 2015-07-24 02:15:30 +02:00
fee99d850c Simplified address string conversion. 2015-07-24 02:01:53 +02:00
62e54a1c02 Replaced weak listeners with local broadcasts. 2015-07-24 01:39:20 +02:00
9959453c38 Add status message (fixes #14).
Also improved protocol definition.
2015-07-24 00:28:29 +02:00
212bb8beba Added crypto information to protocol (fixes #17). 2015-07-23 01:40:39 +02:00
9bb5870344 Added persistent notification while app is running (fixes #12). 2015-07-21 16:03:40 +02:00
bee5e45093 Trim name before showing it. 2015-07-07 23:18:29 +02:00
b1bb4eb8b3 Fixed crash if BluetoothAdapter.STATE_ON is received twice. 2015-07-07 23:18:07 +02:00
3f19e86c75 Added information about routing to protocol (fixes #9). 2015-07-03 17:53:30 +02:00
76e4e30483 Updated gradle version. 2015-07-02 17:02:06 +02:00
aadf0dc1f9 Use LocalBroadcastManager instead of ContactsUpdatedListener. 2015-07-01 20:03:22 +02:00
b73e142a73 Use Option() instead of Some() for object creation. 2015-07-01 19:22:56 +02:00
9654ba0c2a Updated screenshots. 2015-07-01 02:34:19 +02:00
ff30b64ee5 Reformatting of SettingsFragment. 2015-07-01 02:06:35 +02:00
a7e78544b4 Don't show max_connections preference in release builds. 2015-07-01 01:56:10 +02:00
939a2a000a Cleaned build.gradle. 2015-06-30 22:49:21 +02:00