summaryrefslogtreecommitdiffstats
path: root/src_pd
diff options
context:
space:
mode:
authorSascha Haeberling <haeberling@google.com>2013-08-07 00:27:55 (GMT)
committerSascha Haeberling <haeberling@google.com>2013-08-07 00:31:38 (GMT)
commit764b07e6d5143b09c6f1bdd5504a89b81f7a7e74 (patch)
tree957e0b56185e7f6cdf8d700ea804b2eba4d8a834 /src_pd
parent43ec6facaec9fdfa7b29ea3cce114e94af95c34c (diff)
downloadandroid_packages_apps_Snap-764b07e6d5143b09c6f1bdd5504a89b81f7a7e74.zip
android_packages_apps_Snap-764b07e6d5143b09c6f1bdd5504a89b81f7a7e74.tar.gz
android_packages_apps_Snap-764b07e6d5143b09c6f1bdd5504a89b81f7a7e74.tar.bz2
Remove refocus icon if it's not enabled or present.
Change-Id: I0c885a7a56abfe2365d832fa5ca8c1d74ce2edc8
Diffstat (limited to 'src_pd')
-rw-r--r--src_pd/com/android/camera/util/PhotoSphereHelper.java17
-rw-r--r--src_pd/com/android/camera/util/RefocusHelper.java22
2 files changed, 38 insertions, 1 deletions
diff --git a/src_pd/com/android/camera/util/PhotoSphereHelper.java b/src_pd/com/android/camera/util/PhotoSphereHelper.java
index 570e95f..2b9016d 100644
--- a/src_pd/com/android/camera/util/PhotoSphereHelper.java
+++ b/src_pd/com/android/camera/util/PhotoSphereHelper.java
@@ -1,5 +1,20 @@
-package com.android.camera.util;
+/*
+ * Copyright (C) 2012 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.android.camera.util;
import android.app.Activity;
import android.content.ContentResolver;
diff --git a/src_pd/com/android/camera/util/RefocusHelper.java b/src_pd/com/android/camera/util/RefocusHelper.java
index 4de7d1a..3640a70 100644
--- a/src_pd/com/android/camera/util/RefocusHelper.java
+++ b/src_pd/com/android/camera/util/RefocusHelper.java
@@ -1,5 +1,22 @@
+/*
+ * Copyright (C) 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
package com.android.camera.util;
+import android.content.Context;
import com.android.camera.CameraModule;
@@ -7,4 +24,9 @@ public class RefocusHelper {
public static CameraModule createRefocusModule() {
return null;
}
+
+ public static boolean hasRefocusCapture(Context context) {
+ return false;
+ }
+
}