Skip to content

Commit

Permalink
Apply custom HTTP coniguration during CC app initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
avazirna committed Sep 18, 2023
1 parent 6a720db commit 8131c5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/org/commcare/CommCareApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ public void onCreate() {
// improperly, so the second https request in a short time period will flop)
System.setProperty("http.keepAlive", "false");

customiseOkHttp();

Thread.setDefaultUncaughtExceptionHandler(new CommCareExceptionHandler(Thread.getDefaultUncaughtExceptionHandler(), this));

loadSqliteLibs();
Expand Down Expand Up @@ -537,6 +535,10 @@ public void initializeAppResources(CommCareApp app) {
FirebaseAnalyticsUtil.reportCorruptAppState();
}
app.setAppResourceState(resourceState);

// This is part of the CommCare app initialization because it needs to be applied during
// app initialization, update and when switching the seated app
customiseOkHttp();
}

/**
Expand Down

0 comments on commit 8131c5c

Please sign in to comment.