soporte a entrega por picto pulsado

parent ca165925
......@@ -2,7 +2,6 @@ package com.yottacode.pictogram.dao;
import android.content.Context;
import android.graphics.Bitmap;
import android.util.Log;
import com.yottacode.pictogram.tools.Img;
......@@ -37,6 +36,7 @@ public class User {
static String TTS_ENGINE = "tts engine";
static String TTS_VOICE = "tts voice";
static String DELIVERY = "delivery";
static String DELIVERY_EACH_PICTO = "delivery_each_picto";
}
public final static class JSON_STUDENT_INPUT_FEEDBACK {
public static String VIBRATION="vibration";
......@@ -299,6 +299,12 @@ public class User {
}
/**
* True if every picto is delivered withput pressing delivery key
*/
public boolean one_picto_delivery() {
return this.attributes_stu.optBoolean(JSON_STUDENT_ATTTRS.DELIVERY_EACH_PICTO,false);
}
/**
*
* @return input selection of the student configuration (default: "click")
*/
......
......@@ -829,6 +829,8 @@ public class VOCA extends Activity implements VocabularyTalk.iVocabularyListener
} else if (tapeAdapter.getCount() < VOCA.this.maxInTape && !VOCA.this.tapeAdapter.play()) {
addPictoWord(parent.getChildAt(position), p);
}
if (PCBcontext.getPcbdb().getCurrentUser().one_picto_delivery())
ttsButton.performClick();
}
}
......
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