summaryrefslogtreecommitdiffstats
path: root/src_pd
diff options
context:
space:
mode:
authorSascha Haeberling <haeberling@google.com>2012-10-15 18:28:42 -0700
committerSascha Haeberling <haeberling@google.com>2012-10-17 11:22:03 -0700
commitc635f76f2155525b2bcca5cfdd1320d16a865876 (patch)
tree3e83860a382b4657818827c4477c2f328ff057a5 /src_pd
parent7fc37252be8d12de906a9c68224f553f80c8ef52 (diff)
downloadandroid_packages_apps_Snap-c635f76f2155525b2bcca5cfdd1320d16a865876.zip
android_packages_apps_Snap-c635f76f2155525b2bcca5cfdd1320d16a865876.tar.gz
android_packages_apps_Snap-c635f76f2155525b2bcca5cfdd1320d16a865876.tar.bz2
Adds GMS Core PanoramaClient to Gallery
Bug: 7319099 Also updates the API call to LightCycleHelper. This depends on http://go/ag/#/c/239523/ Change-Id: Ie951e44e3a474599d1da6fea52609fbb9f8dc9bc
Diffstat (limited to 'src_pd')
-rw-r--r--src_pd/com/android/gallery3d/util/LightCycleHelper.java28
1 files changed, 23 insertions, 5 deletions
diff --git a/src_pd/com/android/gallery3d/util/LightCycleHelper.java b/src_pd/com/android/gallery3d/util/LightCycleHelper.java
index 995eac8..6ebd9ec 100644
--- a/src_pd/com/android/gallery3d/util/LightCycleHelper.java
+++ b/src_pd/com/android/gallery3d/util/LightCycleHelper.java
@@ -17,7 +17,6 @@
package com.android.gallery3d.util;
import android.app.Activity;
-import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
@@ -39,6 +38,29 @@ public class LightCycleHelper {
}
}
+ public static class PanoramaViewHelper {
+
+ public PanoramaViewHelper(Activity activity) {
+ /* Do nothing */
+ }
+
+ public void onStart() {
+ /* Do nothing */
+ }
+
+ public void onCreate() {
+ /* Do nothing */
+ }
+
+ public void onStop() {
+ /* Do nothing */
+ }
+
+ public void showPanorama(Uri uri) {
+ /* Do nothing */
+ }
+ }
+
public static void setupCaptureIntent(Context context, Intent it, String outputDir) {
/* Do nothing */
}
@@ -47,10 +69,6 @@ public class LightCycleHelper {
return false;
}
- public static void viewPanorama(Activity activity, Uri uri) {
- /* Do nothing */
- }
-
public static PanoramaMetadata getPanoramaMetadata(Context context, Uri uri) {
return null;
}