Source:
<code>public void showView(View next, AnimationType from, boolean animateLastView) { switch (from) { case RIGHT: mInAnimation = AnimationUtils.loadAnimation(this, R.anim.push_left_in); mOutAnimation = AnimationUtils.loadAnimation(this, R.anim.push_left_out); break; case LEFT: mInAnimation = AnimationUtils.loadAnimation(this, R.anim.push_right_in); mOutAnimation = AnimationUtils.loadAnimation(this, R.anim.push_right_out); break; case FADE: mInAnimation = AnimationUtils.loadAnimation(this, R.anim.fade_in); mOutAnimation = AnimationUtils.loadAnimation(this, R.anim.fade_out); break; } if (mCurrentView != null) { if(animateLastView) { mCurrentView.startAnimation(mOutAnimation); } mViewPane.removeView(mCurrentView); } mInAnimation.setAnimationListener(this); RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT); mCurrentView = next; mViewPane.addView(mCurrentView, lp); mCurrentView.startAnimation(mInAnimation); if (mCurrentView instanceof ODKView) { ((ODKView) mCurrentView).setFocus(this); <START> String groupLabelText = ((ODKView) mCurrentView).getGroupLabel(); <END> FrameLayout header = (FrameLayout)mCurrentView.findViewById(R.id.form_entry_header); TextView groupLabel = ((TextView)header.findViewById(R.id.form_entry_group_label)); header.setVisibility(View.GONE); groupLabel.setVisibility(View.GONE); if(groupLabelText != "") { groupLabel.setText(groupLabelText); header.setVisibility(View.VISIBLE); groupLabel.setVisibility(View.VISIBLE); } } else { InputMethodManager inputManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.hideSoftInputFromWindow(mCurrentView.getWindowToken(), 0); } }</code><technical_language>try define a variable close usage (so line 1859). is a class level variable, top of class, contrary Clayton :p</technical_language>

Target:
public void showView(View next, AnimationType from, boolean animateLastView) { switch (from) { case RIGHT: mInAnimation = AnimationUtils.loadAnimation(this, R.anim.push_left_in); mOutAnimation = AnimationUtils.loadAnimation(this, R.anim.push_left_out); break; case LEFT: mInAnimation = AnimationUtils.loadAnimation(this, R.anim.push_right_in); mOutAnimation = AnimationUtils.loadAnimation(this, R.anim.push_right_out); break; case FADE: mInAnimation = AnimationUtils.loadAnimation(this, R.anim.fade_in); mOutAnimation = AnimationUtils.loadAnimation(this, R.anim.fade_out); break; } if (mCurrentView != null) { if(animateLastView) { mCurrentView.startAnimation(mOutAnimation); } mViewPane.removeView(mCurrentView); } mInAnimation.setAnimationListener(this); RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT); mCurrentView = next; mViewPane.addView(mCurrentView, lp); mCurrentView.startAnimation(mInAnimation); if (mCurrentView instanceof ODKView) { ((ODKView) mCurrentView).setFocus(this); FrameLayout header = (FrameLayout)mCurrentView.findViewById(R.id.form_entry_header); TextView groupLabel = ((TextView)header.findViewById(R.id.form_entry_group_label)); header.setVisibility(View.GONE); groupLabel.setVisibility(View.GONE); String groupLabelText = ((ODKView) mCurrentView).getGroupLabel(); if(!"".equals(groupLabelText)) { groupLabel.setText(groupLabelText); header.setVisibility(View.VISIBLE); groupLabel.setVisibility(View.VISIBLE); } } else { InputMethodManager inputManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.hideSoftInputFromWindow(mCurrentView.getWindowToken(), 0); } }