Commit Graph

2741 Commits

Author SHA1 Message Date
akwizgran 2f898d6d44 Reset connected flag when resetting activity's state. 2013-05-15 18:29:42 +01:00
akwizgran a32cf485fb Made some classes package-private that don't need to be public. 2013-05-15 18:27:23 +01:00
akwizgran 635973c845 Provide earlier feedback in the UI when connecting to a new contact.
Partially addresses issue #3611924.
2013-05-15 18:22:04 +01:00
akwizgran 07ab659c6b Fixed crash when rotating screen with dialog visible.
Fixes issue #3612299.
2013-05-15 13:45:48 +01:00
akwizgran 147d044dcf Don't use the term widget, it has a specific meaning on Android. 2013-05-15 12:45:36 +01:00
akwizgran fd5dcd4893 Removed override annotations from overridden abstract methods. 2013-05-15 12:38:43 +01:00
akwizgran 630cfde81e Executors and Services register themselves with the LifecycleManager.
Fixes issue #3612607.
2013-05-15 12:26:56 +01:00
akwizgran 673d7fa0c3 Moved lifecycle management into briar-core and reconfigured executors.
CryptoExecutor and DatabaseExecutor now use bounded thread pools with
unbounded queues, since running too many tasks in parallel is likely to
harm performance; IncomingConnectionExecutor, PluginExecutor and
ReliabilityExecutor use unbounded thread pools with direct handoff,
since their tasks may run indefinitely. There are no longer any bounded
executors, and all executors discard tasks when shutting down, which
fixes issue #3612189.

Responsibility for starting and stopping services has been moved from
BriarService in briar-android to LifecycleManagerImpl in briar-core.
However, BriarService is still responsible for stopping the
Android-specific executors, which is ugly. It would be better if
executors registered themselves with LifecycleManager.
2013-05-04 01:26:11 +01:00
akwizgran c008340587 Added loading progress bars to all ListViews that load from the DB.
Fixes issue #3611923.
2013-05-01 16:49:35 +01:00
akwizgran fae67ca32b Added a hook to wait for the DB without waiting for plugins to load. 2013-05-01 16:15:40 +01:00
akwizgran 4290e3d1e5 Fixed a receiver leak, added a FIXME. 2013-05-01 11:54:28 +01:00
akwizgran d24d4adf7f Reference retrieved from reference manager may be null.
Fixes issue #3612379.
2013-05-01 00:08:33 +01:00
akwizgran 1aa701ceee Save and restore UI state when screen is rotated.
Fixes issue #3611920, but keep the issue open because more activities
will be added.
2013-04-30 17:24:04 +01:00
akwizgran d5720c085f Removed bundle encryption.
Android doesn't currently store bundles persistently, so it's premature
to protect against accidental information leaks through persistent
bundle storage. Protecting against deliberate information leaks by the
OS is probably futile, so there's currently no need for bundle
encryption.
2013-04-30 15:05:23 +01:00
akwizgran 1d610209d0 Changed the expiry date to 1 June 2013. 2013-04-30 14:30:37 +01:00
akwizgran 3d9912b4ff Update invitation UI when Bluetooth or WiFi status changes.
Fixes issue #3611925.
2013-04-26 21:06:08 +01:00
akwizgran 421ce90469 Replaced a FIXME with an explanation of why it doesn't need to be fixed. 2013-04-26 18:50:55 +01:00
akwizgran 3787ed9e2f Progress spinners weren't shown when retrying invitation connections.
Fixes issue #3611959.
2013-04-26 18:43:30 +01:00
akwizgran 2c9ce014a5 Renamed a method and expanded the javadoc to be clear that it blocks. 2013-04-26 18:15:51 +01:00
akwizgran ee641db600 Record the PID of the Tor process so we can make sure it gets killed. 2013-04-25 18:46:05 +01:00
akwizgran 6f206bf270 Use a shutdown hook to kill the Tor process if the plugin isn't stopped. 2013-04-25 15:37:20 +01:00
akwizgran 32b575d16a Stripped Tor binary, reducing APK size by a megabyte. 2013-04-25 14:47:00 +01:00
akwizgran 3939ae6d60 Tor plugin for Android using native Tor binary, jtorctl and jsocks.
Only the ARM binary is included at present. Better control of the Tor
process is needed - it's possible for it to be left running when Briar
exits, and if the cookie file is deleted it's no longer possible to stop
the process.
2013-04-25 05:09:25 +01:00
akwizgran 1e5e78cc44 Use Integer.parseInt(String) to get a primitive int. 2013-04-25 05:07:26 +01:00
akwizgran 178c486a4a Put Android plugins and Java SE plugins in separate modules. 2013-04-24 21:09:38 +01:00
akwizgran 79233a47ba Throw an exception if BriarService is (re)created without a password. 2013-04-22 16:00:08 +01:00
akwizgran 371cdf0f90 Show a placeholder if the list of available blogs/groups is empty. 2013-04-21 18:35:43 +01:00
akwizgran c184458d9b Added app sharing button to contact list activity. 2013-04-19 00:33:21 +01:00
akwizgran a2b3af8718 Make groups/blogs visible to all contacts by default. 2013-04-18 22:30:15 +01:00
akwizgran cc32b000a7 Fixed some broken format strings. 2013-04-18 22:23:42 +01:00
akwizgran 0e681b9416 Removed padding between text entry fields and their labels. 2013-04-18 22:22:15 +01:00
akwizgran 6b5229a390 Don't try to load a group before subscribing to it. 2013-04-18 22:21:50 +01:00
akwizgran 9e17db5db1 Added activities for managing blog and group subscriptions. 2013-04-18 21:28:04 +01:00
akwizgran 34c3776b06 Added an expiry date to prevent unsafe builds from being used long-term. 2013-04-16 15:09:23 +01:00
akwizgran 374bff2fb6 UI for setting and entering the password that encrypts the database key. 2013-04-16 14:49:14 +01:00
akwizgran 0dcc1a6d54 Redraw the contact list when contacts connect or disconnect. 2013-04-15 15:19:37 +01:00
akwizgran fa38c3b6bb Use 5 pixels of padding around icons. 2013-04-15 15:19:10 +01:00
akwizgran c5fa3d1841 Removed last connection time from Contact class, tightened up layouts. 2013-04-15 14:51:59 +01:00
akwizgran 42fd02d0b9 Messages in restricted groups should propagate without moderation.
If the group's owner is spamming, unsubscribe.
2013-04-15 12:22:12 +01:00
akwizgran 85875a4e6c Show rating icons in private message activities.
This keeps the visual language consistent: rating icon plus name equals
author.
2013-04-15 11:24:41 +01:00
akwizgran da7657ff4d Include author and rating in private message headers. 2013-04-14 21:15:23 +01:00
akwizgran 4ff2b88955 Added an icon to indicate that a pseudonym is unrated. 2013-04-14 19:36:05 +01:00
akwizgran 63121aecf9 Prevent users from trying to post to blogs that aren't theirs. 2013-04-14 17:59:08 +01:00
akwizgran c7d60166ab Added new contact item to contact spinner, fixed spinner selection bug. 2013-04-14 17:28:42 +01:00
akwizgran a91f3cdf17 Added create blog/group items to blog/group spinners. 2013-04-14 15:17:54 +01:00
akwizgran 3c677a8599 Give positive ratings to own pseudonyms and contacts' known pseudonyms. 2013-04-14 15:17:11 +01:00
akwizgran 69c55ce5f2 Fixed an NPE in SelectContactsDialog. 2013-04-14 14:44:51 +01:00
akwizgran e97b5ff783 Continue button wasn't being enabled when code length was correct. 2013-04-14 14:38:15 +01:00
akwizgran 03af1d359d Choose the visibility of blogs and groups when creating them. 2013-04-13 23:08:51 +01:00
akwizgran f2e01d88a8 Separated blog activities from group activities for more readable code. 2013-04-13 17:18:34 +01:00