From 66fdb16ff418043db62b240a156aac27bbc0a7ee Mon Sep 17 00:00:00 2001 From: Mangesh Ghiware Date: Tue, 2 Oct 2012 23:50:53 -0700 Subject: Remove redundant handling of share action. Bug: 7256214 Gallery PhotoPage was handling the menu item selection for the share action, in addition to the ShareActionProvider. Removing this leftover code from pre-ActionBar implementation. Change-Id: I0c91b9a7c05b38758ad1b76dd657225daaab1922 --- src/com/android/gallery3d/app/PhotoPage.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/com/android/gallery3d/app') diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index 08214733a..6d05df167 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -930,12 +930,6 @@ public class PhotoPage extends ActivityState implements mMenuExecutor.onMenuClicked(item, confirmMsg, new ImportCompleteListener(mActivity)); return true; - case R.id.action_share: - Activity activity = mActivity; - Intent intent = createShareIntent(mCurrentPhoto.getPath()); - activity.startActivity(Intent.createChooser(intent, - activity.getString(R.string.share))); - return true; default : return false; } -- cgit v1.2.3