Fixes crashes
This commit is contained in:
parent
f14c7c1646
commit
7ddb9eee1e
Binary file not shown.
|
@ -19,15 +19,8 @@ import fr.gouv.etalab.mastodon.helper.Helper;
|
||||||
@SuppressLint("Registered")
|
@SuppressLint("Registered")
|
||||||
public class BaseActivity extends AppCompatActivity {
|
public class BaseActivity extends AppCompatActivity {
|
||||||
static {
|
static {
|
||||||
boolean isGmsCore_OpenSSL = false;
|
Security.insertProviderAt(Conscrypt.newProvider(), 2);
|
||||||
Provider[] providers = Security.getProviders();
|
|
||||||
for(Provider provider: providers){
|
|
||||||
if( provider.getName().equals("GmsCore_OpenSSL"))
|
|
||||||
isGmsCore_OpenSSL = true;
|
|
||||||
}
|
|
||||||
if( !isGmsCore_OpenSSL)
|
|
||||||
Security.addProvider(Security.getProvider("GmsCore_OpenSSL"));
|
|
||||||
Security.insertProviderAt(Conscrypt.newProvider("GmsCore_OpenSSL"), 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,15 +79,7 @@ public class HomeTimelineSyncJob extends Job implements OnRetrieveHomeTimelineSe
|
||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
boolean isGmsCore_OpenSSL = false;
|
Security.insertProviderAt(Conscrypt.newProvider(), 2);
|
||||||
Provider[] providers = Security.getProviders();
|
|
||||||
for(Provider provider: providers){
|
|
||||||
if( provider.getName().equals("GmsCore_OpenSSL"))
|
|
||||||
isGmsCore_OpenSSL = true;
|
|
||||||
}
|
|
||||||
if( !isGmsCore_OpenSSL)
|
|
||||||
Security.addProvider(Security.getProvider("GmsCore_OpenSSL"));
|
|
||||||
Security.insertProviderAt(Conscrypt.newProvider("GmsCore_OpenSSL"), 1);
|
|
||||||
}
|
}
|
||||||
public static int schedule(boolean updateCurrent){
|
public static int schedule(boolean updateCurrent){
|
||||||
|
|
||||||
|
|
|
@ -70,15 +70,7 @@ public class NotificationsSyncJob extends Job implements OnRetrieveNotifications
|
||||||
|
|
||||||
static final String NOTIFICATION_REFRESH = "job_notification";
|
static final String NOTIFICATION_REFRESH = "job_notification";
|
||||||
static {
|
static {
|
||||||
boolean isGmsCore_OpenSSL = false;
|
Security.insertProviderAt(Conscrypt.newProvider(), 2);
|
||||||
Provider[] providers = Security.getProviders();
|
|
||||||
for(Provider provider: providers){
|
|
||||||
if( provider.getName().equals("GmsCore_OpenSSL"))
|
|
||||||
isGmsCore_OpenSSL = true;
|
|
||||||
}
|
|
||||||
if( !isGmsCore_OpenSSL)
|
|
||||||
Security.addProvider(Security.getProvider("GmsCore_OpenSSL"));
|
|
||||||
Security.insertProviderAt(Conscrypt.newProvider("GmsCore_OpenSSL"), 1);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,15 +46,8 @@ public class ScheduledTootsSyncJob extends Job {
|
||||||
|
|
||||||
public static final String SCHEDULED_TOOT = "job_scheduled_toot";
|
public static final String SCHEDULED_TOOT = "job_scheduled_toot";
|
||||||
static {
|
static {
|
||||||
boolean isGmsCore_OpenSSL = false;
|
Security.insertProviderAt(Conscrypt.newProvider(), 2);
|
||||||
Provider[] providers = Security.getProviders();
|
|
||||||
for(Provider provider: providers){
|
|
||||||
if( provider.getName().equals("GmsCore_OpenSSL"))
|
|
||||||
isGmsCore_OpenSSL = true;
|
|
||||||
}
|
|
||||||
if( !isGmsCore_OpenSSL)
|
|
||||||
Security.addProvider(Security.getProvider("GmsCore_OpenSSL"));
|
|
||||||
Security.insertProviderAt(Conscrypt.newProvider("GmsCore_OpenSSL"), 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
|
|
Loading…
Reference in New Issue