reduce emoji memory consumption

Closes #3282
// FREEBIE
fork-5.53.8
Jake McGinty 2015-05-29 15:56:00 -07:00 zatwierdzone przez Moxie Marlinspike
rodzic ce610e0262
commit 05e45e92cf
7 zmienionych plików z 6 dodań i 5 usunięć

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 347 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 227 KiB

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 436 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 283 KiB

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 515 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 332 KiB

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 273 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 177 KiB

Plik binarny nie jest wyświetlany.

Przed

Szerokość:  |  Wysokość:  |  Rozmiar: 315 KiB

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 206 KiB

Wyświetl plik

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="emoji_drawer_size">36sp</dimen>
<dimen name="emoji_drawer_size">32sp</dimen>
<dimen name="min_emoji_drawer_height">200dp</dimen>
<dimen name="emoji_drawer_item_padding">3dp</dimen>
<dimen name="emoji_drawer_item_padding">5dp</dimen>
<dimen name="emoji_drawer_indicator_height">1.5dp</dimen>
<dimen name="emoji_drawer_left_right_padding">5dp</dimen>
<dimen name="conversation_item_date_text_size">12sp</dimen>

Wyświetl plik

@ -48,9 +48,9 @@ public class EmojiProvider {
public static final double EMOJI_FULL = 1.00;
public static final double EMOJI_SMALL = 0.50;
public static final int EMOJI_RAW_HEIGHT = 128;
public static final int EMOJI_RAW_WIDTH = 136;
public static final int EMOJI_VERT_PAD = 8;
public static final int EMOJI_RAW_HEIGHT = 96;
public static final int EMOJI_RAW_WIDTH = 102;
public static final int EMOJI_VERT_PAD = 6;
public static final int EMOJI_PER_ROW = 15;
private final Context context;
@ -264,6 +264,7 @@ public class EmojiProvider {
Log.w(TAG, ioe);
throw ioe;
} catch (BitmapDecodingException bde) {
Log.w(TAG, "page " + page + " failed.");
Log.w(TAG, bde);
throw new AssertionError("emoji sprite asset is corrupted or android decoding is broken");
}