summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/MenuHelper.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2009-09-23 22:27:04 +0800
committerOwen Lin <owenlin@google.com>2009-09-24 00:50:19 +0800
commit71d56e21859a797ec4633f209b3605276345d44e (patch)
treeb57629d0323ec516a2fd158ab1913e67ac307075 /src/com/android/camera/MenuHelper.java
parente15c0ad52981ba7413002b028784e09da772ec35 (diff)
downloadLegacyCamera-71d56e21859a797ec4633f209b3605276345d44e.zip
LegacyCamera-71d56e21859a797ec4633f209b3605276345d44e.tar.gz
LegacyCamera-71d56e21859a797ec4633f209b3605276345d44e.tar.bz2
Fix some warnnings reported by eclipse.
Change-Id: I40037e0735ddbca750cbe5f8364af5247992c51c
Diffstat (limited to 'src/com/android/camera/MenuHelper.java')
-rw-r--r--src/com/android/camera/MenuHelper.java44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/com/android/camera/MenuHelper.java b/src/com/android/camera/MenuHelper.java
index 2ff473d..3fed674 100644
--- a/src/com/android/camera/MenuHelper.java
+++ b/src/com/android/camera/MenuHelper.java
@@ -39,7 +39,6 @@ import android.view.Menu;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
-import android.view.MenuItem.OnMenuItemClickListener;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
@@ -52,7 +51,6 @@ import java.lang.ref.WeakReference;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
-import java.util.HashMap;
import java.util.List;
/**
@@ -361,48 +359,6 @@ public class MenuHelper {
}
}
- /**
- * Returns a human-readable string describing the orientation value. Returns empty
- * string if there is no orientation value or it it not recognized.
- */
- private static String getOrientationString(ExifInterface exif) {
- // TODO: this function needs to be localized.
- int orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, -1);
- if (orientation == -1) return "";
-
- String orientationString;
- switch (orientation) {
- case ExifInterface.ORIENTATION_NORMAL:
- orientationString = "Normal";
- break;
- case ExifInterface.ORIENTATION_FLIP_HORIZONTAL:
- orientationString = "Flipped horizontal";
- break;
- case ExifInterface.ORIENTATION_ROTATE_180:
- orientationString = "Rotated 180 degrees";
- break;
- case ExifInterface.ORIENTATION_FLIP_VERTICAL:
- orientationString = "Upside down mirror";
- break;
- case ExifInterface.ORIENTATION_TRANSPOSE:
- orientationString = "Transposed";
- break;
- case ExifInterface.ORIENTATION_ROTATE_90:
- orientationString = "Rotated 90 degrees";
- break;
- case ExifInterface.ORIENTATION_TRANSVERSE:
- orientationString = "Transversed";
- break;
- case ExifInterface.ORIENTATION_ROTATE_270:
- orientationString = "Rotated 270 degrees";
- break;
- default:
- orientationString = "Undefined";
- break;
- }
- return orientationString;
- }
-
// Called when "Details" is clicked.
// Displays detailed information about the image/video.
private static boolean onDetailsClicked(MenuInvoker onInvoke,