Commit Graph

1346 Commits

Author SHA1 Message Date
akwizgran
a2b3ef9e62 If Bluetooth is activated to add a contact, deactivate it afterwards.
Bug #47.
2014-03-10 19:06:14 +00:00
akwizgran
cd4fb6fb64 Padding on checkboxes is broken on Android < 4.2. 2014-03-10 18:47:08 +00:00
akwizgran
4de97ed0ef Refer to manufacturer/model/brand as device type, not device name. 2014-03-10 18:29:35 +00:00
akwizgran
4560cf17ff Notification settings. Dev task #76. 2014-03-10 18:00:36 +00:00
akwizgran
d151633a60 Store settings in the DB, listen for events when settings are updated. 2014-03-10 17:59:13 +00:00
akwizgran
abaf1d7e96 Show message/post count in notifications. Dev task #77. 2014-03-07 13:06:31 +00:00
akwizgran
a5b09a0f65 Better notifications. Development task #67. 2014-03-07 12:21:12 +00:00
akwizgran
c72e30617d Don't show progress spinner when sharing debugging info, it's confusing. 2014-03-07 12:18:39 +00:00
akwizgran
b5429f121a Use application context for all background tasks. 2014-03-06 18:25:37 +00:00
akwizgran
b4c9f278f9 Upgraded Tor to 0.2.4.21. 2014-03-06 17:52:37 +00:00
akwizgran
8ed716dde8 Added device, OS version and CPU architecture to debugging info. 2014-03-06 16:21:23 +00:00
akwizgran
4875b21614 Show a progress spinner while loading debugging info. 2014-03-06 15:56:47 +00:00
akwizgran
304ba53807 Check whether to enable or disable Tor at each connectivity change. 2014-03-06 15:42:21 +00:00
akwizgran
bd7fcb16a3 ContextSingleton annotation isn't needed for immutable class. 2014-03-06 14:06:21 +00:00
akwizgran
250afa7642 Added javadoc comments to plugin factory interfaces. 2014-03-06 13:20:28 +00:00
akwizgran
0198e40719 Made coding style consistent with rest of project. 2014-03-06 13:16:20 +00:00
akwizgran
7838c3687a Merge branch 'android-geo' into 'master'
Don't start Tor in countries that are known to block it

See the javadoc for getCurrentCountry for details on how we get the country. In particular, it seems Google already has a hidden SystemService that does this, but we can't use it so we have to code our own. Luckily the solution I came up with independently yesterday almost exactly matches what they do.

Also, the hardcoded list of countries that block tor is incomplete; I will try to find a more complete list.
2014-03-06 12:45:05 +00:00
Ximin Luo
4330f4bee3 don't start tor if it's probably blocked 2014-03-05 22:20:36 +00:00
Ximin Luo
48e5d5123e add documentation and pointer to hidden Google API
- fallback to SIM card before phone locale
- add disabled code to lookup the country from GPS, disabled because it requires a network call
2014-03-05 22:19:59 +00:00
Ximin Luo
9697b351e9 add the ability for briar-android to get the current country.
- this will be useful later for e.g. auto-disabling Tor
2014-03-05 15:13:50 +00:00
akwizgran
39b7a97267 "Implicit intents with startService are not safe" - use an explicit one. 2014-03-04 14:22:19 +00:00
akwizgran
3a01a04cbf Log simple names of plugin classes when polling. 2014-03-04 14:04:07 +00:00
akwizgran
8dd9efce3c Use a .txt extension for debugging logs sent to the developers. 2014-03-04 14:01:45 +00:00
akwizgran
58f5b94a2a Added a settings screen and a setting for activating Bluetooth. Bug #28. 2014-03-04 13:59:37 +00:00
akwizgran
b6f95f6540 Show all logcat ouput for the current process in TestingActivity. 2014-03-03 18:52:25 +00:00
akwizgran
511b470aa4 Less verbose logging for plugins. 2014-03-03 15:31:46 +00:00
akwizgran
56f79755a4 Added a config setting to not enable Bluetooth automatically (bug #28).
There's currently no way to set this setting, so the bug isn't fixed.
2014-03-03 15:31:05 +00:00
akwizgran
74159f6e71 Check whether data has been deleted when resuming from recents. Bug #44. 2014-03-02 18:37:24 +00:00
akwizgran
581ba7139a Don't overselect rows when unsetting inbox group. Fixes bug #40. 2014-03-02 17:58:00 +00:00
akwizgran
c69766fbd2 Removed redundant calls to setTextSize(14), which is the default. 2014-03-01 11:55:54 +00:00
akwizgran
ebe1db9fb1 Show newly created forums after creating them. 2014-03-01 11:45:13 +00:00
akwizgran
0bab22db38 Each task that runs on a separate thread should have its own method. 2014-03-01 11:26:38 +00:00
akwizgran
86f8d97d81 Moved some boilerplate into the BriarActivity superclass. 2014-03-01 11:20:04 +00:00
akwizgran
90ad3caedd Copy the collection of plugins before passing it to the poller. 2014-03-01 10:44:32 +00:00
akwizgran
a2d099ea17 Added debugging screen to alpha and beta builds. Dev task #73. 2014-02-28 23:44:35 +00:00
akwizgran
07b4d9b5d8 Show empty list text for contact list, group list, etc. Dev task #71. 2014-02-27 23:07:26 +00:00
akwizgran
80824b848c Layout tweaks for SetupActivity. 2014-02-27 22:02:25 +00:00
akwizgran
fe897efa36 Use custom title bar colour on older Android versions. 2014-02-27 18:01:30 +00:00
akwizgran
c5d0f30c71 Prettier display of available forums, cleaned up list comparators. 2014-02-27 16:25:47 +00:00
akwizgran
7a5e9961e7 Larger icons. 2014-02-27 15:49:16 +00:00
akwizgran
8619f89890 Cleaned up composition screen layouts. 2014-02-27 15:34:52 +00:00
akwizgran
de5dac6ce3 Reset message status when contact unsubscribes from group. Dev task #68. 2014-02-27 14:24:52 +00:00
akwizgran
1cbaae0734 Database.setInboxGroup() doesn't require message lock. 2014-02-27 12:49:57 +00:00
akwizgran
c021bfd9aa Update unread message count when returning from conversation/group.
Fixes bug #42.
2014-02-27 11:57:51 +00:00
akwizgran
094cda8573 Brighter colours. 2014-02-27 00:10:47 +00:00
akwizgran
d21ced30ba Don't create duplicate PasswordActivity when screen is rotated. Bug #43 2014-02-26 22:45:07 +00:00
akwizgran
e479bf0a4d Show private message timestamp in grey below content. 2014-02-26 20:59:18 +00:00
akwizgran
52cf47619f Layout tweaks, dark action bar, don't send empty messages. 2014-02-26 18:36:51 +00:00
akwizgran
95605891f3 Bumped the expiry date to 16 March. 2014-02-26 16:42:59 +00:00
akwizgran
b10827d84b Layout tweaks: outline StrengthMeter, indent EditTexts. 2014-02-11 11:40:08 +00:00