From 240b2a198448b5aea3e86fcb5f38df6441d3177b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20Kwiecie=C5=84?= Date: Thu, 20 Apr 2017 15:21:54 +0200 Subject: [PATCH] restored sample --- .../java/pl/aprilapps/switcher/sample/MainActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sample/src/main/java/pl/aprilapps/switcher/sample/MainActivity.java b/sample/src/main/java/pl/aprilapps/switcher/sample/MainActivity.java index 56fb30f..2b51e81 100644 --- a/sample/src/main/java/pl/aprilapps/switcher/sample/MainActivity.java +++ b/sample/src/main/java/pl/aprilapps/switcher/sample/MainActivity.java @@ -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(); @@ -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() { @Override public void onCompleted() {