mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Do not enlarge avatar if there is none (just a big letter in a circle)
This commit is contained in:
@@ -406,7 +406,10 @@ public class ProfileActivity extends PassphraseRequiredActionBarActivity
|
||||
title = dcContact.getDisplayName();
|
||||
}
|
||||
|
||||
profileImageUri = Uri.fromFile(new File(profileImagePath));
|
||||
File file = new File(profileImagePath);
|
||||
if (!file.exists()) return;
|
||||
|
||||
profileImageUri = Uri.fromFile(file);
|
||||
String type = "image/" + profileImagePath.substring(profileImagePath.lastIndexOf(".") +1);
|
||||
|
||||
Intent intent = new Intent(this, MediaPreviewActivity.class);
|
||||
|
||||
Reference in New Issue
Block a user