use of com.android.mms.model.SlideModel in project android-aosp-mms by slvn.
the class SlideshowEditor method changeText.
public void changeText(int position, String newText) {
if (newText != null) {
SlideModel slide = mModel.get(position);
TextModel text = slide.getText();
if (text == null) {
text = new TextModel(mContext, ContentType.TEXT_PLAIN, "text_" + position + ".txt", mModel.getLayout().getTextRegion());
text.setText(newText);
slide.add(text);
} else if (!newText.equals(text.getText())) {
text.setText(newText);
}
}
}
use of com.android.mms.model.SlideModel in project android-aosp-mms by slvn.
the class SlideshowEditor method changeAudio.
public void changeAudio(int position, Uri newAudio) throws MmsException {
AudioModel audio = new AudioModel(mContext, newAudio);
SlideModel slide = mModel.get(position);
slide.add(audio);
slide.updateDuration(audio.getDuration());
}
Aggregations