chrisbanes/ActionBar-PullToRefresh — pull request #88 by sockeqwe (2013-08-19 13:05:31+00:00)
Title: Disable / enable header minimization

Hi, it would be great to enable or disable the header view minimization. So by disabling the minimization the header view will be hidden at the same time as the progress bar (after calling setRefreshComplete).
This is useful when you work with a transparent ActionBar, where the it looks strange when the header view gets minimized, while the progress bar is still visible.

Like the last time eclipse has formatted the code, so the diff is not clear.
So what I did is:
```java

...
private static final boolean DEFAULT_REFRESH_MINIMIZE = true;
...

public static class Options {
/**
* Enable or disable the header 'minimization' . Set this to false if
* you want that the header should never be minimized (as specified in
* {@link #refreshMinimizeDelay}). So the header will be hidden at the
* same time as the progress bar (after calling
* {@link PullToRefreshAttacher#setRefreshComplete()}
*/
public boolean refreshMinimize = DEFAULT_REFRESH_MINIMIZE;
}

...

private void startRefresh(View view, boolean fromTouch) {
// Update isRefreshing state
mIsRefreshing = true;

// Call OnRefreshListener if this call has originated from a touch event
if (fromTouch) {
OnRefreshListener listener = getRefreshListenerForView(view);
if (listener != null) {
listener.onRefreshStarted(view);
}
}

// Call Transformer
mHeaderTransformer.onRefreshStarted();

// Show Header View
showHeaderView();

// Post a delay runnable to minimize the refresh header
if (mRefreshMinimize)
mHandler.postDelayed(mRefreshMinimizeRunnable,
mRefreshMinimizeDelay);
}

```