Created
May 7, 2017 05:51
-
-
Save moltak/5605ad0d8cffd87c28c58d882cf1bd2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MainActivity.java 100 | |
private void subscribe() { | |
subscription = subject | |
.filter(i -> this.isCanBlow) | |
.filter(i -> { | |
Log.d("BLOW", String.valueOf(i)); | |
final int BASE_THRESHOLD = 60; | |
return i >= BASE_THRESHOLD * 3; // 이곳을 수정하시면 됩니다. | |
}) | |
.throttleFirst(3, TimeUnit.SECONDS) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe(i -> { | |
Log.d("BLOW", "Start a video."); | |
player.start(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment