|
|
@ -106,7 +106,6 @@ import dagger.hilt.EntryPoints;
|
|
|
|
import dagger.hilt.android.HiltAndroidApp;
|
|
|
|
import dagger.hilt.android.HiltAndroidApp;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlinx.coroutines.Job;
|
|
|
|
import kotlinx.coroutines.Job;
|
|
|
|
import network.loki.messenger.BuildConfig;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Will be called once when the TextSecure process is created.
|
|
|
|
* Will be called once when the TextSecure process is created.
|
|
|
@ -158,10 +157,6 @@ public class ApplicationContext extends Application implements DefaultLifecycleO
|
|
|
|
return (ApplicationContext) context.getApplicationContext();
|
|
|
|
return (ApplicationContext) context.getApplicationContext();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public TextSecurePreferences getPrefs() {
|
|
|
|
|
|
|
|
return textSecurePreferences;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public DatabaseComponent getDatabaseComponent() {
|
|
|
|
public DatabaseComponent getDatabaseComponent() {
|
|
|
|
return EntryPoints.get(getApplicationContext(), DatabaseComponent.class);
|
|
|
|
return EntryPoints.get(getApplicationContext(), DatabaseComponent.class);
|
|
|
|
}
|
|
|
|
}
|
|
|
|