Fix an issue with workmanager

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-11-22 18:02:25 +01:00
parent f14614988d
commit 811769c2ab
2 changed files with 3 additions and 3 deletions

View file

@ -17,8 +17,8 @@ android {
targetSdkVersion 28
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
versionCode 68
versionName "3.1.0beta5"
versionCode 69
versionName "3.1.0beta6"
flavorDimensions "default"
renderscriptTargetApi 19

View file

@ -135,7 +135,7 @@ public class NextcloudTalkApplication extends MultiDexApplication implements Lif
OneTimeWorkRequest capabilitiesUpdateWork = new OneTimeWorkRequest.Builder(CapabilitiesWorker.class).build();
OneTimeWorkRequest signalingSettingsWork = new OneTimeWorkRequest.Builder(SignalingSettingsJob.class).build();
WorkManager.initialize(getApplicationContext(), new Configuration.Builder().build());
//WorkManager.initialize(getApplicationContext(), new Configuration.Builder().build());
WorkManager.getInstance().enqueue(pushRegistrationWork);
WorkManager.getInstance().enqueue(accountRemovalWork);
WorkManager.getInstance().enqueue(capabilitiesUpdateWork);