Skip to content

Commit

Permalink
restored sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacek Kwiecień committed Apr 20, 2017
1 parent e7ba414 commit 240b2a1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected void onCreate(Bundle savedInstanceState) {
.setErrorLabel((TextView) findViewById(R.id.errorLabel)) // TextView within your error member group that you want to change
.setProgressLabel((TextView) findViewById(R.id.progressLabel)) // TextView within your progress member group that you want to change
.addEmptyView(findViewById(R.id.emptyView)) //empty placeholder member
.setAnimDuration(600)
.setAnimDuration(400)
.setLogsEnabled(true)
.build();

Expand All @@ -55,11 +55,11 @@ protected void onCreate(Bundle savedInstanceState) {
}

public void onProgress() {
switcher.showProgressView();
switcher.showProgressViewImmediately();
Observable.just(new Object())
.subscribeOn(Schedulers.newThread())
.observeOn(AndroidSchedulers.mainThread())
.delaySubscription(300, TimeUnit.MILLISECONDS)
.delaySubscription(800, TimeUnit.MILLISECONDS)
.subscribe(new Subscriber<Object>() {
@Override
public void onCompleted() {
Expand Down

0 comments on commit 240b2a1

Please sign in to comment.