summaryrefslogtreecommitdiffstats
path: root/src/com/android/photos/GalleryActivity.java
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-03-07 14:15:57 -0800
committerBobby Georgescu <georgescu@google.com>2013-03-08 15:41:15 -0800
commit755e327f63197c2798394bc805df8d98c2f6b6d3 (patch)
tree83ae5950aa2b35fe38fee84795d0a038fada6be8 /src/com/android/photos/GalleryActivity.java
parent0d84f476ed24922864f39d54e09274f6feac085e (diff)
downloadandroid_packages_apps_Snap-755e327f63197c2798394bc805df8d98c2f6b6d3.tar.gz
android_packages_apps_Snap-755e327f63197c2798394bc805df8d98c2f6b6d3.tar.bz2
android_packages_apps_Snap-755e327f63197c2798394bc805df8d98c2f6b6d3.zip
Add sharing support
Change-Id: I2c7f18b0d6dd057c1fba96c1133d563f32abf55c
Diffstat (limited to 'src/com/android/photos/GalleryActivity.java')
-rw-r--r--src/com/android/photos/GalleryActivity.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/photos/GalleryActivity.java b/src/com/android/photos/GalleryActivity.java
index 46b5140fb..2335658d1 100644
--- a/src/com/android/photos/GalleryActivity.java
+++ b/src/com/android/photos/GalleryActivity.java
@@ -33,6 +33,7 @@ public class GalleryActivity extends Activity {
private final String FTAG_PHOTOSET = "PhotoSet";
private final String FTAG_ALBUMSET = "AlbumSet";
+ private SelectionManager mSelectionManager;
@Override
protected void onCreate(Bundle savedInstanceState) {
@@ -41,6 +42,13 @@ public class GalleryActivity extends Activity {
setupActionBar();
}
+ protected SelectionManager getSelectionManager() {
+ if (mSelectionManager == null) {
+ mSelectionManager = new SelectionManager(this);
+ }
+ return mSelectionManager;
+ }
+
private void setupActionBar() {
ActionBar ab = getActionBar();
ab.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);