summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/AlbumPage.java
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-04-06 16:46:32 +0800
committerOwen Lin <owenlin@google.com>2012-04-09 17:17:47 +0800
commitc3d8ac3b9504346dafc49e006b5f732dd1db21e8 (patch)
tree45503b6691cfb0ca61b346ba9637b9d14df55767 /src/com/android/gallery3d/app/AlbumPage.java
parentcd36bfc52cc4e7f4b667ba3c5e8eb950647ae9d1 (diff)
downloadandroid_packages_apps_Gallery2-c3d8ac3b9504346dafc49e006b5f732dd1db21e8.tar.gz
android_packages_apps_Gallery2-c3d8ac3b9504346dafc49e006b5f732dd1db21e8.tar.bz2
android_packages_apps_Gallery2-c3d8ac3b9504346dafc49e006b5f732dd1db21e8.zip
Refactor. Rename AlbumView to AlbumSlotRenderer.
Change-Id: I7d8d3586a910dac35975e4effa0d02528e2ccf98
Diffstat (limited to 'src/com/android/gallery3d/app/AlbumPage.java')
-rw-r--r--src/com/android/gallery3d/app/AlbumPage.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/gallery3d/app/AlbumPage.java b/src/com/android/gallery3d/app/AlbumPage.java
index af6cb5057..efffe4075 100644
--- a/src/com/android/gallery3d/app/AlbumPage.java
+++ b/src/com/android/gallery3d/app/AlbumPage.java
@@ -41,7 +41,7 @@ import com.android.gallery3d.data.MtpDevice;
import com.android.gallery3d.data.Path;
import com.android.gallery3d.ui.ActionModeHandler;
import com.android.gallery3d.ui.ActionModeHandler.ActionModeListener;
-import com.android.gallery3d.ui.AlbumView;
+import com.android.gallery3d.ui.AlbumSlotRenderer;
import com.android.gallery3d.ui.DetailsHelper;
import com.android.gallery3d.ui.DetailsHelper.CloseListener;
import com.android.gallery3d.ui.GLCanvas;
@@ -76,12 +76,12 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
private static final boolean TEST_CAMERA_PREVIEW = false;
private boolean mIsActive = false;
- private AlbumView mAlbumView;
+ private AlbumSlotRenderer mAlbumView;
private Path mMediaSetPath;
private String mParentMediaSetString;
private SlotView mSlotView;
- private AlbumDataAdapter mAlbumDataAdapter;
+ private AlbumDataLoader mAlbumDataAdapter;
protected SelectionManager mSelectionManager;
private Vibrator mVibrator;
@@ -343,7 +343,7 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
mSelectionManager.setSelectionListener(this);
Config.AlbumPage config = Config.AlbumPage.get((Context) mActivity);
mSlotView = new SlotView((Context) mActivity, config.slotViewSpec);
- mAlbumView = new AlbumView(mActivity, mSlotView, mSelectionManager);
+ mAlbumView = new AlbumSlotRenderer(mActivity, mSlotView, mSelectionManager);
mSlotView.setSlotRenderer(mAlbumView);
mRootPane.addComponent(mSlotView);
mSlotView.setListener(new SlotView.SimpleListener() {
@@ -383,7 +383,7 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
Utils.fail("MediaSet is null. Path = %s", mMediaSetPath);
}
mSelectionManager.setSourceMediaSet(mMediaSet);
- mAlbumDataAdapter = new AlbumDataAdapter(mActivity, mMediaSet);
+ mAlbumDataAdapter = new AlbumDataLoader(mActivity, mMediaSet);
mAlbumDataAdapter.setLoadingListener(new MyLoadingListener());
mAlbumView.setModel(mAlbumDataAdapter);
}