Compare commits
2 commits
9a77824f79
...
8de0d86895
Author | SHA1 | Date | |
---|---|---|---|
8de0d86895 | |||
64a350d271 |
2 changed files with 8 additions and 0 deletions
|
@ -159,6 +159,8 @@ class ProfileDownloadFragment : BaseMaterialDialogFragment(),
|
|||
)
|
||||
|
||||
lifecycleScope.launch(Dispatchers.IO) {
|
||||
ensureEuiccChannelManager()
|
||||
|
||||
// Fetch remaining NVRAM
|
||||
val str = channel.lpa.euiccInfo2?.freeNvram?.also {
|
||||
freeNvram = it
|
||||
|
|
|
@ -34,6 +34,12 @@ class HttpInterfaceImpl: HttpInterface {
|
|||
|
||||
val conn = parsedUrl.openConnection() as HttpsURLConnection
|
||||
conn.connectTimeout = 2000
|
||||
|
||||
if (url.contains("handleNotification")) {
|
||||
conn.connectTimeout = 1000
|
||||
conn.readTimeout = 1000
|
||||
}
|
||||
|
||||
conn.sslSocketFactory = sslContext.socketFactory
|
||||
conn.requestMethod = "POST"
|
||||
conn.doInput = true
|
||||
|
|
Loading…
Add table
Reference in a new issue