removed unneeded brackets

This commit is contained in:
AndyScherzinger 2017-01-26 13:08:24 +01:00
parent a241447df0
commit cc624b446a
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -318,39 +318,39 @@ public class PreviewImageFragment extends FileFragment {
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_share_file: {
case R.id.action_share_file:
mContainerActivity.getFileOperationsHelper().showShareFile(getFile());
return true;
}
case R.id.action_open_file_with: {
case R.id.action_open_file_with:
openFile();
return true;
}
case R.id.action_remove_file: {
case R.id.action_remove_file:
RemoveFilesDialogFragment dialog = RemoveFilesDialogFragment.newInstance(getFile());
dialog.show(getFragmentManager(), ConfirmationDialogFragment.FTAG_CONFIRMATION);
return true;
}
case R.id.action_see_details: {
case R.id.action_see_details:
seeDetails();
return true;
}
case R.id.action_send_file: {
case R.id.action_send_file:
mContainerActivity.getFileOperationsHelper().sendDownloadedFile(getFile());
return true;
}
case R.id.action_sync_file: {
case R.id.action_sync_file:
mContainerActivity.getFileOperationsHelper().syncFile(getFile());
return true;
}
case R.id.action_favorite_file: {
case R.id.action_favorite_file:
mContainerActivity.getFileOperationsHelper().toggleFavorite(getFile(), true);
return true;
}
case R.id.action_unfavorite_file: {
case R.id.action_unfavorite_file:
mContainerActivity.getFileOperationsHelper().toggleFavorite(getFile(), false);
return true;
}
default:
return super.onOptionsItemSelected(item);
}