mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-27 20:09:11 +00:00
Make BlobProvider write to disk on a background thread.
Otherwise we hit some weird blocking issues with voice note recording.
This commit is contained in:
@@ -121,7 +121,7 @@ public class GiphyActivity extends PassphraseRequiredActionBarActivity
|
||||
return BlobProvider.getInstance()
|
||||
.forData(data)
|
||||
.withMimeType(MediaUtil.IMAGE_GIF)
|
||||
.createForSingleSessionOnDisk(GiphyActivity.this);
|
||||
.createForSingleSessionOnDisk(GiphyActivity.this, e -> Log.w(TAG, "Failed to write to disk.", e));
|
||||
} catch (InterruptedException | ExecutionException | IOException e) {
|
||||
Log.w(TAG, e);
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user