1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-28 04:02:19 -05:00

make the 'should we show animations' boolena actually 'showAnimations'

instead of isAnimations.
This commit is contained in:
Jesse Vincent 2010-07-11 15:30:40 +00:00
parent 0c7d4825cc
commit b3e6844e44
3 changed files with 10 additions and 10 deletions

View File

@ -502,7 +502,7 @@ public class K9 extends Application
mStartIntegratedInbox = startIntegratedInbox; mStartIntegratedInbox = startIntegratedInbox;
} }
public static boolean isAnimations() public static boolean showAnimations()
{ {
return mAnimations; return mAnimations;
} }

View File

@ -249,13 +249,13 @@ public class MessageView extends K9Activity implements OnClickListener
case KeyEvent.KEYCODE_J: case KeyEvent.KEYCODE_J:
case KeyEvent.KEYCODE_P: case KeyEvent.KEYCODE_P:
{ {
onPrevious(K9.isAnimations()); onPrevious(K9.showAnimations());
return true; return true;
} }
case KeyEvent.KEYCODE_N: case KeyEvent.KEYCODE_N:
case KeyEvent.KEYCODE_K: case KeyEvent.KEYCODE_K:
{ {
onNext(K9.isAnimations()); onNext(K9.showAnimations());
return true; return true;
} }
case KeyEvent.KEYCODE_Z: case KeyEvent.KEYCODE_Z:
@ -1092,19 +1092,19 @@ public class MessageView extends K9Activity implements OnClickListener
if (mLastDirection == NEXT && mNextMessage != null) if (mLastDirection == NEXT && mNextMessage != null)
{ {
onNext(K9.isAnimations()); onNext(K9.showAnimations());
} }
else if (mLastDirection == PREVIOUS && mPreviousMessage != null) else if (mLastDirection == PREVIOUS && mPreviousMessage != null)
{ {
onPrevious(K9.isAnimations()); onPrevious(K9.showAnimations());
} }
else if (mNextMessage != null) else if (mNextMessage != null)
{ {
onNext(K9.isAnimations()); onNext(K9.showAnimations());
} }
else if (mPreviousMessage != null) else if (mPreviousMessage != null)
{ {
onPrevious(K9.isAnimations()); onPrevious(K9.showAnimations());
} }
else else
{ {
@ -1498,11 +1498,11 @@ public class MessageView extends K9Activity implements OnClickListener
break; break;
case R.id.next: case R.id.next:
case R.id.next_scrolling: case R.id.next_scrolling:
onNext(K9.isAnimations()); onNext(K9.showAnimations());
break; break;
case R.id.previous: case R.id.previous:
case R.id.previous_scrolling: case R.id.previous_scrolling:
onPrevious(K9.isAnimations()); onPrevious(K9.showAnimations());
break; break;
case R.id.download: case R.id.download:
onDownloadAttachment((Attachment) view.getTag()); onDownloadAttachment((Attachment) view.getTag());

View File

@ -170,7 +170,7 @@ public class Prefs extends K9PreferenceActivity
mSensitiveLogging.setChecked(K9.DEBUG_SENSITIVE); mSensitiveLogging.setChecked(K9.DEBUG_SENSITIVE);
mAnimations = (CheckBoxPreference)findPreference(PREFERENCE_ANIMATIONS); mAnimations = (CheckBoxPreference)findPreference(PREFERENCE_ANIMATIONS);
mAnimations.setChecked(K9.isAnimations()); mAnimations.setChecked(K9.showAnimations());
mGestures = (CheckBoxPreference)findPreference(PREFERENCE_GESTURES); mGestures = (CheckBoxPreference)findPreference(PREFERENCE_GESTURES);
mGestures.setChecked(K9.gesturesEnabled()); mGestures.setChecked(K9.gesturesEnabled());