summaryrefslogtreecommitdiffstats
path: root/photoviewer/src/com/android/ex/photo/Intents.java
diff options
context:
space:
mode:
Diffstat (limited to 'photoviewer/src/com/android/ex/photo/Intents.java')
-rw-r--r--photoviewer/src/com/android/ex/photo/Intents.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/photoviewer/src/com/android/ex/photo/Intents.java b/photoviewer/src/com/android/ex/photo/Intents.java
index 7e31169..be90b69 100644
--- a/photoviewer/src/com/android/ex/photo/Intents.java
+++ b/photoviewer/src/com/android/ex/photo/Intents.java
@@ -128,11 +128,6 @@ public class Intents {
/** Build the intent */
public Intent build() {
- if (TextUtils.isEmpty(mPhotosUri) && TextUtils.isEmpty(mResolvedPhotoUri)) {
- throw new IllegalArgumentException(
- "Either PhotosUri or ResolvedPhotoUri must be set.");
- }
-
mIntent.setAction(Intent.ACTION_VIEW);
mIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);