Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Aug 26, 2014
1 parent 9e592fd commit d262f8d
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.widget.TextView;

import org.wordpress.android.util.NetworkUtils;
import org.wordpress.android.util.R;
Expand All @@ -18,10 +16,8 @@
public class PullToRefreshHeaderTransformer extends DefaultHeaderTransformer {
private View mHeaderView;
private ViewGroup mContentLayout;
private TextView mTextView;
private long mAnimationDuration;
private boolean mShowProgressBarOnly;
private Animation mHeaderOutAnimation;
private OnTopScrollChangedListener mOnTopScrollChangedListener;
private boolean mIsNetworkRefreshMode;
private Context mContext;
Expand All @@ -48,7 +44,6 @@ public void onViewCreated(Activity activity, View headerView) {
mContext = activity.getBaseContext();
mHeaderView = headerView;
mContentLayout = (ViewGroup) headerView.findViewById(R.id.ptr_content);
mTextView = (TextView) headerView.findViewById(R.id.ptr_text);
mAnimationDuration = activity.getResources().getInteger(android.R.integer.config_shortAnimTime);
}

Expand All @@ -68,10 +63,10 @@ public boolean showHeaderView() {
mContentLayout.setVisibility(View.VISIBLE);
if (changeVis) {
if (isNetworkAvailableOrNotChecked()) {
mTextView.setText(mContext.getText(R.string.pull_to_refresh_pull_label));
setPullText(mContext.getText(R.string.pull_to_refresh_pull_label));
} else {
// Network mode enabled and network not available: show a different PTR label
mTextView.setText(mContext.getText(R.string.pull_to_refresh_pull_no_network_label));
setPullText(mContext.getText(R.string.pull_to_refresh_pull_no_network_label));
}
mHeaderView.setVisibility(View.VISIBLE);
AnimatorSet animSet = new AnimatorSet();
Expand All @@ -89,11 +84,6 @@ public boolean showHeaderView() {
return changeVis;
}

@Override
public void onPulled(float percentagePulled) {
super.onPulled(percentagePulled);
}

private void resetContentLayoutAlpha() {
Compat.setAlpha(mContentLayout, 1f);
}
Expand Down

0 comments on commit d262f8d

Please sign in to comment.