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