diff options
author | Angus Kong <shkong@google.com> | 2013-10-02 16:53:40 -0700 |
---|---|---|
committer | Angus Kong <shkong@google.com> | 2013-10-03 12:47:54 -0700 |
commit | 3250987bd014d1c5463b8a39bbe988165ab1cc3f (patch) | |
tree | 4c003f831d18163af7ff4c9a0dda7c53613c3506 /src/com/android/camera/data/LocalData.java | |
parent | 68fc363bd33a9e506ccfd1ffa330c4525a2734ce (diff) | |
download | android_packages_apps_Snap-3250987bd014d1c5463b8a39bbe988165ab1cc3f.tar.gz android_packages_apps_Snap-3250987bd014d1c5463b8a39bbe988165ab1cc3f.tar.bz2 android_packages_apps_Snap-3250987bd014d1c5463b8a39bbe988165ab1cc3f.zip |
Don't allow actions on items in progress.
bug:11049529
Change-Id: Id6bd0f912f153b8b8e6b1a525a383ad8cadbe3dd
Diffstat (limited to 'src/com/android/camera/data/LocalData.java')
-rw-r--r-- | src/com/android/camera/data/LocalData.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/com/android/camera/data/LocalData.java b/src/com/android/camera/data/LocalData.java index cfdcfa459..da64fee30 100644 --- a/src/com/android/camera/data/LocalData.java +++ b/src/com/android/camera/data/LocalData.java @@ -67,6 +67,12 @@ public interface LocalData extends FilmStripView.ImageData { * Constant for denoting a still image, with valid 360 PhotoSphere metadata. */ public static final int LOCAL_360_PHOTO_SPHERE = 6; + /** + * Constant for denoting an in-progress item which should not be touched + * before the related task is done. Data of this type should not support + * any actions like sharing, editing, etc. + */ + public static final int LOCAL_IN_PROGRESS_DATA = 7; View getView(Activity a, int width, int height, Drawable placeHolder, LocalDataAdapter adapter); @@ -110,8 +116,10 @@ public interface LocalData extends FilmStripView.ImageData { * @param adapter Used to update the view. * @param currentDataId Used to update the view. * @param clockwise True if the rotation goes clockwise. + * + * @return Whether the rotation is supported. */ - void rotate90Degrees(Context context, LocalDataAdapter adapter, + boolean rotate90Degrees(Context context, LocalDataAdapter adapter, int currentDataId, boolean clockwise); void onFullScreen(boolean fullScreen); @@ -187,8 +195,8 @@ public interface LocalData extends FilmStripView.ImageData { } /** - * @return the Id of the data. + * @return the {@link android.content.ContentResolver} Id of the data. */ - long getId(); + long getContentId(); } |