Commit Graph

43 Commits

Author SHA1 Message Date
Ernir Erlingsson
adb7d37f86 implementing robolectric and mockito 2016-05-11 11:52:56 +02:00
Ernir Erlingsson
e809aaa932 merge and update 2016-05-11 11:50:34 +02:00
Ernir Erlingsson
a14e981236 Switched AppBus for ResultHandler, Controller for Helper. Added the basics for LifecycleControllers and implemented it for BriarActivity and NavDrawerActivity 2016-05-11 11:50:34 +02:00
Ernir Erlingsson
27098db18f fix compile error 2016-05-11 11:50:34 +02:00
Ernir Erlingsson
8d021aab50 cleaning up 2016-05-11 11:50:34 +02:00
Ernir Erlingsson
a9de12520d phase 2: helpers and app bus 2016-05-11 11:42:38 +02:00
Ernir Erlingsson
7b552bde1e phase 1: Activities and Fragments 2016-05-11 11:42:38 +02:00
Ernir Erlingsson
4da63b3800 Modified the project structure, removed module extension and went instead for a non-complete core dependency graph 2016-03-14 21:02:51 +01:00
Ernir Erlingsson
1be400eb84 Switched Roboguice/Guice out for Dagger 2 2016-03-14 21:01:21 +01:00
Ernir Erlingsson
dae29eecce Navigation drawer (squashed and rebased). 2016-01-21 16:49:21 +00:00
akwizgran
7e48267f92 Consistent styling for setup and password activities.
Also removed some unused code from BaseActivity.
2016-01-08 13:22:33 +00:00
Torsten Grote
0a11c0632f introduce a hideSoftKeyboard() method and use it 2016-01-07 19:31:06 -02:00
Torsten Grote
4460d69a06 Improve PasswordActivity by
* removing screen border visible on small screens
* showing noticeable error message on wrong password input
* showing keyboard again after entering wrong password
* making lost password link easier to recognize as link
* renaming keyboard toggle method from 'hide' to 'toggle'
2016-01-07 14:15:57 -02:00
akwizgran
50b941e50e Show strength meter when password entry has focus.
Also fixed some IME action issues on Android 2.3.
2015-12-31 12:00:42 +00:00
str4d
9b1dacfe97 Use TextInputLayout from the Design Support Library to display errors 2015-12-31 11:36:59 +00:00
str4d
981903aa57 Migrate SetupActivity to XML 2015-12-31 11:36:27 +00:00
akwizgran
886074e50e Code cleanup. 2015-12-17 16:56:57 +00:00
akwizgran
c5282c5b17 Moved some API classes into packages. 2015-12-17 16:56:57 +00:00
Ernir Erlingsson
6ac999c113 Added AppCompatBar and fixed dependencies 2015-12-14 14:03:55 +01:00
akwizgran
912ba394c5 Refactored FileUtils.
Removed methods that are no longer needed for Java 6, moved the remaining method into the utils directory.
2015-12-10 15:58:52 +00:00
akwizgran
f0558ceb7a Merge branch '159-improve-setup-errors' into 'master'
Show setup page error messages by the relevant text box

Closes #159 

See merge request !3
2015-12-08 12:59:30 +00:00
str4d
383cb651bc Show setup page error messages by the relevant text box 2015-12-08 07:13:14 +00:00
str4d
11deb5728f Hide password strength meter when confirming password 2015-12-08 06:49:55 +00:00
akwizgran
027ae8340f Whitespace-only code formatting changes. 2015-11-30 09:38:25 +00:00
akwizgran
dea5a44724 Simpler forum sharing UX. 2015-04-29 15:08:58 +01:00
akwizgran
b791ce02b6 Insert padding between password strength meter and progress spinner. 2015-03-23 11:00:54 +00:00
akwizgran
7fbad8dc26 Use FortunaGenerator to implement PseudoRandom. 2015-01-14 20:46:03 +00:00
akwizgran
358166bc12 Don't try to erase secrets from memory.
1. The things we're really trying to protect - contact identities,
message contents, etc - can't be erased from memory because they're
encapsulated inside objects we don't control.

2. Long-term secrets can't be protected by erasing them from memory
because they're stored in the database and the database key has to be
held in memory whenever the app's running.

3. If the runtime uses a compacting garbage collector then we have no
way to ensure an object is erased from memory.

4. Trying to erase secrets from memory makes the code more complex.

Conclusion: Let's not try to protect secrets from an attacker who can
read arbitrary memory locations.
2014-12-29 21:08:27 +00:00
akwizgran
d755668b4a Close soft keyboard in SetupActivity. 2014-05-09 19:09:13 +01:00
akwizgran
4aae062ea7 Created switches for disabling alpha/beta testing code. 2014-04-30 13:41:09 +01:00
akwizgran
639a5e8e76 Prevent screenshots (including the Recents menu).
Thanks to the team that audited CryptoCat for this idea. :-)
2014-04-07 20:35:10 +01:00
akwizgran
3d9f5c496f Show feedback when nickname or forum name is too long. Bug #45. 2014-04-05 14:59:30 +01:00
akwizgran
4560cf17ff Notification settings. Dev task #76. 2014-03-10 18:00:36 +00:00
akwizgran
c69766fbd2 Removed redundant calls to setTextSize(14), which is the default. 2014-03-01 11:55:54 +00:00
akwizgran
80824b848c Layout tweaks for SetupActivity. 2014-02-27 22:02:25 +00:00
akwizgran
b10827d84b Layout tweaks: outline StrengthMeter, indent EditTexts. 2014-02-11 11:40:08 +00:00
akwizgran
bd40c65916 Renamed home screen to dashboard. 2014-02-05 22:19:29 +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
0cebc42ddb Padding now depends on screen size. Closes dev task #57. 2014-01-09 12:42:19 +00:00
akwizgran
ea47420e99 Add a password strength meter to SetupActivity. Dev task #42. 2014-01-09 01:29:00 +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