Skip to content

Commit

Permalink
Fixed a crash in preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
sbosley committed Sep 18, 2012
1 parent 2a4ed2e commit 2ab5da8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion astrid/src/com/todoroo/astrid/activity/EditPreferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,8 @@ private void onVoiceReminderStatusChanged(final Preference preference, boolean n
private void onVoiceInputStatusChanged(final Preference preference, boolean newValue) {
if(!newValue)
return;
if (AndroidUtilities.indexOf(Constants.MARKET_STRATEGY.excludedSettings(), R.string.p_voiceInputEnabled) >= 0)
int[] excludedSettings = Constants.MARKET_STRATEGY.excludedSettings();
if (excludedSettings != null && AndroidUtilities.indexOf(excludedSettings, R.string.p_voiceInputEnabled) >= 0)
return;

final Resources r = getResources();
Expand Down

0 comments on commit 2ab5da8

Please sign in to comment.