Joe Steele
e4d26b8c75
Remove code for unsupported API levels
...
An assortment of miscellaneous changes, each usually limited in scope to a
single file.
2014-08-19 17:17:55 -04:00
Danny Baumann
b500047e42
Fix contact picture color generation.
...
Make sure to return different colors for senders with different name,
but the same mail address (e.g. mails sent by certain issue tracking
systems).
2013-11-11 13:31:58 +01:00
cketti
1aca9eb22c
ContactPictureLoader code cleanup
2013-10-03 21:21:54 +02:00
cketti
bea6ba6881
Fix JavaDoc to match the changes in ContactPictureLoader
2013-10-01 01:53:21 +02:00
Danny Baumann
8777441d92
Use address object as contact picture instead of email address only.
...
Fixes assignment problems for emails sent by some issue tracking
systems, which send out mails with a fixed mail address on behalf of
different people.
2013-09-27 08:53:14 +02:00
Danny Baumann
890e0e22e3
Some assorted warning fixes.
2013-09-25 15:20:43 +02:00
Danny Baumann
d6d22a82bc
Fix build with latest SDK tools.
2013-09-25 14:54:27 +02:00
Danny Baumann
aa798fad85
Fix caching of fallback contact icons.
...
The cache key must be consistent with how calcUnknownContactLetter()
works, otherwise one gets the same fallback icon for different senders.
2013-09-25 14:52:59 +02:00
cketti
9a385146c4
Replace tabs with spaces
2013-08-21 13:23:52 +02:00
cketti
bd3bd861c5
Optimize code to extract the character to display in the fallback contact picture
2013-08-21 13:08:05 +02:00
cketti
ce56475a4f
Avoid race condition that can lead to a NullPointerException
2013-08-21 12:33:27 +02:00
cketti
20fcd6f63d
Add setting to toggle colored background of fallback contact pictures
2013-08-16 18:43:00 +02:00
cketti
3064d8ab31
Code style and documentation cleanup
2013-08-16 01:49:26 +02:00
Jesse Vincent
2ba84bceaa
Merge pull request #353 from sfuhrm/gmail-style-user-pics
...
Gmail style user pics, 2nd try
* sfuhrm/gmail-style-user-pics:
Changed the fallback char from 'K' to '?'. The riddler was here ;).
Using Android proposed colors as contact color palette now: http://developer.android.com/design/style/color.html
Fixed NPE found by blackbox87 ... thanks pal!
Added more finer characters as proposed by cketti
Caching also the calculated anonymous bitmap as proposed by maniac103. This removes a lot of code for special handling unknown contacts.
Bugfix for negative modulo result indexing the palette array
Changed hash based color calc to a hash indexed palette as discussed in the pull request.
GMail-app-style generated colorful one-letter contact pictures for pictureless contacts
Conflicts:
src/com/fsck/k9/activity/misc/ContactPictureLoader.java
src/com/fsck/k9/fragment/MessageListFragment.java
2013-07-30 22:00:19 -04:00
Stephan Fuhrmann
c30af244cf
Changed the fallback char from 'K' to '?'. The riddler was here ;).
2013-07-30 21:27:52 +02:00
Stephan Fuhrmann
ea5905861a
Using Android proposed colors as contact color palette now: http://developer.android.com/design/style/color.html
2013-07-30 21:27:52 +02:00
Stephan Fuhrmann
6af02c4c13
Added more finer characters as proposed by cketti
2013-07-30 21:27:52 +02:00
Stephan Fuhrmann
df5766ba3a
Caching also the calculated anonymous bitmap as proposed by maniac103. This removes a lot of code for special handling unknown contacts.
2013-07-30 21:27:52 +02:00
Stephan Fuhrmann
d45c8b053b
Bugfix for negative modulo result indexing the palette array
2013-07-30 21:27:52 +02:00
Stephan Fuhrmann
64212072c0
Changed hash based color calc to a hash indexed palette as discussed in the pull request.
2013-07-30 21:27:52 +02:00
Stephan Fuhrmann
16f6d85ea2
GMail-app-style generated colorful one-letter contact pictures for pictureless contacts
2013-07-21 14:34:45 -04:00
Stephan Fuhrmann
3feaeb6903
GMail-app-style generated colorful one-letter contact pictures for pictureless contacts
2013-07-21 16:58:38 +02:00
cketti
9118097dcb
Avoid NullPointerException when decoding contact pictures
2013-03-19 02:59:05 +01:00
cketti
25c452420d
Resize contact images to display size
...
Display size was changed in 20d229c91b
2013-02-13 19:43:07 +01:00
cketti
b25dfb802d
Resize the contact picture bitmaps to the display size
2013-02-08 18:04:38 +01:00
cketti
04ce0a9d3f
Add contact pictures to message list
2013-02-08 15:37:27 +01:00