Commit Graph

3851 Commits (638012f3d08089ee86209eb8e22621458a88d65f)
 

Author SHA1 Message Date
Greyson Parrelli 638012f3d0 Bump version to 4.29.6 6 years ago
Greyson Parrelli bf452dfa92 Slightly shorten time before we show a foreground notification for pushes.
There's some ANRs, not many, that are likely caused by us riding the
5-second ANR timeout a little too closely. Giving us a little buffer to
see if that helps.
6 years ago
Greyson Parrelli 2b14c98eb0 Do not call bluetooth state listener after service is destroyed. 6 years ago
Greyson Parrelli f164ac90db Disallow punctuation in icon initials. 6 years ago
Greyson Parrelli 14abbb1bbb Bump version to 4.29.5 6 years ago
Greyson Parrelli 91db26437d Fix camera scaling issues on some phones.
Some phones, notably the Pixel 3, had some problems with scaling after
taking photos. This fixes it by using the takePicture API instead of
pulling the bitmap from the TextureView.

Fixes #8292
6 years ago
Greyson Parrelli 76054a9e33 Ignore events after BluetoothStateManager is destroyed.
Fixes crash.
6 years ago
Greyson Parrelli ae9c53bdf8 Ensure jobs have a Context during onAdded().
Fixes a crash.
6 years ago
Greyson Parrelli 0dd7b39bb1 Fix recipient prefrence display problem on Android P.
Android P's new ringtone selector is a whole new activity that can cause
RecipientPreferenceActivity to go through the full onCreate() flow after
the ringtone selection. This could cause a race between setting the
preference and reading the preference from the notification channel.
Just threw them on a serial executor to guarantee ordering.
6 years ago
Greyson Parrelli 4a0ea0c51c Handle contexts more consistently in RecipientPreferences.
Fixes a crash that was happening on the Pixel 3.
6 years ago
Greyson Parrelli 668e8dee5d Catch more camera exceptions.
Some devices will simply fail to open the camera with a runtime
exception. In this case, all we can do is catch it and report the error.
6 years ago
Greyson Parrelli 8ec3cf6a43 Bump version to 4.29.4 6 years ago
Greyson Parrelli a287408a7a Only start the screen lock timeout when the app is backgrounded. 6 years ago
Greyson Parrelli 78124ef224 Bump version to 4.29.3 6 years ago
Greyson Parrelli 45e0bb281f Turn MessageRetrievalService into IncomingMessageObserver.
Due to an Android P bug, we basically need to stop calling
startService() in onResume()/onPause(). That means I had to turn
MessageRetrieval service into a singlton instead of a service. I also
moved the offending KeyCachingService calls into static methods that
didn't have to start the service.
6 years ago
Greyson Parrelli 7a6d863ff7 Bump version to 4.29.2 6 years ago
Greyson Parrelli feb9e1d513 Post startService() in onPause() as a possible fix to an Android P bug.
We already did it for onResume(), and while it fixed the crash there,
the crash just moved to onPause(). Let's see if the same magic works.
6 years ago
Greyson Parrelli 1a5c1a4b42 Bump version to 4.29.1 6 years ago
Greyson Parrelli e41ed92f49 Updated language translations. 6 years ago
Greyson Parrelli 7e485b8095 Post startService() in onResume() as a possible fix to an Android P bug.
Got confirmation that the crash we're seeing is a bug, and this might be
a possible workaround.
6 years ago
Greyson Parrelli 92773b1a12 Update delivery icon tint in conversation list. 6 years ago
Greyson Parrelli 7cadb0d35a Properly set the document download icon tint. 6 years ago
Greyson Parrelli e1f572e1f4 Update GCM foreground notification icon.
Using the default Signal icon can confuse people into thinking they're
message notifications.
6 years ago
Greyson Parrelli ead323c1af Don't unnecessarily stack GCM message processing.
If we already have two active processing GCM messages, there's no
benefit to a third. In fact, enqueuing additional ones will likely only
end up showing the foreground notification unnecessariliy.
6 years ago
Greyson Parrelli 20c059280c Refactor OrderEnforcer. 6 years ago
Greyson Parrelli 50eb8f2322 Bump version to 4.29.0 6 years ago
Greyson Parrelli 15f418f2cc Updated language translations. 6 years ago
Greyson Parrelli b133546ca6 Bump targetSdkVersion to 26. 6 years ago
Greyson Parrelli 5219d79e27 Remove unnecessary start of KeyCachingService. 6 years ago
Greyson Parrelli 89f97f57cb Update our boot receiver to schedule a message pull.
Previously we were starting a background service, which isn't allowed
for targetSdk 26. This will do the same thing but at a time decided by
the system.
6 years ago
Greyson Parrelli 4c63428b71 Ensure GenericForegroundService is started with startForegroundService.
If we don't, we run the risk of the app crashing if the service is
started in the background.
6 years ago
Greyson Parrelli 704715de8f Fix message details delivery status icon tint (again). 6 years ago
Greyson Parrelli 0d48f10806 Fix issue where a Job had null JobParameters. 6 years ago
Greyson Parrelli 275ca9e3ba Remove the ability to set a color for a group.
No longer applicable given that we're adding back per-person colors in
groups.
6 years ago
Greyson Parrelli 710fa4a6f0 Switch the conversation color back to incoming messages. 6 years ago
Greyson Parrelli b1d653a230 Bump version to 4.28.1 6 years ago
Greyson Parrelli 1b736e9e04 Ensure notifications are processed after receiving GCM message.
It's unreliable to run these tasks on WorkManager, as there's no
scheduling guarantees.
6 years ago
Greyson Parrelli 1c197ad93d Reset attachment transfer state if auto-download requirements are not met. 6 years ago
Greyson Parrelli a1ba5003d3 Fix some dark theme color consistency issues.
Fixes #8253
6 years ago
Greyson Parrelli f26c6f890f Fix non-contact icon in recipient preferences being too small.
Relates to #8252
6 years ago
Greyson Parrelli eb11d5ceda Make avatar color in toolbar match conversation color.
Relates to #8252
6 years ago
Greyson Parrelli 43ebcfdee5 Added more contrast to shared contact button color in dark theme.
Relates to #8252
6 years ago
Greyson Parrelli d9272c3b33 Fix message details delivery status icon tint.
Fixes #8251
6 years ago
Greyson Parrelli 1d7f7b6c38 Do not auto-assign Steel as a color for contacts/groups.
Should be reserved for non-contacts, but selectable in the color picker.

Fixes #8247
6 years ago
Greyson Parrelli 07d7af6e75 Initialize WorkManager ourself.
This gives us more control over when it happens, as well as lets us set
things like the debug level. Also let's us get rid of the synchronized
block we had in Application#onCreate().
6 years ago
Greyson Parrelli 4da1af9a7b Use the correct save icon in the ScribbleHud. 6 years ago
Greyson Parrelli 0840175d6f Remove shutter sound on camera capture.
This sound isn't supposed to play when you have notification sound off,
but apparently some Huawei phones will play it anyway. Until we can
figure out a better way to handle it, we're just removing it.
6 years ago
Greyson Parrelli b6e40ea812 Bump version to 4.28.0 6 years ago
Greyson Parrelli c81bc22943 Fix avatar location in a group conversation. 6 years ago
Greyson Parrelli 547b7a3c6f Migrate legacy color palette.
We don't store non-user-selected colors in the database. That means that
when we update the palette, we still have to hash based off of the legacy
palette when generating a color if we want to migrate to a
similar-looking color.

Unfortunately, because the new palette is smaller, some colors are
"overloaded", meaning that when we hash based off of the legacy palette,
some colors will be more/less common than others. To fix this, we simply
persist all current colors in the database, then switch our hashing list
to what we really want.
6 years ago