Pictogram 1.6, Beta 6, bug en pcb.netservice solucionado

parent b9a62918
......@@ -327,15 +327,13 @@ public class Picto extends Img {
visited.add(get_child_grid());
LinkedList<Picto> childs = PCBcontext.getVocabulary().next(get_child_grid());
if (childs==null) {
Log.e(LOG_TAG, " Picto " + this.get_translation() + " with empty grid " + get_child_grid() + " is invisible?" + (!visible));
if (childs==null)
visible=false;
}else {
else
for (Picto child : childs) {
visible = !child.is_invisible(visited);
if (visible) break;
}
}
}
return !visible;
}
......
......@@ -150,7 +150,7 @@ public class TTSHelper {
public void play(String input) {
Bundle params = new Bundle();
params.putString(TextToSpeech.Engine.KEY_PARAM_VOLUME, "1");
params.putFloat(TextToSpeech.Engine.KEY_PARAM_VOLUME, new Float(1));
params.putString(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "TAPE_READ");
ttobj.speak(input, TextToSpeech.QUEUE_FLUSH, params, "TAPE_READ");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment