INNER CODE UNIT · Java
onCreate
syncthing/syncthing-android · app/src/main/java/com/nutomic/syncthingandroid/SyncthingApp.java:16
public void onCreate() {
DynamicColors.applyToActivitiesIfAvailable(this);
super.onCreate();
DaggerDaggerComponent.builder()
.syncthingModule(new SyncthingModule(this))
.build()
.inject(this);
new Languages(this).setLanguage(this);
// The main point here is to use a VM policy without
// `detectFileUriExposure`, as that leads to exceptions when e.g.
// opening the ignores file. And it's enabled by default.
// We might want to disable `detectAll` and `penaltyLog` on release (non-RC) builds too.
StrictMode.VmPolicy policy = new StrictMode.VmPolicy.Builder()
.detectAll()