Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 1884dd0

Browse files
jainkuniyakunall17
authored andcommitted
fix: app crash on sending PM notification bouncer.
1 parent 04f789f commit 1884dd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/com/zulip/android/networking/GravatarAsyncFetchTask.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import com.zulip.android.activities.ZulipActivity;
1717
import com.zulip.android.models.Person;
18+
import com.zulip.android.util.UrlHelper;
1819
import com.zulip.android.util.ZLog;
1920

2021
import java.io.IOException;
@@ -47,7 +48,7 @@ public static URL sizedURL(Context context, String url, float dpSize) {
4748
float px = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
4849
dpSize, r.getDisplayMetrics());
4950
try {
50-
return new URL(url + "&s=" + px);
51+
return new URL(UrlHelper.addHost(url) + "&s=" + px);
5152
} catch (MalformedURLException e) {
5253
ZLog.logException(e);
5354
return null;

0 commit comments

Comments
 (0)