For both now
This commit is contained in:
parent
7169e0fa49
commit
6c2cdc69e2
|
@ -11,5 +11,9 @@ import java.security.Security;
|
|||
*/
|
||||
|
||||
public class BaseActivity extends AppCompatActivity {
|
||||
static { Security.addProvider(Conscrypt.newProvider()); }
|
||||
static {
|
||||
Security.insertProviderAt(Conscrypt.newProvider("GmsCore_OpenSSL"), 2);
|
||||
Security.addProvider(Conscrypt.newProvider());
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -77,7 +77,10 @@ public class HomeTimelineSyncJob extends Job implements OnRetrieveHomeTimelineSe
|
|||
return Result.SUCCESS;
|
||||
}
|
||||
|
||||
static { Security.addProvider(Conscrypt.newProvider());}
|
||||
static {
|
||||
Security.insertProviderAt(Conscrypt.newProvider("GmsCore_OpenSSL"), 2);
|
||||
Security.addProvider(Conscrypt.newProvider());
|
||||
}
|
||||
public static int schedule(boolean updateCurrent){
|
||||
|
||||
Set<JobRequest> jobRequests = JobManager.instance().getAllJobRequestsForTag(HOME_TIMELINE);
|
||||
|
|
|
@ -68,7 +68,10 @@ import static fr.gouv.etalab.mastodon.helper.Helper.notify_user;
|
|||
public class NotificationsSyncJob extends Job implements OnRetrieveNotificationsInterface{
|
||||
|
||||
static final String NOTIFICATION_REFRESH = "job_notification";
|
||||
static { Security.addProvider(Conscrypt.newProvider());}
|
||||
static {
|
||||
Security.insertProviderAt(Conscrypt.newProvider("GmsCore_OpenSSL"), 2);
|
||||
Security.addProvider(Conscrypt.newProvider());
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
|
|
|
@ -44,7 +44,10 @@ import fr.gouv.etalab.mastodon.sqlite.StatusStoredDAO;
|
|||
public class ScheduledTootsSyncJob extends Job {
|
||||
|
||||
public static final String SCHEDULED_TOOT = "job_scheduled_toot";
|
||||
static { Security.addProvider(Conscrypt.newProvider());}
|
||||
static {
|
||||
Security.insertProviderAt(Conscrypt.newProvider("GmsCore_OpenSSL"), 2);
|
||||
Security.addProvider(Conscrypt.newProvider());
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue