|
@@ -619,28 +619,6 @@ public class FileDisplayActivity extends HookActivity
|
|
|
dialog.show(getSupportFragmentManager(), DIALOG_CREATE_FOLDER);
|
|
|
}
|
|
|
|
|
|
- public void uploadLocalFilesSelected() {
|
|
|
- Intent action = new Intent(this, UploadFilesActivity.class);
|
|
|
- action.putExtra(
|
|
|
- UploadFilesActivity.EXTRA_ACCOUNT,
|
|
|
- getAccount()
|
|
|
- );
|
|
|
- startActivityForResult(action, ACTION_SELECT_MULTIPLE_FILES);
|
|
|
- }
|
|
|
-
|
|
|
- public void uploadFromOtherAppsSelected() {
|
|
|
- Intent action = new Intent(Intent.ACTION_GET_CONTENT);
|
|
|
- action = action.setType("*/*").addCategory(Intent.CATEGORY_OPENABLE);
|
|
|
- //Intent.EXTRA_ALLOW_MULTIPLE is only supported on api level 18+, Jelly Bean
|
|
|
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {
|
|
|
- action.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
|
|
|
- }
|
|
|
- startActivityForResult(
|
|
|
- Intent.createChooser(action, getString(R.string.upload_chooser_title)),
|
|
|
- ACTION_SELECT_CONTENT_FROM_APPS
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
private void startSynchronization() {
|
|
|
Log_OC.d(TAG, "Got to start sync");
|
|
|
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.KITKAT) {
|