From b18557c04a207772b5eb9f9310816798b2944e6a Mon Sep 17 00:00:00 2001 From: "daniel.boehrs" Date: Fri, 8 May 2020 16:52:07 +0200 Subject: [PATCH] Update core + update background fetch logic --- .../deltachatcore/handlers/ContextCallHandler.java | 8 ++++---- example/android/gradle.properties | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/android/src/main/java/com/openxchange/deltachatcore/handlers/ContextCallHandler.java b/android/src/main/java/com/openxchange/deltachatcore/handlers/ContextCallHandler.java index aa33243..14c2c03 100644 --- a/android/src/main/java/com/openxchange/deltachatcore/handlers/ContextCallHandler.java +++ b/android/src/main/java/com/openxchange/deltachatcore/handlers/ContextCallHandler.java @@ -42,8 +42,6 @@ package com.openxchange.deltachatcore.handlers; -import android.util.Log; - import com.b44t.messenger.DcChat; import com.b44t.messenger.DcChatlist; import com.b44t.messenger.DcContact; @@ -996,8 +994,10 @@ private void setChatName(MethodCall methodCall, MethodChannel.Result result) { } private void interruptIdleForIncomingMessages(MethodChannel.Result result) { - dcContext.interruptImapIdle(); - dcContext.interruptMvboxIdle(); + dcContext.performImapJobs(); + dcContext.performImapFetch(); + dcContext.performMvboxJobs(); + dcContext.performMvboxFetch(); result.success(null); } diff --git a/example/android/gradle.properties b/example/android/gradle.properties index a673820..94adc3a 100644 --- a/example/android/gradle.properties +++ b/example/android/gradle.properties @@ -1,4 +1,3 @@ org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true -android.enableR8=true