1 package tim.prune.function;
4 import tim.prune.DataSubscriber;
5 import tim.prune.GenericFunction;
6 import tim.prune.UpdateMessageBroker;
7 import tim.prune.data.Photo;
10 * Class to provide the function to disable the exif thumbnail
11 * for the current photo so that the full image must be loaded
13 public class IgnoreExifThumb extends GenericFunction
17 * @param inApp application object for callback
19 public IgnoreExifThumb(App inApp)
24 /** Get the name key */
25 public String getNameKey() {
26 return "function.ignoreexifthumb";
34 Photo photo = _app.getTrackInfo().getCurrentPhoto();
37 // no undo necessary, no data being edited
38 photo.setExifThumbnail(null);
39 UpdateMessageBroker.informSubscribers(DataSubscriber.PHOTOS_MODIFIED);