Initialize WorkManager ourself.

This gives us more control over when it happens, as well as lets us set
things like the debug level. Also let's us get rid of the synchronized
block we had in Application#onCreate().
This commit is contained in:
Greyson Parrelli
2018-10-04 09:09:04 -07:00
parent 4da1af9a7b
commit 07d7af6e75
3 changed files with 25 additions and 29 deletions

View File

@@ -572,6 +572,12 @@
android:authorities="org.thoughtcrime.securesms.database.attachment"
android:exported="false" />
<provider
android:name="androidx.work.impl.WorkManagerInitializer"
android:authorities="${applicationId}.workmanager-init"
android:exported="false"
tools:node="remove" />
<receiver android:name=".service.BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>