Commit Graph

216 Commits

Author SHA1 Message Date
akwizgran
4b05b2acf9 Some versions of Android require notifications to have content intents. 2014-02-05 16:26:52 +00:00
akwizgran
765340c34b Clear all activities when showing startup failure notification. 2014-02-05 16:20:07 +00:00
akwizgran
cd49254559 Make all activities inherit from BriarActivity.
This will allow any activity to show the expiry warning and password
prompt, and to start and stop BriarService.

SplashScreenActivity, SetupActivity, ExpiryActivity and PasswordActivity
are special cases.
2014-02-05 15:17:17 +00:00
akwizgran
843ad55163 Distinguish request and result codes of different activities. 2014-02-05 15:03:28 +00:00
akwizgran
8d850b290c Refactored HomeScreenActivity into several smaller classes. 2014-02-05 14:30:13 +00:00
akwizgran
f62d964332 Show logo in splash screen. 2014-02-05 12:36:40 +00:00
akwizgran
3a036551c3 Remove the service from the foreground before exiting. 2014-02-05 12:07:06 +00:00
akwizgran
597c907a42 Don't launch anything from the startup failure notification. 2014-02-04 19:26:06 +00:00
akwizgran
3842a5c70d Code cleanup. 2014-02-04 19:05:48 +00:00
akwizgran
5419a9e10c Use Adapter.notifyDataSetChanged() rather than View.invalidateViews().
This may help with bug #27, but it doesn't solve it in all cases (eg the
contact's device restarting).
2014-02-04 19:05:31 +00:00
akwizgran
a45d09ef5c Show whether identities are anonymous, unknown, or verified.
Dev task #52. Known but unverified identities are also supported, but
currently unused. These will be used in future for contacts who've been
introduced but not verified face to face.
2014-02-04 12:32:51 +00:00
akwizgran
035fc4324f Bumped the expiry date to 7 February 2014. 2014-02-04 12:08:10 +00:00
akwizgran
22c7ae541a Maximum name length is specified in UTF-8 bytes, not characters. 2014-01-31 17:32:04 +00:00
akwizgran
cde4ca574f Check that author and group names aren't empty. 2014-01-31 17:23:14 +00:00
akwizgran
85b02eccc7 Select newly created identity on return from CreateIdentityActivity.
This partially fixes dev task #40. CreateIdentityActivity is also called
from AddContactActivity, but that's likely to change soon so I'm not
going to fix it now.
2014-01-30 11:06:26 +00:00
akwizgran
0bc479d4f2 Set default log level at startup. 2014-01-29 16:05:17 +00:00
akwizgran
aee695b913 Don't enable the WAN TCP plugin on Android.
Direct P2P connections between mobile devices are unlikely to work, and
they'd expose the social graph to surveillance.
2014-01-24 21:13:31 +00:00
akwizgran
f1d3093ee2 Bumped the expiry date to 31 January 2014. 2014-01-24 21:02:56 +00:00
akwizgran
1a631d9053 Simplified the expiry date logic to catch bug #35.
Leaving the expiry date at 22 January until the fix is confirmed.
2014-01-24 20:50:02 +00:00
akwizgran
822392f9e7 Use strings rather than hashes to identify transports. Dev task #64. 2014-01-24 10:39:34 +00:00
akwizgran
44bb9134d4 Reversing unintentionally pushed change: don't share Timer instances. 2014-01-16 19:31:28 +00:00
akwizgran
66619ec1e7 Use a single Timer instance. 2014-01-16 19:12:27 +00:00
akwizgran
6af3c54c28 Removed shouldFlush() from plugins, added missing PacketWriter method. 2014-01-15 17:10:25 +00:00
akwizgran
db96994d5c Simplified the serialisation format. Other task #39.
The new format is simpler but less efficient for small integers, short
strings and short byte arrays.
2014-01-14 22:40:47 +00:00
akwizgran
8886d954d7 Reorganised Guice modules. Contribute entropy to pool on Linux/Android. 2014-01-14 19:33:17 +00:00
akwizgran
46863b8c1b Log how long it takes Guice to construct its object graph. 2014-01-14 18:59:40 +00:00
akwizgran
bd980f6731 Bumped the expiry date to 22 January 2014. 2014-01-14 18:59:18 +00:00
akwizgran
6f161103ae Log the timing of startup tasks so we can find bottlenecks. 2014-01-13 21:58:34 +00:00
akwizgran
623e7330ed Store schema version in database. Dev task #50.
If the schema of the database is incompatible with the schema expected
by the code, the database throws a DbSchemaException. LifecycleManager
indicates the error to BriarService, which uses HomeScreenActivity to
show a notification and quit the app.
2014-01-09 21:00:40 +00:00
akwizgran
c779d7b95a Inform Tor about network connectivity. Dev task #53.
Note that some devices (I'm looking at you, Huawei U8110) misreport
connectivity by failing to set EXTRA_NO_CONNECTIVITY and returning true
from ConnectivityManager.getActiveNetworkInfo().isConnected() when
there's no connectivity.
2014-01-09 14:45:41 +00:00
akwizgran
0cebc42ddb Padding now depends on screen size. Closes dev task #57. 2014-01-09 12:42:19 +00:00
akwizgran
452f8bd7e1 Fiddled with colours for password strength meter. 2014-01-09 01:38:15 +00:00
akwizgran
ea47420e99 Add a password strength meter to SetupActivity. Dev task #42. 2014-01-09 01:29:00 +00:00
akwizgran
1a53e9e908 Unimplemented features should show a 'Not implemented' toast. Bug #29. 2014-01-08 17:07:51 +00:00
akwizgran
3ddfe44be3 Show feedback during setup if passwords don't match. Dev task #49. 2014-01-08 17:01:41 +00:00
akwizgran
832476412c Changed the root package from net.sf.briar to org.briarproject. 2014-01-08 16:18:30 +00:00
akwizgran
dce70f487c Merged clock and os packages, moved events into their own package. 2014-01-08 15:45:02 +00:00
akwizgran
c8641d1177 Added a ScrollView to SetupActivity. Fixes bug #34. 2014-01-08 14:49:52 +00:00
akwizgran
467842e67f If a Tor process is left behind after a crash, kill it when restarting. 2014-01-06 12:17:39 +00:00
akwizgran
413b04682f Don't allow BriarService to restart automatically without a DB key.
Fixes bug #7. The service is restarted after a crash even if
onStartCommand() returns START_NOT_STICKY, but after restarting the DB
key is not restored and so the app can't usefully proceed.
2014-01-06 10:17:06 +00:00
akwizgran
a8782937e9 Unwrapped a line. Because I care. 2014-01-05 21:55:07 +00:00
akwizgran
c403df0e20 Check the expiry date on first run. Fixes bug #35. 2014-01-05 21:53:32 +00:00
akwizgran
fc827c191e Bumped the expiry date to 15 January 2014. 2014-01-04 16:47:57 +00:00
akwizgran
88c7251ea2 Various small tweaks and optimisations to message and forum activities. 2013-12-22 01:57:56 +00:00
akwizgran
f1af27554d Removed share button, which rarely worked, and two compose buttons. 2013-12-21 23:55:22 +00:00
akwizgran
51b3a10be2 Removed public/private groups from the wire protocol.
The distinction between inbox groups and other groups can be maintained
internally, there's no need to represent it on the wire.
2013-12-20 13:32:36 +00:00
akwizgran
bd566fdb8f Moved CPU architecture check from Tor plugin to plugin factory.
This allows us to avoid instantiating the plugin on unsupported
architectures.
2013-12-19 23:23:41 +00:00
akwizgran
17ef84c070 Reduced padding between From: and To: fields. 2013-12-19 23:12:39 +00:00
akwizgran
93151ee77b Fixed a NullPointerException when a local message triggered an event. 2013-12-19 23:06:54 +00:00
akwizgran
8b44152ed4 Bumped the expiry date to 30 December 2013. 2013-12-19 22:33:42 +00:00