Add share via drive in the contextual menu.

This commit is contained in:
Jimmy Shih
2013-02-14 10:46:24 -08:00
parent 0b5af64ca1
commit 66fd25365b
13 changed files with 159 additions and 118 deletions
@@ -16,6 +16,8 @@
package com.google.android.apps.mytracks;
import android.view.Menu;
/**
* Callback when an item in the contextual action mode is selected.
*
@@ -33,18 +35,11 @@ public interface ContextualActionModeCallback {
public boolean onClick(int itemId, int position, long id);
/**
* True if the item in the selected row can be edited.
* Invoked to prepare the menu for the selected item.
*
* @param position the position of the selected row
* @param id the id of the selected row
* @param menu the menu
* @param position the position of the selected item
* @param id the id of the selected item
*/
public boolean canEdit(int position, long id);
/**
* True if the item in the selected row can be deleted.
*
* @param position the position of the selected row
* @param id the id of the selected row
*/
public boolean canDelete(int position, long id);
public void onPrepare(Menu menu, int position, long id);
}