From ff676e0143aefae7e148920e0550e1e42ee586fa Mon Sep 17 00:00:00 2001 From: QuadFlask Date: Tue, 31 Jan 2017 17:05:44 +0900 Subject: [PATCH] Add onComplete when analyze done --- .../src/main/java/com/github/quadflask/smartcrop/SmartCrop.java | 1 + 1 file changed, 1 insertion(+) diff --git a/library/src/main/java/com/github/quadflask/smartcrop/SmartCrop.java b/library/src/main/java/com/github/quadflask/smartcrop/SmartCrop.java index 85489ea..8b8a15b 100644 --- a/library/src/main/java/com/github/quadflask/smartcrop/SmartCrop.java +++ b/library/src/main/java/com/github/quadflask/smartcrop/SmartCrop.java @@ -42,6 +42,7 @@ public static Observable analyzeWithObservable(final Options options @Override public void call(Subscriber subscriber) { subscriber.onNext(SmartCrop.analyze(options, input)); + subscriber.onCompleted(); } }); }