Allowing HTTP downloads
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/Theme.Amethyst"
|
android:theme="@style/Theme.Amethyst"
|
||||||
android:largeHeap="true"
|
android:largeHeap="true"
|
||||||
|
android:usesCleartextTraffic="true"
|
||||||
tools:targetApi="31">
|
tools:targetApi="31">
|
||||||
<activity
|
<activity
|
||||||
android:label="Amethyst"
|
android:label="Amethyst"
|
||||||
|
|||||||
@@ -174,13 +174,6 @@ class User(val pubkeyHex: String) {
|
|||||||
info = newUserInfo
|
info = newUserInfo
|
||||||
updatedMetadataAt = updateAt
|
updatedMetadataAt = updateAt
|
||||||
|
|
||||||
if (info.picture?.startsWith( "http://") == true) {
|
|
||||||
info.picture = info.picture?.replaceFirst("http://", "https://")
|
|
||||||
}
|
|
||||||
|
|
||||||
if (info.banner?.startsWith( "http://") == true) {
|
|
||||||
info.banner = info.banner?.replaceFirst("http://", "https://")
|
|
||||||
}
|
|
||||||
|
|
||||||
invalidateData()
|
invalidateData()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user