diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2019-06-24 18:42:45 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-06-24 18:42:45 +0000 |
| commit | e6930c4aa11efe1ee57cf5449d55c52880dc368e (patch) | |
| tree | 4d7428d17afe43cdab991162127a4ff45e17bc5f /core/java | |
| parent | 20a95a9029fbee41471e64b92ab9ffba404a855b (diff) | |
| parent | d93ed17d5eac1d7ca542ef7e5d771a123431d0fe (diff) | |
Merge "Fixed event flushing to handle when mDirectServiceInterface is not ready yet." into qt-r1-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/view/contentcapture/MainContentCaptureSession.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/core/java/android/view/contentcapture/MainContentCaptureSession.java b/core/java/android/view/contentcapture/MainContentCaptureSession.java index c5a5f7360321..cee79439d1b3 100644 --- a/core/java/android/view/contentcapture/MainContentCaptureSession.java +++ b/core/java/android/view/contentcapture/MainContentCaptureSession.java @@ -428,14 +428,16 @@ public final class MainContentCaptureSession extends ContentCaptureSession { } final int flushFrequencyMs; - if (reason == FLUSH_REASON_IDLE_TIMEOUT) { - flushFrequencyMs = mManager.mOptions.idleFlushingFrequencyMs; - } else if (reason == FLUSH_REASON_TEXT_CHANGE_TIMEOUT) { + if (reason == FLUSH_REASON_TEXT_CHANGE_TIMEOUT) { flushFrequencyMs = mManager.mOptions.textChangeFlushingFrequencyMs; } else { - Log.e(TAG, "handleScheduleFlush(" + getDebugState(reason) + "): not called with a " - + "timeout reason."); - return; + if (reason != FLUSH_REASON_IDLE_TIMEOUT) { + if (sDebug) { + Log.d(TAG, "handleScheduleFlush(" + getDebugState(reason) + "): not a timeout " + + "reason because mDirectServiceInterface is not ready yet"); + } + } + flushFrequencyMs = mManager.mOptions.idleFlushingFrequencyMs; } mNextFlush = System.currentTimeMillis() + flushFrequencyMs; |
