diff --git a/src/main/java/com/owncloud/android/ui/adapter/ExpandableUploadListAdapter.java b/src/main/java/com/owncloud/android/ui/adapter/ExpandableUploadListAdapter.java index 59b025553b..23ff5f537a 100755 --- a/src/main/java/com/owncloud/android/ui/adapter/ExpandableUploadListAdapter.java +++ b/src/main/java/com/owncloud/android/ui/adapter/ExpandableUploadListAdapter.java @@ -29,7 +29,6 @@ import android.view.View; import android.view.ViewGroup; import android.widget.BaseExpandableListAdapter; import android.widget.ExpandableListView; -import android.widget.ImageButton; import android.widget.ImageView; import android.widget.ProgressBar; import android.widget.TextView; @@ -333,40 +332,6 @@ public class ExpandableUploadListAdapter extends BaseExpandableListAdapter imple } statusTextView.setText(status); - /// bind listeners to perform actions - /// bind listeners to perform actions - ImageButton rightButton = (ImageButton) view.findViewById(R.id.upload_right_button); - if (upload.getUploadStatus() == UploadStatus.UPLOAD_IN_PROGRESS) { - //Cancel - rightButton.setImageResource(R.drawable.ic_action_cancel_grey); - rightButton.setVisibility(View.VISIBLE); - rightButton.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - FileUploader.FileUploaderBinder uploaderBinder = mParentActivity.getFileUploaderBinder(); - if (uploaderBinder != null) { - uploaderBinder.cancel(upload); - refreshView(); - } - } - }); - - } else if (upload.getUploadStatus() == UploadStatus.UPLOAD_FAILED) { - //Delete - rightButton.setImageResource(R.drawable.ic_action_delete_grey); - rightButton.setVisibility(View.VISIBLE); - rightButton.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - mUploadsStorageManager.removeUpload(upload); - refreshView(); - } - }); - - } else { // UploadStatus.UPLOAD_SUCCESS - rightButton.setVisibility(View.INVISIBLE); - } - view.setOnClickListener(null); /// Set icon or thumbnail diff --git a/src/main/res/layout/upload_list_item.xml b/src/main/res/layout/upload_list_item.xml index cf0ef44d6b..fd8545d6b3 100755 --- a/src/main/res/layout/upload_list_item.xml +++ b/src/main/res/layout/upload_list_item.xml @@ -102,26 +102,4 @@ android:textSize="@dimen/upload_list_item_text_size_independent"/> - - - - - - - - -