GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: subscriber's OnCompleted cannot seem to ber called from observab… · pakoito/Android-RxJava@eeaf75f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app/src/main/java/com/morihacky/android/rxjava
    • SubjectDebounceSearchEmitterFragment.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎app/src/main/java/com/morihacky/android/rxjava/SubjectDebounceSearchEmitterFragment.java‎

Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/SubjectDebounceSearchEmitterFragment.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public void onError(Throwable e) {
9191
@Override
9292
public void onNext(String searchText) {
9393
_log(String.format("onNext You searched for %s", searchText));
94+
onCompleted();
9495
}
9596
};
9697
}
@@ -118,7 +119,7 @@ public void call(Subscriber<? super String> subscriber) {
118119

119120
Timber.d("----------- inside the search observable");
120121
subscriber.onNext(searchText);
121-
subscriber.onCompleted();
122+
// subscriber.onCompleted(); This seems to have no effect.
122123
}
123124
}).subscribeOn(Schedulers.io());
124125
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.