use of org.thoughtcrime.securesms.scribbles.widget.entity.TextEntity in project Signal-Android by WhisperSystems.
the class ScribbleActivity method changeTextEntityColor.
private void changeTextEntityColor(int selectedColor) {
TextEntity textEntity = currentTextEntity();
if (textEntity == null) {
return;
}
textEntity.getLayer().getFont().setColor(selectedColor);
textEntity.updateEntity();
scribbleView.invalidate();
}
use of org.thoughtcrime.securesms.scribbles.widget.entity.TextEntity in project Signal-Android by signalapp.
the class MotionView method afterTextChanged.
@Override
public void afterTextChanged(Editable s) {
String text = s.toString();
MotionEntity entity = getSelectedEntity();
if (entity != null && entity instanceof TextEntity) {
TextEntity textEntity = (TextEntity) entity;
if (!textEntity.getLayer().getText().equals(text)) {
textEntity.getLayer().setText(text);
textEntity.updateEntity();
MotionView.this.invalidate();
}
}
}
use of org.thoughtcrime.securesms.scribbles.widget.entity.TextEntity in project Signal-Android by signalapp.
the class ScribbleActivity method changeTextEntityColor.
private void changeTextEntityColor(int selectedColor) {
TextEntity textEntity = currentTextEntity();
if (textEntity == null) {
return;
}
textEntity.getLayer().getFont().setColor(selectedColor);
textEntity.updateEntity();
scribbleView.invalidate();
}
Aggregations