mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-25 15:46:39 +00:00
@@ -510,14 +510,12 @@ public class GroupCreateActivity extends PassphraseRequiredActionBarActivity {
|
||||
@Override
|
||||
protected Bitmap doInBackground(Void... voids) {
|
||||
if (avatarUri != null) {
|
||||
InputStream inputStream;
|
||||
try {
|
||||
inputStream = getApplicationContext().getContentResolver().openInputStream(avatarUri);
|
||||
avatarBmp = BitmapUtil.getScaledCircleCroppedBitmap(getApplicationContext(), avatarUri, AVATAR_SIZE);
|
||||
} catch (FileNotFoundException e) {
|
||||
Log.w(TAG, e);
|
||||
return null;
|
||||
}
|
||||
avatarBmp = BitmapUtil.getScaledCircleCroppedBitmap(BitmapFactory.decodeStream(inputStream), AVATAR_SIZE);
|
||||
}
|
||||
return avatarBmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user