- private void doMySearch(String query) {
- // TODO implement , or prevent that search may be sent without choosing from the suggestions list
- Toast.makeText(this, "You want to search for [" + query + "]", Toast.LENGTH_SHORT).show();
- }
-
- private void doShareWith(String username, boolean isGroup) {
- // TODO implement
- if (isGroup) {
- Toast.makeText(this, "You want to SHARE with GROUP [" + username + "]", Toast.LENGTH_SHORT).show();
-
- } else {
- Toast.makeText(this, "You want to SHARE with USER [" + username + "]", Toast.LENGTH_SHORT).show();
- }
+ private void doShareWith(String shareeName, boolean isGroup) {
+ getFileOperationsHelper().shareFileWithSharee(
+ getFile(),
+ shareeName,
+ (isGroup ? ShareType.GROUP : ShareType.USER)
+ );