Allow any class to be used for viewing photos
You no longer need to extend PhotoViewActivity.
Change-Id: Ia18f2d984668b397335c8fd337f02a9200ced7bb
diff --git a/src/com/android/ex/photo/Intents.java b/src/com/android/ex/photo/Intents.java
index 4425a32..35bf33f 100644
--- a/src/com/android/ex/photo/Intents.java
+++ b/src/com/android/ex/photo/Intents.java
@@ -17,6 +17,7 @@
package com.android.ex.photo;
+import android.app.Activity;
import android.content.ContentProvider;
import android.content.Context;
import android.content.Intent;
@@ -58,7 +59,7 @@
/** Gets a new photo view intent builder */
public static PhotoViewIntentBuilder newPhotoViewIntentBuilder(
- Context context, Class<? extends PhotoViewActivity> cls) {
+ Context context, Class<? extends Activity> cls) {
return new PhotoViewIntentBuilder(context, cls);
}