mirror of
https://github.com/russok/FitoTrack.git
synced 2025-10-29 00:32:11 -07:00
Fix crash
This commit is contained in:
parent
fb2f78b9ee
commit
20d0b859a2
@ -91,7 +91,9 @@ public class SettingsActivity extends FitoTrackSettingsActivity {
|
|||||||
// TextToSpeech is not available
|
// TextToSpeech is not available
|
||||||
Toast.makeText(SettingsActivity.this, R.string.ttsNotAvailable, Toast.LENGTH_LONG).show();
|
Toast.makeText(SettingsActivity.this, R.string.ttsNotAvailable, Toast.LENGTH_LONG).show();
|
||||||
}
|
}
|
||||||
voiceAnnouncements.destroy();
|
if (voiceAnnouncements != null) {
|
||||||
|
voiceAnnouncements.destroy();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user