summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Kennedy <skennedy@google.com>2013-07-30 21:56:23 -0700
committerScott Kennedy <skennedy@google.com>2013-07-30 21:56:23 -0700
commit73841d3240ea553c5f95400a4bbf83dbbb3f872f (patch)
tree6b7952217d6746b270bf95b2ae9fff822f83549e
parent7732839c0cd9d87954a07e166b52b93cabea1374 (diff)
downloadphotoviewer-73841d3240ea553c5f95400a4bbf83dbbb3f872f.tar.gz
Remove all remaining warnings
Or at least, those that my Eclipse settings can pick up Change-Id: I416b89bdf0068734cbacd2a220ae108c12301e85
-rw-r--r--src/com/android/ex/photo/PhotoViewActivity.java1
-rw-r--r--src/com/android/ex/photo/fragments/PhotoViewFragment.java7
-rw-r--r--src/com/android/ex/photo/util/ImageUtils.java1
3 files changed, 0 insertions, 9 deletions
diff --git a/src/com/android/ex/photo/PhotoViewActivity.java b/src/com/android/ex/photo/PhotoViewActivity.java
index 9f0bc9f..444b3f1 100644
--- a/src/com/android/ex/photo/PhotoViewActivity.java
+++ b/src/com/android/ex/photo/PhotoViewActivity.java
@@ -34,7 +34,6 @@ import android.support.v4.app.FragmentActivity;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.support.v4.view.ViewPager.OnPageChangeListener;
-import android.text.TextUtils;
import android.view.MenuItem;
import android.view.View;
diff --git a/src/com/android/ex/photo/fragments/PhotoViewFragment.java b/src/com/android/ex/photo/fragments/PhotoViewFragment.java
index de549d3..55f1640 100644
--- a/src/com/android/ex/photo/fragments/PhotoViewFragment.java
+++ b/src/com/android/ex/photo/fragments/PhotoViewFragment.java
@@ -21,7 +21,6 @@ import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
-import android.content.pm.PackageManager;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.net.ConnectivityManager;
@@ -407,12 +406,6 @@ public class PhotoViewFragment extends Fragment implements
}
}
- private boolean hasNetworkStatePermission() {
- final String networkStatePermission = "android.permission.ACCESS_NETWORK_STATE";
- int result = getActivity().checkCallingOrSelfPermission(networkStatePermission);
- return result == PackageManager.PERMISSION_GRANTED;
- }
-
/**
* Enable or disable image transformations. When transformations are enabled, this view
* consumes all touch events.
diff --git a/src/com/android/ex/photo/util/ImageUtils.java b/src/com/android/ex/photo/util/ImageUtils.java
index 0db064e..075f918 100644
--- a/src/com/android/ex/photo/util/ImageUtils.java
+++ b/src/com/android/ex/photo/util/ImageUtils.java
@@ -227,7 +227,6 @@ public class ImageUtils {
throws IOException {
final BitmapFactory.Options opts = new BitmapFactory.Options();
InputStream inputStream = null;
- String scheme = uri.getScheme();
try {
opts.inJustDecodeBounds = true;
inputStream = openInputStream(resolver, uri);