mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-12 20:13:45 +02:00
Install provider
This commit is contained in:
26
app/src/play/java/eu/faircode/email/ApplicationSecure.java
Normal file
26
app/src/play/java/eu/faircode/email/ApplicationSecure.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package eu.faircode.email;
|
||||
|
||||
import android.content.Intent;
|
||||
|
||||
import com.google.android.gms.security.ProviderInstaller;
|
||||
|
||||
public class ApplicationSecure extends ApplicationEx implements ProviderInstaller.ProviderInstallListener {
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
Log.i("Security provider check");
|
||||
ProviderInstaller.installIfNeededAsync(this, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onProviderInstalled() {
|
||||
Log.i("Security provider installed");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onProviderInstallFailed(int errorCode, Intent recoveryIntent) {
|
||||
Log.i("Security provider install failed" +
|
||||
" errorCode=" + errorCode +
|
||||
" recoveryIntent=" + recoveryIntent);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user