Commit Graph

1041 Commits (78289ded8fbd7088404573747233b1a016753076)

Author SHA1 Message Date
Moxie Marlinspike 68c29f283d Fall back to user-configured MMS params on SecurityException 12 years ago
Moxie Marlinspike abd7fc67da Fix NoClassDefFound errors on 2.2 devices. 12 years ago
Moxie Marlinspike b805c4db4e Fix for NPE on empty MMS PDU 12 years ago
Moxie Marlinspike 61d4192798 Refactor ContactPhotoFactory to handle changing local contact URIs. 12 years ago
Moxie Marlinspike 9b45e6068b Better asynchronous loading for Recipient information.
1) Switch back from AsyncTasks to an Executor and Futures.

2) Make the Executor operate LIFO.

3) Make the Executor thread a BACKGROUND_PRIORITY thread.
13 years ago
Moxie Marlinspike 9939830551 Refactor recipient access.
1) Refactor recipient class to support asynchronous loading operations.

2) Refactor recipient factory to simplify recipient access.

3) Consoliate everything into one recipient provider that is capable of
doing async lookups and intelligent caching.
13 years ago
Moxie Marlinspike f685cb550b Collapse NewRecipientProvider into RecipientProvider 13 years ago
Moxie Marlinspike 54fad30f9f Add ability to specify APN information in TextSecure settings.
1) Add configuration options for APN information in TextSecure settings.

2) Fall back to TextSecure settings if system settings are unavailable
while sending/receiving MMS.

3) Catch sqlite exception when devices randomly don't have the same
APN db or table structure.
13 years ago
Moxie Marlinspike 84a29df1ee Switch passphrase creation to async task. 13 years ago
Moxie Marlinspike 0e5ff9bdac Fix for occasional NPE 13 years ago
Moxie Marlinspike 575341704e Proper recipient bracket parsing 13 years ago
Moxie Marlinspike fa5e993191 Weird NPE 13 years ago
Moxie Marlinspike c83d57aa59 Merge pull request #94 from thoughtbox/Change-default-behaviour-when-receiving-"flash"-messages
Changes default behaviour for CLASS 0 messages
13 years ago
Tor Houghton 4ced1a0f18 Changes default behaviour for CLASS 0 messages
"Flash" messages are no longer handled by TS.

Sorry for the multiple pulls -- previous request had a cut+paste typo.
13 years ago
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.
13 years ago
Moxie Marlinspike 80a6c65790 We need READ_CALL_LOG if targetSDK is > 15. What a drag. 13 years ago
Moxie Marlinspike c66e221598 Signal that we don't want screenshots of unlocked activities. 13 years ago
Moxie Marlinspike 47c83d2747 When retrieving MMS, continue on with best-effort in absence of APNs. 13 years ago
Tor Houghton e8ffce53fe Fix reference to "forward" prefix
Code was erroneously referencing the string ID, rather than the
contents of the string (sorry!).
13 years ago
Moxie Marlinspike acffda1ab8 formatting 13 years ago
Moxie Marlinspike 6b18f66e19 disambiguate send 13 years ago
Moxie Marlinspike f26dbb2f34 disambiguate 13 years ago
Moxie Marlinspike 93c0fffc31 We need to force plaintext on key exchange messages. 13 years ago
Moxie Marlinspike c5ed820590 Create DB indexes for optimized queries. 13 years ago
Moxie Marlinspike 3a9908b40d formatting 13 years ago
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.
13 years ago
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.
13 years ago
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.
13 years ago
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.
13 years ago
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.
13 years ago
Moxie Marlinspike 2c82e7b343 Updated PDU processing code.
The code we use for PDU parsing and composing comes straight from
the Android framework, but it's an internal API, so we duplicate
the code here.  These changes represent updates that have been
made as of the JB release.
13 years ago
Tor Houghton 73bde7accd Localisation change
Localisation of the message prefix when forwarding a message (in
Norwegian, this would be "VS:" for instance).
13 years ago
Moxie Marlinspike 82f8ba3584 Removed tabs 13 years ago
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.
13 years ago
Moxie Marlinspike 3cf77b6fd0 Display contact icons correctly in MMS ConversationItems 13 years ago
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.
13 years ago
Moxie Marlinspike f743af32de javac wants us to be more explicit 13 years ago
Tor Houghton 46fb1b1db9 Fix for Sparebank1 OTP application
Now in its own branch. Dear $deity, hope this is correct.
13 years ago
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.
13 years ago
thoughtbox 999ec7606c Update src/org/thoughtcrime/securesms/ConversationListFragment.java
Fix for removing notification when deleting an unread thread.
13 years ago
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.
13 years ago
Moxie Marlinspike edb466ae86 Fix for self-photo lookup bug on 2.3 13 years ago
Moxie Marlinspike 1881753a71 Take advantage of new ICS+ notification styles. 13 years ago
Moxie Marlinspike 095b73a079 Updated new message notification icon style for all versions of Android. 13 years ago
Moxie Marlinspike 110b436ea2 Fix for contact lookup on GB. 13 years ago
Moxie Marlinspike c775dfa580 Logging for debugging 13 years ago
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!).
13 years ago
Moxie Marlinspike 3d3db421d3 Lint warning changes. 13 years ago
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.
13 years ago
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.
13 years ago
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
13 years ago
Moxie Marlinspike faa3d2276e Fix for another NPE which should never happen but apparently does. 13 years ago
Moxie Marlinspike b4e48f9dba Fix for NPE which should never happen, but apparently does. 13 years ago
Moxie Marlinspike f4de6c8d84 Only show call button when we've got a conversation recipient. 13 years ago
Moxie Marlinspike 5fb7ae7ecf Fix for NPE during a secure session with no sender identity key. 13 years ago
Moxie Marlinspike dda75006e4 Remove some logging that could result in an information leak. 13 years ago
Moxie Marlinspike e45bc61624 Update import/export process for ICS+ 13 years ago
Moxie Marlinspike 8520cb558a Sanity check for system service restarts. 13 years ago
Moxie Marlinspike 7883d09573 Fix success/failure status on conversation item. 13 years ago
Moxie Marlinspike cffedb09a1 Do migration in backgrounded service. 13 years ago
Moxie Marlinspike 45ae16e684 Secure conversation detection on compose. 13 years ago
Moxie Marlinspike 31d59dddef Remove key exchange indicator from list view, spruce up create passphrase dialog. 13 years ago
Moxie Marlinspike bc8f26c591 Correctly initialize conversation after message sent. 13 years ago
Moxie Marlinspike 853e12693d Fix Auto/Save activities for GB. 13 years ago
Moxie Marlinspike d991d65225 Fix key cache icon colors on GB. 13 years ago
Moxie Marlinspike ef0a86398a Fix for dialogs on GB. 13 years ago
Moxie Marlinspike edb286a44d Add search support for v11+ 13 years ago
Moxie Marlinspike 0f1fda23a5 Update notification icons. 13 years ago
Moxie Marlinspike e641a28cf5 New lock icons. 13 years ago
Moxie Marlinspike 1ff278dc81 Update the key exchange icon look. 13 years ago
Moxie Marlinspike 7cab26750b Switch to Contextual Action Bar goodness. 13 years ago
Moxie Marlinspike a66cc636c6 Fix review identity activity UI. 13 years ago
Moxie Marlinspike a1b077c349 Fix view identity key QR code action. 13 years ago
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.
13 years ago
Moxie Marlinspike 8e3b08ebda Make the 'up' buttom on ConversationActivity work. 13 years ago
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.
13 years ago
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.
13 years ago
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.
13 years ago
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.
13 years ago
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.
13 years ago
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.
13 years ago
Moxie Marlinspike 63250b33a8 Switch to QuickContactBadge. 13 years ago
Moxie Marlinspike 44c221c9f1 Remove non-themed theme madness. 13 years ago
Moxie Marlinspike 647c41bf66 Stop showing GPL as a weird EULA. 13 years ago
Moxie Marlinspike a627a77077 Remove deprecated <2.2 caching functionality that breaks modern devices. 13 years ago
Moxie Marlinspike 306a360f14 Merge pull request #34 from cem-/master
Issue 17 - email pattern
13 years ago
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)
13 years ago
Andrew Robbie 4ea9348a97 s/exoport/export 13 years ago
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.
14 years ago
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.
14 years ago
Moxie Marlinspike bbea3fe1b1 Initial Project Import 14 years ago