Before Width: | Height: | Size: 523 KiB After Width: | Height: | Size: 337 KiB |
Before Width: | Height: | Size: 818 KiB After Width: | Height: | Size: 812 KiB |
Before Width: | Height: | Size: 524 KiB After Width: | Height: | Size: 610 KiB |
Before Width: | Height: | Size: 959 KiB After Width: | Height: | Size: 694 KiB |
Before Width: | Height: | Size: 938 KiB After Width: | Height: | Size: 873 KiB |
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 2.0 MiB |
Before Width: | Height: | Size: 691 KiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 741 KiB After Width: | Height: | Size: 482 KiB |
@ -6,6 +6,8 @@ import android.os.AsyncTask;
|
|||||||
import android.support.annotation.NonNull;
|
import android.support.annotation.NonNull;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
|
import com.bumptech.glide.load.engine.DiskCacheStrategy;
|
||||||
|
|
||||||
import org.thoughtcrime.securesms.components.emoji.EmojiPageModel;
|
import org.thoughtcrime.securesms.components.emoji.EmojiPageModel;
|
||||||
import org.thoughtcrime.securesms.mms.GlideApp;
|
import org.thoughtcrime.securesms.mms.GlideApp;
|
||||||
import org.thoughtcrime.securesms.util.ListenableFutureTask;
|
import org.thoughtcrime.securesms.util.ListenableFutureTask;
|
||||||
@ -72,6 +74,8 @@ public class EmojiPageBitmap {
|
|||||||
Bitmap originalBitmap = GlideApp.with(context.getApplicationContext())
|
Bitmap originalBitmap = GlideApp.with(context.getApplicationContext())
|
||||||
.asBitmap()
|
.asBitmap()
|
||||||
.load("file:///android_asset/" + model.getSprite())
|
.load("file:///android_asset/" + model.getSprite())
|
||||||
|
.skipMemoryCache(true)
|
||||||
|
.diskCacheStrategy(DiskCacheStrategy.NONE)
|
||||||
.submit()
|
.submit()
|
||||||
.get();
|
.get();
|
||||||
|
|
||||||
|