From c635f76f2155525b2bcca5cfdd1320d16a865876 Mon Sep 17 00:00:00 2001 From: Sascha Haeberling Date: Mon, 15 Oct 2012 18:28:42 -0700 Subject: 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 --- .../android/gallery3d/util/LightCycleHelper.java | 28 ++++++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'src_pd') diff --git a/src_pd/com/android/gallery3d/util/LightCycleHelper.java b/src_pd/com/android/gallery3d/util/LightCycleHelper.java index 995eac8b1..6ebd9eca2 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; } -- cgit v1.2.3