diff options
Diffstat (limited to 'src/com/android/photos/SelectionManager.java')
-rw-r--r-- | src/com/android/photos/SelectionManager.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/android/photos/SelectionManager.java b/src/com/android/photos/SelectionManager.java index 9bfb9be75..1ab76918f 100644 --- a/src/com/android/photos/SelectionManager.java +++ b/src/com/android/photos/SelectionManager.java @@ -23,7 +23,6 @@ import android.nfc.NfcAdapter; import android.nfc.NfcAdapter.CreateBeamUrisCallback; import android.nfc.NfcEvent; import android.provider.MediaStore.Files.FileColumns; -import android.widget.ShareActionProvider; import com.android.gallery3d.common.ApiHelper; import com.android.gallery3d.data.MediaObject; @@ -74,8 +73,8 @@ public class SelectionManager { private ArrayList<Uri> mCachedShareableUris = null; - public void onItemSelectedStateChanged(ShareActionProvider share, - int itemType, int itemSupportedOperations, boolean selected) { + public void onItemSelectedStateChanged(int itemType, int itemSupportedOperations, + boolean selected) { int increment = selected ? 1 : -1; mSelectedTotalCount += increment; @@ -132,7 +131,6 @@ public class SelectionManager { } } } - share.setShareIntent(mShareIntent); } public int getSupportedOperations() { @@ -181,4 +179,8 @@ public class SelectionManager { mShareIntent.removeExtra(Intent.EXTRA_STREAM); mShareIntent.setAction(null).setType(null); } + + public Intent getShareIntent() { + return mShareIntent; + } } |