Skip to content

Commit

Permalink
MainService: save instance before emitting status event
Browse files Browse the repository at this point in the history
Closes #59
  • Loading branch information
bk138 committed Feb 19, 2022
1 parent 7a8c164 commit 25d53e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ public IBinder onBind(Intent intent) {
public void onCreate() {
Log.d(TAG, "onCreate");

mStatusEventStream.onNext(StatusEvent.STARTED);

instance = this;

mStatusEventStream.onNext(StatusEvent.STARTED);

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
/*
Create notification channel
Expand Down

0 comments on commit 25d53e9

Please sign in to comment.