mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Actions in the detail view
This commit is contained in:
parent
96e2a2b97b
commit
4e66d6acd8
1 changed files with 9 additions and 1 deletions
|
@ -259,6 +259,14 @@ public class FileDetailFragment extends FileFragment implements OnClickListener
|
|||
}
|
||||
return true;
|
||||
}
|
||||
case R.id.action_favorite_file:{
|
||||
mContainerActivity.getFileOperationsHelper().toggleKeepInSync(getFile(), true);
|
||||
return true;
|
||||
}
|
||||
case R.id.action_unfavorite_file:{
|
||||
mContainerActivity.getFileOperationsHelper().toggleKeepInSync(getFile(), false);
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue