Actions in the detail view

This commit is contained in:
purigarcia 2015-07-08 10:32:58 +02:00
parent 96e2a2b97b
commit 4e66d6acd8

View file

@ -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;
}