Fixes toots not translated in special cases

This commit is contained in:
stom79 2017-11-19 15:03:19 +01:00
parent 5299fe83e4
commit 9961e31335
1 changed files with 1 additions and 2 deletions

View File

@ -188,8 +188,7 @@ public class Translate {
int translator = sharedpreferences.getInt(Helper.SET_TRANSLATOR, Helper.TRANS_YANDEX);
String aJsonString = null;
try {
if (translator == Helper.TRANS_YANDEX)
aJsonString = yandexTranslateToText(translatedResult);
aJsonString = yandexTranslateToText(translatedResult);
if( aJsonString == null)
return null;