Search in sources :

Example 16 with SlideModel

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);
        }
    }
}
Also used : TextModel(com.android.mms.model.TextModel) SlideModel(com.android.mms.model.SlideModel)

Example 17 with SlideModel

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());
}
Also used : AudioModel(com.android.mms.model.AudioModel) SlideModel(com.android.mms.model.SlideModel)

Aggregations

SlideModel (com.android.mms.model.SlideModel)17 SlideshowModel (com.android.mms.model.SlideshowModel)4 TextModel (com.android.mms.model.TextModel)3 Intent (android.content.Intent)2 ContentResolver (android.content.ContentResolver)1 Cursor (android.database.Cursor)1 Bitmap (android.graphics.Bitmap)1 Uri (android.net.Uri)1 SpannableString (android.text.SpannableString)1 SubMenu (android.view.SubMenu)1 Contact (com.android.mms.data.Contact)1 AudioModel (com.android.mms.model.AudioModel)1 MediaModel (com.android.mms.model.MediaModel)1 VideoModel (com.android.mms.model.VideoModel)1 ThumbnailManager (com.android.mms.util.ThumbnailManager)1 MmsException (com.google.android.mms.MmsException)1 GenericPdu (com.google.android.mms.pdu.GenericPdu)1 MultimediaMessagePdu (com.google.android.mms.pdu.MultimediaMessagePdu)1