summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-07-26 17:16:47 +0800
committerOwen Lin <owenlin@google.com>2012-07-30 15:20:58 +0800
commita51e351e6972845ce37eff2b90571cd9ce73ac62 (patch)
tree2616322a6597f2535a706eb457800725039b2e5b /src/com/android/gallery3d/ui
parentf51196e8b35f6c7ff81fce6a2fb837f1d4f76c40 (diff)
downloadandroid_packages_apps_Snap-a51e351e6972845ce37eff2b90571cd9ce73ac62.tar.gz
android_packages_apps_Snap-a51e351e6972845ce37eff2b90571cd9ce73ac62.tar.bz2
android_packages_apps_Snap-a51e351e6972845ce37eff2b90571cd9ce73ac62.zip
Fix some lint warnings in Gallery.
1. Implement our own openPipeHelper 2. Add @TargetApi to TileImageViewAdapter Change-Id: I74dca78c4c4f18e0f782afad02d5ba9b410a503e
Diffstat (limited to 'src/com/android/gallery3d/ui')
-rw-r--r--src/com/android/gallery3d/ui/TileImageViewAdapter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/ui/TileImageViewAdapter.java b/src/com/android/gallery3d/ui/TileImageViewAdapter.java
index 4865e5c67..a14df754a 100644
--- a/src/com/android/gallery3d/ui/TileImageViewAdapter.java
+++ b/src/com/android/gallery3d/ui/TileImageViewAdapter.java
@@ -16,6 +16,7 @@
package com.android.gallery3d.ui;
+import android.annotation.TargetApi;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapFactory;
@@ -107,6 +108,7 @@ public class TileImageViewAdapter implements TileImageView.Model {
//
// As a result, we should decode region (50-6, 50-6, 250+6, 250+6) or
// (44, 44, 256, 256) from the original photo and down sample it to 106.
+ @TargetApi(ApiHelper.VERSION_CODES.HONEYCOMB)
@Override
public Bitmap getTile(int level, int x, int y, int tileSize,
int borderSize, BitmapPool pool) {