diff options
| author | Mangesh Ghiware <mghiware@google.com> | 2012-10-19 11:28:30 -0700 |
|---|---|---|
| committer | Mangesh Ghiware <mghiware@google.com> | 2012-10-19 11:28:30 -0700 |
| commit | b037754eac0a4f99747edd3135776dc471d566f8 (patch) | |
| tree | a7abaed5f6e45bf715ec33a393192c264e6011fa /src | |
| parent | c5590eb1a20b112e67e4c43684790587f844fc6b (diff) | |
| download | android_packages_apps_Gallery2-b037754eac0a4f99747edd3135776dc471d566f8.tar.gz android_packages_apps_Gallery2-b037754eac0a4f99747edd3135776dc471d566f8.tar.bz2 android_packages_apps_Gallery2-b037754eac0a4f99747edd3135776dc471d566f8.zip | |
Fix sharing state in Gallery ActionBar
Bug: 7340067
Change-Id: I4ff9577315fc743f6b9fef0d325b0743546f108e
Diffstat (limited to 'src')
| -rw-r--r-- | src/com/android/gallery3d/app/GalleryActionBar.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/GalleryActionBar.java b/src/com/android/gallery3d/app/GalleryActionBar.java index f0be01a91..0fb5e51b4 100644 --- a/src/com/android/gallery3d/app/GalleryActionBar.java +++ b/src/com/android/gallery3d/app/GalleryActionBar.java @@ -392,6 +392,8 @@ public class GalleryActionBar implements OnNavigationListener { private Menu mActionBarMenu; private ShareActionProvider mSharePanoramaActionProvider; private ShareActionProvider mShareActionProvider; + private Intent mSharePanoramaIntent; + private Intent mShareIntent; public void createActionBarMenu(int menuRes, Menu menu) { mActivity.getMenuInflater().inflate(menuRes, menu); @@ -403,6 +405,7 @@ public class GalleryActionBar implements OnNavigationListener { item.getActionProvider(); mSharePanoramaActionProvider .setShareHistoryFileName("panorama_share_history.xml"); + mSharePanoramaActionProvider.setShareIntent(mSharePanoramaIntent); } item = menu.findItem(R.id.action_share); @@ -411,6 +414,7 @@ public class GalleryActionBar implements OnNavigationListener { item.getActionProvider(); mShareActionProvider .setShareHistoryFileName("share_history.xml"); + mShareActionProvider.setShareIntent(mShareIntent); } } @@ -419,9 +423,11 @@ public class GalleryActionBar implements OnNavigationListener { } public void setShareIntents(Intent sharePanoramaIntent, Intent shareIntent) { + mSharePanoramaIntent = sharePanoramaIntent; if (mSharePanoramaActionProvider != null) { mSharePanoramaActionProvider.setShareIntent(sharePanoramaIntent); } + mShareIntent = shareIntent; if (mShareActionProvider != null) { mShareActionProvider.setShareIntent(shareIntent); } |
