mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
isVibrate -> shouldVibrate to match shouldRing
This commit is contained in:
parent
28c126b8a5
commit
b7f52a834f
@ -579,7 +579,7 @@ public class Account implements BaseAccount
|
||||
editor.putString(mUuid + ".cryptoApp", mCryptoApp);
|
||||
editor.putBoolean(mUuid + ".cryptoAutoSignature", mCryptoAutoSignature);
|
||||
|
||||
editor.putBoolean(mUuid + ".vibrate", mNotificationSetting.isVibrate());
|
||||
editor.putBoolean(mUuid + ".vibrate", mNotificationSetting.shouldVibrate());
|
||||
editor.putInt(mUuid + ".vibratePattern", mNotificationSetting.getVibratePattern());
|
||||
editor.putInt(mUuid + ".vibrateTimes", mNotificationSetting.getVibrateTimes());
|
||||
editor.putBoolean(mUuid + ".ring", mNotificationSetting.shouldRing());
|
||||
|
@ -82,7 +82,7 @@ public class NotificationSetting
|
||||
mLedColor = color;
|
||||
}
|
||||
|
||||
public synchronized boolean isVibrate()
|
||||
public synchronized boolean shouldVibrate()
|
||||
{
|
||||
return mVibrate;
|
||||
}
|
||||
|
@ -533,7 +533,7 @@ public class AccountSettings extends K9PreferenceActivity
|
||||
prefs.edit().putString(PREFERENCE_RINGTONE, currentRingtone).commit();
|
||||
|
||||
mAccountVibrate = (CheckBoxPreference) findPreference(PREFERENCE_VIBRATE);
|
||||
mAccountVibrate.setChecked(mAccount.getNotificationSetting().isVibrate());
|
||||
mAccountVibrate.setChecked(mAccount.getNotificationSetting().shouldVibrate());
|
||||
|
||||
mAccountVibratePattern = (ListPreference) findPreference(PREFERENCE_VIBRATE_PATTERN);
|
||||
mAccountVibratePattern.setValue(String.valueOf(mAccount.getNotificationSetting().getVibratePattern()));
|
||||
|
@ -4739,7 +4739,7 @@ public class MessagingController implements Runnable
|
||||
notification.sound = TextUtils.isEmpty(ringtone) ? null : Uri.parse(ringtone);
|
||||
notification.audioStreamType = AudioManager.STREAM_NOTIFICATION;
|
||||
}
|
||||
if (setting.isVibrate())
|
||||
if (setting.shouldVibrate())
|
||||
{
|
||||
long[] pattern = getVibratePattern(setting.getVibratePattern(), setting.getVibrateTimes());
|
||||
notification.vibrate = pattern;
|
||||
|
Loading…
Reference in New Issue
Block a user