Commit Graph

2976 Commits

Author SHA1 Message Date
Moxie Marlinspike
9bf434cb3b The <= GB QuickContactBadge is ugly. Let's do something nicer for them.
Unfortunately GB is 50% of the TS userbase, best not to neglect them.
2012-11-20 20:14:30 -08:00
Moxie Marlinspike
80a6c65790 We need READ_CALL_LOG if targetSDK is > 15. What a drag. 2012-11-20 19:09:46 -08:00
Moxie Marlinspike
c66e221598 Signal that we don't want screenshots of unlocked activities. 2012-11-20 18:49:56 -08:00
Moxie Marlinspike
47c83d2747 When retrieving MMS, continue on with best-effort in absence of APNs. 2012-11-18 14:52:33 -08:00
Tor Houghton
e8ffce53fe Fix reference to "forward" prefix
Code was erroneously referencing the string ID, rather than the
contents of the string (sorry!).
2012-11-05 18:45:04 +01:00
Moxie Marlinspike
acffda1ab8 formatting 2012-10-31 18:03:09 -07:00
Moxie Marlinspike
6b18f66e19 disambiguate send 2012-10-31 18:00:59 -07:00
Moxie Marlinspike
f26dbb2f34 disambiguate 2012-10-31 17:56:39 -07:00
Moxie Marlinspike
93c0fffc31 We need to force plaintext on key exchange messages. 2012-10-29 20:53:04 -07:00
Moxie Marlinspike
c5ed820590 Create DB indexes for optimized queries. 2012-10-29 18:01:09 -07:00
Moxie Marlinspike
3a9908b40d formatting 2012-10-29 17:34:14 -07:00
Moxie Marlinspike
187ec95817 Add collating support for group SMS/MMS messages.
1) When sending an SMS or MMS to multiple recipients, only show one
ConversationItem, but provide statistics on the number of recipients
delivered to.

2) Still break up the messages for secure and insecure messages.
2012-10-29 16:51:42 -07:00
Moxie Marlinspike
3a8d29e279 Major reorganization of view/model interactions.
Mostly, the inheritance graph for MessageRecord/MmsMessageRecord was
all messed up, and each class was overloaded for things it shouldn't
have been.

1) Broke MessageRecord/MmsMessageRecord up into: DisplayRecord, ThreadRecord,
MessageRecord, SmsMessageRecord, NotificationMmsMessageRecord, and
MediaMmsMessageRecord.

2) Updated all the adapters/views to keep pace with that change.
2012-10-28 18:24:21 -07:00
Moxie Marlinspike
0b3e939ac8 Improve support for "me" contact.
1) Add >= ICS profile support (the system-supported "me" contact).

2) Improve <= Gingerbread support for me contact by auto-detecting
contacts that have the same number as the SIM card.

3) Tie in identity key import/export support to the "me" contact.

4) Don't display a "me" selection option in preference if it can
be auto-detected.

5) Refactor out the ContactAccessorNewApi back into the base class.
2012-10-22 19:17:08 -07:00
Moxie Marlinspike
c13a3a8181 Fix "Group Threads" so that messages are encrypted when possible.
1) Change the MessageSender logic so that individual SMS messages
are encrypted whenever there is a secure session, unless the UI
explicitly specifies otherwise.

2) Change the MMS logic so that messages to a recipient with a
secure session are all sent individually, instead of including
those recipients into the batch plaintext message.
2012-10-21 17:41:44 -07:00
Moxie Marlinspike
1bd260b981 Improve UI for group SMS ConversationActivity
1) Change title to indicate it's a group message, and specify
the number of recipients.

2) Add an ActionBar icon to display a list of the recipients.
2012-10-21 14:34:09 -07:00
Tor Houghton
73bde7accd Localisation change
Localisation of the message prefix when forwarding a message (in
Norwegian, this would be "VS:" for instance).
2012-10-12 12:00:34 +02:00
Moxie Marlinspike
82f8ba3584 Removed tabs 2012-09-30 19:56:29 -07:00
Moxie Marlinspike
030b39cd9c Updated attachment selection dialog.
1) Added nice-looking holo-themed graphics for each attachment type.

2) Removed old un-scaled graphics.

3) Stringified the attachment types.
2012-09-30 18:58:40 -07:00
Moxie Marlinspike
3cf77b6fd0 Display contact icons correctly in MMS ConversationItems 2012-09-30 12:28:03 -07:00
Moxie Marlinspike
cf9dc51f31 Initial fixes for MMS retrieval.
1) Parse the APN information based on what the ConnectionManager
tells us.

2) Accept email addresses as a valid Recipient format.
2012-09-30 11:46:45 -07:00
Moxie Marlinspike
f743af32de javac wants us to be more explicit 2012-09-28 16:11:11 -07:00
Tor Houghton
46fb1b1db9 Fix for Sparebank1 OTP application
Now in its own branch. Dear $deity, hope this is correct.
2012-09-22 22:17:57 +02:00
Tor Houghton
b89a72dbeb Localisation commit
You know, it's much more fun listening to you in a lecture theatre. :-P

Right; any nit picks now might have to wait 3 weeks, depending on
available connectivity. Hope I did not screw this one up.
2012-09-22 21:53:56 +02:00
thoughtbox
999ec7606c Update src/org/thoughtcrime/securesms/ConversationListFragment.java
Fix for removing notification when deleting an unread thread.
2012-09-21 08:34:57 +03:00
Moxie Marlinspike
bb0ec65744 Include source origin in string key name.
This should help eliminate string duplicates, as well as provide
visibility into where strings in a resource file are being used.
2012-09-19 19:56:04 -07:00
Moxie Marlinspike
edb466ae86 Fix for self-photo lookup bug on 2.3 2012-09-14 10:45:11 -07:00
Moxie Marlinspike
1881753a71 Take advantage of new ICS+ notification styles. 2012-09-12 21:08:13 -07:00
Moxie Marlinspike
095b73a079 Updated new message notification icon style for all versions of Android. 2012-09-12 20:48:04 -07:00
Moxie Marlinspike
110b436ea2 Fix for contact lookup on GB. 2012-09-12 19:27:29 -07:00
Moxie Marlinspike
c775dfa580 Logging for debugging 2012-09-11 18:48:41 -07:00
Moxie Marlinspike
c6ae07ee5c Turn avatar images in conversations into QuickContactBadge equivalents.
This requires a few changes to Recipient in order to make sure we
have a Contact URI at click time.  While we're at it, let's git rid
of the OldRecipientProvider, which was for pre-2.0 contact stuff
(no longer supported, woohoo!).
2012-09-11 18:23:19 -07:00
Moxie Marlinspike
3d3db421d3 Lint warning changes. 2012-09-09 16:10:46 -07:00
Moxie Marlinspike
7a7dba66ad Update passphrase caching notification strategy.
On platforms (API >= 11) that support receiving click events within
a notification, we change the notification format so that users
can "lock" TextSecure with a click.

For all platforms, we change the notification icon in the status
bar from a "lock" to an "unlock," to better reflect the situation.

This is all part of the master plan for eliminating the passphrase
timeout option.
2012-09-09 09:18:17 -07:00
Moxie Marlinspike
f39b8e5fc8 Fix up whitespace tagging and tag detection prompt.
1) Fix up the whitespace tagging so that it's a little more strict.

2) Don't display whitespace tags that we add to our own messages.

3) Make the tag detection prompt a little more visually pleasing.
2012-09-07 21:21:12 -07:00
Moxie Marlinspike
4c3b7cbe08 Extract TextSecure strings for i18n.
1) Change all instances which use concatenation to build strings
with variables in them to use string formatting instead.

2) Extract all string literals from layouts and menus into strings.xml

3) Extract all string literals from code into strings.xml
2012-09-07 21:19:37 -07:00
Moxie Marlinspike
faa3d2276e Fix for another NPE which should never happen but apparently does. 2012-08-07 19:09:16 -07:00
Moxie Marlinspike
b4e48f9dba Fix for NPE which should never happen, but apparently does. 2012-08-07 19:06:23 -07:00
Moxie Marlinspike
f4de6c8d84 Only show call button when we've got a conversation recipient. 2012-08-07 19:03:28 -07:00
Moxie Marlinspike
5fb7ae7ecf Fix for NPE during a secure session with no sender identity key. 2012-08-07 19:03:00 -07:00
Moxie Marlinspike
dda75006e4 Remove some logging that could result in an information leak. 2012-08-05 19:03:14 -07:00
Moxie Marlinspike
e45bc61624 Update import/export process for ICS+ 2012-08-05 13:12:51 -07:00
Moxie Marlinspike
8520cb558a Sanity check for system service restarts. 2012-08-05 12:41:31 -07:00
Moxie Marlinspike
7883d09573 Fix success/failure status on conversation item. 2012-08-03 17:34:09 -07:00
Moxie Marlinspike
cffedb09a1 Do migration in backgrounded service. 2012-08-02 20:23:41 -07:00
Moxie Marlinspike
45ae16e684 Secure conversation detection on compose. 2012-08-01 17:39:36 -07:00
Moxie Marlinspike
31d59dddef Remove key exchange indicator from list view, spruce up create passphrase dialog. 2012-07-31 17:02:50 -07:00
Moxie Marlinspike
bc8f26c591 Correctly initialize conversation after message sent. 2012-07-31 16:27:58 -07:00
Moxie Marlinspike
853e12693d Fix Auto/Save activities for GB. 2012-07-31 15:48:14 -07:00
Moxie Marlinspike
d991d65225 Fix key cache icon colors on GB. 2012-07-31 14:27:27 -07:00
Moxie Marlinspike
ef0a86398a Fix for dialogs on GB. 2012-07-31 14:18:14 -07:00
Moxie Marlinspike
edb286a44d Add search support for v11+ 2012-07-31 13:53:00 -07:00
Moxie Marlinspike
0f1fda23a5 Update notification icons. 2012-07-31 13:17:06 -07:00
Moxie Marlinspike
e641a28cf5 New lock icons. 2012-07-30 17:51:31 -07:00
Moxie Marlinspike
1ff278dc81 Update the key exchange icon look. 2012-07-30 17:15:49 -07:00
Moxie Marlinspike
7cab26750b Switch to Contextual Action Bar goodness. 2012-07-26 16:21:45 -07:00
Moxie Marlinspike
a66cc636c6 Fix review identity activity UI. 2012-07-23 21:43:55 -07:00
Moxie Marlinspike
a1b077c349 Fix view identity key QR code action. 2012-07-23 13:50:12 -07:00
Moxie Marlinspike
78998d0c93 Clean up key/identity verification Activites.
1) Get ride of the crazy button situation.
2) Actionbar-ify and abstract out the common actions.
3) Switch to full activities from dialog themes.
2012-07-23 13:42:29 -07:00
Moxie Marlinspike
8e3b08ebda Make the 'up' buttom on ConversationActivity work. 2012-07-20 22:25:57 -07:00
Moxie Marlinspike
863e1c6508 Fix the look of tabbed multi-contact selector.
1) Updated to ActionBar style.
2) Split out into fragments.
3) Switch to cursor loaders.
2012-07-20 22:23:25 -07:00
Moxie Marlinspike
a7cc47d259 Update conversation item style.
1) Don't print sender/recipient name in message body.
2) Do the split conversation icon view.
3) Adjust font sizes and colors.
2012-07-19 19:23:49 -07:00
Moxie Marlinspike
1ac1cec634 Update look for RecipientsPanel.
1) Make the "add contacts" graphic more holo-ific.
2) Adjust the graphic position on holo-themed devices.
2012-07-19 15:16:07 -07:00
Moxie Marlinspike
b377fe84df New design for Conversation Activity.
1) Move to Fragments for the list view.
2) Switch to CursorLoader from my jankey self-managed cursor.
3) Add session security logic to the ActionBar.
4) Fix colors to be less ugly.
2012-07-19 14:22:03 -07:00
Moxie Marlinspike
3d9475676f Move to a Fragment world.
1) Start breaking the UI out into Fragments.
2) Switch to Cursor loaders from managed cursors.
3) Switch to inflated menu resources.
4) Break out some basic functionality into helper classes.
2012-07-18 15:35:13 -07:00
Moxie Marlinspike
b93bb69c28 Restyle conversation list view.
1. New look for quick contact badges.
2. No more unread indicator, replace with bolded text.
3. Style message count with color rather than parens.
4. Remove "New Message" item, add as item in action bar instead.
2012-07-16 21:35:32 -07:00
Moxie Marlinspike
63250b33a8 Switch to QuickContactBadge. 2012-07-16 20:20:13 -07:00
Moxie Marlinspike
44c221c9f1 Remove non-themed theme madness. 2012-07-16 19:56:10 -07:00
Moxie Marlinspike
647c41bf66 Stop showing GPL as a weird EULA. 2012-07-16 19:50:34 -07:00
Moxie Marlinspike
a627a77077 Remove deprecated <2.2 caching functionality that breaks modern devices. 2012-07-16 19:49:37 -07:00
Moxie Marlinspike
306a360f14 Merge pull request #34 from cem-/master
Issue 17 - email pattern
2012-07-16 18:30:53 -07:00
Carl
dc967a8c93 Issue 17
Changed custom email pattern matching regex to android.util.Patterns.EMAIL_ADDRESS to accommodate valid email addresses the original pattern did not. (e.g. a@aaa.aa, a+aaa@aaa.aaa) This commit is to fix issue 17 (https://github.com/WhisperSystems/TextSecure/issues/17)
2012-07-13 13:23:19 -05:00
Andrew Robbie
4ea9348a97 s/exoport/export 2012-02-19 18:13:19 +11:00
Moxie Marlinspike
6bd229b8a1 Disable best-effort memory cleaner for MasterSecrets.
The best-effort memory cleaning logic for MasterSecrets
is no longer accurate, since they are being passed through
both Binder calls as well as Intents, blurring whether an
activity is using a MasterSecret which is a reference to
shared memory in the KeyCachingService or not.
2011-12-21 01:36:50 -05:00
Moxie Marlinspike
8a6a1a5f03 Compare against existing Build.VERSION_CODES.
The 1.X Android versions don't have the 2.X VERSION_CODE
symbols, so comparing against them in order to make 1.6
choices will throw runtime exceptions.
2011-12-21 01:35:33 -05:00
Moxie Marlinspike
bbea3fe1b1 Initial Project Import 2011-12-20 10:20:44 -08:00