diff --git a/src/main/java/com/owncloud/android/ui/activity/UploadListActivity.java b/src/main/java/com/owncloud/android/ui/activity/UploadListActivity.java index a057c82cd8..4d9d6dc3ed 100755 --- a/src/main/java/com/owncloud/android/ui/activity/UploadListActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/UploadListActivity.java @@ -35,8 +35,6 @@ import android.os.Bundle; import android.os.IBinder; import android.support.design.widget.BottomNavigationView; import android.support.v4.app.FragmentTransaction; -import android.view.Menu; -import android.view.MenuInflater; import android.view.MenuItem; import android.view.View; import android.widget.Toast; @@ -54,8 +52,8 @@ import com.owncloud.android.lib.common.operations.RemoteOperationResult; import com.owncloud.android.lib.common.utils.Log_OC; import com.owncloud.android.operations.CheckCurrentCredentialsOperation; import com.owncloud.android.ui.fragment.UploadListFragment; -import com.owncloud.android.utils.DisplayUtils; import com.owncloud.android.utils.AnalyticsUtils; +import com.owncloud.android.utils.DisplayUtils; import com.owncloud.android.utils.MimeTypeUtil; import java.io.File; @@ -212,18 +210,6 @@ public class UploadListActivity extends FileActivity implements UploadListFragme openDrawer(); } - case R.id.action_clear_successfull_uploads: - storageManager = new UploadsStorageManager(getContentResolver(), getApplicationContext()); - storageManager.clearSuccessfulUploads(); - uploadListFragment.updateUploads(); - break; - - case R.id.action_clear_finished_uploads: - storageManager = new UploadsStorageManager(getContentResolver(), getApplicationContext()); - storageManager.clearAllFinishedButNotDelayedUploads(); - uploadListFragment.updateUploads(); - break; - default: retval = super.onOptionsItemSelected(item); } @@ -231,13 +217,6 @@ public class UploadListActivity extends FileActivity implements UploadListFragme return retval; } - @Override - public boolean onCreateOptionsMenu(Menu menu) { - MenuInflater inflater = getMenuInflater(); - inflater.inflate(R.menu.upload_list_menu, menu); - return true; - } - @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); diff --git a/src/main/res/menu/upload_list_menu.xml b/src/main/res/menu/upload_list_menu.xml deleted file mode 100755 index 278cb9e455..0000000000 --- a/src/main/res/menu/upload_list_menu.xml +++ /dev/null @@ -1,27 +0,0 @@ - - -
\ No newline at end of file