|
@@ -32,6 +32,7 @@ import android.graphics.drawable.Drawable;
|
|
import android.os.Bundle;
|
|
import android.os.Bundle;
|
|
import android.os.Parcelable;
|
|
import android.os.Parcelable;
|
|
import android.support.v4.app.Fragment;
|
|
import android.support.v4.app.Fragment;
|
|
|
|
+import android.support.v4.app.FragmentManager;
|
|
import android.support.v4.app.FragmentTransaction;
|
|
import android.support.v4.app.FragmentTransaction;
|
|
import android.support.v7.app.ActionBar;
|
|
import android.support.v7.app.ActionBar;
|
|
import android.util.Log;
|
|
import android.util.Log;
|
|
@@ -52,6 +53,7 @@ import com.owncloud.android.operations.CreateFolderOperation;
|
|
import com.owncloud.android.operations.RefreshFolderOperation;
|
|
import com.owncloud.android.operations.RefreshFolderOperation;
|
|
import com.owncloud.android.syncadapter.FileSyncAdapter;
|
|
import com.owncloud.android.syncadapter.FileSyncAdapter;
|
|
import com.owncloud.android.ui.dialog.CreateFolderDialogFragment;
|
|
import com.owncloud.android.ui.dialog.CreateFolderDialogFragment;
|
|
|
|
+import com.owncloud.android.ui.dialog.SortingOrderDialogFragment;
|
|
import com.owncloud.android.ui.fragment.FileFragment;
|
|
import com.owncloud.android.ui.fragment.FileFragment;
|
|
import com.owncloud.android.ui.fragment.OCFileListFragment;
|
|
import com.owncloud.android.ui.fragment.OCFileListFragment;
|
|
import com.owncloud.android.utils.DataHolderUtil;
|
|
import com.owncloud.android.utils.DataHolderUtil;
|
|
@@ -61,6 +63,8 @@ import com.owncloud.android.utils.ThemeUtils;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
+import static com.owncloud.android.db.PreferenceManager.getSortOrderByFolder;
|
|
|
|
+
|
|
public class FolderPickerActivity extends FileActivity implements FileFragment.ContainerActivity,
|
|
public class FolderPickerActivity extends FileActivity implements FileFragment.ContainerActivity,
|
|
OnClickListener, OnEnforceableRefreshListener {
|
|
OnClickListener, OnEnforceableRefreshListener {
|
|
|
|
|
|
@@ -76,8 +80,8 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
|
|
|
|
private static final String TAG = FolderPickerActivity.class.getSimpleName();
|
|
private static final String TAG = FolderPickerActivity.class.getSimpleName();
|
|
|
|
|
|
- private static final String TAG_LIST_OF_FOLDERS = "LIST_OF_FOLDERS";
|
|
|
|
-
|
|
|
|
|
|
+ protected static final String TAG_LIST_OF_FOLDERS = "LIST_OF_FOLDERS";
|
|
|
|
+
|
|
private boolean mSyncInProgress;
|
|
private boolean mSyncInProgress;
|
|
|
|
|
|
private boolean mSearchOnlyFolders;
|
|
private boolean mSearchOnlyFolders;
|
|
@@ -93,15 +97,18 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
|
|
|
|
super.onCreate(savedInstanceState);
|
|
super.onCreate(savedInstanceState);
|
|
|
|
|
|
- setContentView(R.layout.files_folder_picker);
|
|
|
|
-
|
|
|
|
|
|
+ if (this instanceof FilePickerActivity) {
|
|
|
|
+ setContentView(R.layout.files_picker);
|
|
|
|
+ } else {
|
|
|
|
+ setContentView(R.layout.files_folder_picker);
|
|
|
|
+ }
|
|
|
|
|
|
// sets callback listeners for UI elements
|
|
// sets callback listeners for UI elements
|
|
initControls();
|
|
initControls();
|
|
|
|
|
|
// Action bar setup
|
|
// Action bar setup
|
|
setupToolbar();
|
|
setupToolbar();
|
|
-
|
|
|
|
|
|
+
|
|
if (getIntent().getStringExtra(EXTRA_ACTION) != null) {
|
|
if (getIntent().getStringExtra(EXTRA_ACTION) != null) {
|
|
switch (getIntent().getStringExtra(EXTRA_ACTION)) {
|
|
switch (getIntent().getStringExtra(EXTRA_ACTION)) {
|
|
case MOVE:
|
|
case MOVE:
|
|
@@ -137,7 +144,7 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
|
|
|
|
setIndeterminate(mSyncInProgress);
|
|
setIndeterminate(mSyncInProgress);
|
|
// always AFTER setContentView(...) ; to work around bug in its implementation
|
|
// always AFTER setContentView(...) ; to work around bug in its implementation
|
|
-
|
|
|
|
|
|
+
|
|
// sets message for empty list of folders
|
|
// sets message for empty list of folders
|
|
setBackgroundText();
|
|
setBackgroundText();
|
|
|
|
|
|
@@ -156,23 +163,23 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
protected void onAccountSet(boolean stateWasRecovered) {
|
|
protected void onAccountSet(boolean stateWasRecovered) {
|
|
super.onAccountSet(stateWasRecovered);
|
|
super.onAccountSet(stateWasRecovered);
|
|
if (getAccount() != null) {
|
|
if (getAccount() != null) {
|
|
-
|
|
|
|
|
|
+
|
|
updateFileFromDB();
|
|
updateFileFromDB();
|
|
-
|
|
|
|
|
|
+
|
|
OCFile folder = getFile();
|
|
OCFile folder = getFile();
|
|
if (folder == null || !folder.isFolder()) {
|
|
if (folder == null || !folder.isFolder()) {
|
|
// fall back to root folder
|
|
// fall back to root folder
|
|
setFile(getStorageManager().getFileByPath(OCFile.ROOT_PATH));
|
|
setFile(getStorageManager().getFileByPath(OCFile.ROOT_PATH));
|
|
folder = getFile();
|
|
folder = getFile();
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
if (!stateWasRecovered) {
|
|
if (!stateWasRecovered) {
|
|
- OCFileListFragment listOfFolders = getListOfFilesFragment();
|
|
|
|
|
|
+ OCFileListFragment listOfFolders = getListOfFilesFragment();
|
|
listOfFolders.listDirectory(folder, false, false);
|
|
listOfFolders.listDirectory(folder, false, false);
|
|
-
|
|
|
|
|
|
+
|
|
startSyncFolderOperation(folder, false);
|
|
startSyncFolderOperation(folder, false);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
updateNavigationElementsInActionBar();
|
|
updateNavigationElementsInActionBar();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -181,7 +188,7 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- private void createFragments() {
|
|
|
|
|
|
+ protected void createFragments() {
|
|
OCFileListFragment listOfFiles = new OCFileListFragment();
|
|
OCFileListFragment listOfFiles = new OCFileListFragment();
|
|
Bundle args = new Bundle();
|
|
Bundle args = new Bundle();
|
|
args.putBoolean(OCFileListFragment.ARG_ONLY_FOLDERS_CLICKABLE, true);
|
|
args.putBoolean(OCFileListFragment.ARG_ONLY_FOLDERS_CLICKABLE, true);
|
|
@@ -224,10 +231,10 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
Log_OC.e(TAG, "Access to non existing list of files fragment!!");
|
|
Log_OC.e(TAG, "Access to non existing list of files fragment!!");
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* {@inheritDoc}
|
|
* {@inheritDoc}
|
|
- *
|
|
|
|
|
|
+ *
|
|
* Updates action bar and second fragment, if in dual pane mode.
|
|
* Updates action bar and second fragment, if in dual pane mode.
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
@@ -242,12 +249,12 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
public void onSavedCertificate() {
|
|
public void onSavedCertificate() {
|
|
startSyncFolderOperation(getCurrentDir(), false);
|
|
startSyncFolderOperation(getCurrentDir(), false);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public void startSyncFolderOperation(OCFile folder, boolean ignoreETag) {
|
|
public void startSyncFolderOperation(OCFile folder, boolean ignoreETag) {
|
|
- long currentSyncTime = System.currentTimeMillis();
|
|
|
|
-
|
|
|
|
|
|
+ long currentSyncTime = System.currentTimeMillis();
|
|
|
|
+
|
|
mSyncInProgress = true;
|
|
mSyncInProgress = true;
|
|
-
|
|
|
|
|
|
+
|
|
// perform folder synchronization
|
|
// perform folder synchronization
|
|
RemoteOperation refreshFolderOperation = new RefreshFolderOperation(folder, currentSyncTime, false,
|
|
RemoteOperation refreshFolderOperation = new RefreshFolderOperation(folder, currentSyncTime, false,
|
|
ignoreETag, getStorageManager(), getAccount(), getApplicationContext());
|
|
ignoreETag, getStorageManager(), getAccount(), getApplicationContext());
|
|
@@ -273,10 +280,10 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
syncIntentFilter.addAction(RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED);
|
|
syncIntentFilter.addAction(RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED);
|
|
mSyncBroadcastReceiver = new SyncBroadcastReceiver();
|
|
mSyncBroadcastReceiver = new SyncBroadcastReceiver();
|
|
registerReceiver(mSyncBroadcastReceiver, syncIntentFilter);
|
|
registerReceiver(mSyncBroadcastReceiver, syncIntentFilter);
|
|
-
|
|
|
|
|
|
+
|
|
Log_OC.d(TAG, "onResume() end");
|
|
Log_OC.d(TAG, "onResume() end");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
protected void onPause() {
|
|
protected void onPause() {
|
|
Log_OC.e(TAG, "onPause() start");
|
|
Log_OC.e(TAG, "onPause() start");
|
|
@@ -285,11 +292,11 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
//LocalBroadcastManager.getInstance(this).unregisterReceiver(mSyncBroadcastReceiver);
|
|
//LocalBroadcastManager.getInstance(this).unregisterReceiver(mSyncBroadcastReceiver);
|
|
mSyncBroadcastReceiver = null;
|
|
mSyncBroadcastReceiver = null;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
Log_OC.d(TAG, "onPause() end");
|
|
Log_OC.d(TAG, "onPause() end");
|
|
super.onPause();
|
|
super.onPause();
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public boolean onCreateOptionsMenu(Menu menu) {
|
|
public boolean onCreateOptionsMenu(Menu menu) {
|
|
MenuInflater inflater = getMenuInflater();
|
|
MenuInflater inflater = getMenuInflater();
|
|
@@ -297,7 +304,7 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
menu.findItem(R.id.action_switch_view).setVisible(false);
|
|
menu.findItem(R.id.action_switch_view).setVisible(false);
|
|
menu.findItem(R.id.action_sync_account).setVisible(false);
|
|
menu.findItem(R.id.action_sync_account).setVisible(false);
|
|
menu.findItem(R.id.action_select_all).setVisible(false);
|
|
menu.findItem(R.id.action_select_all).setVisible(false);
|
|
- menu.findItem(R.id.action_sort).setVisible(false);
|
|
|
|
|
|
+ // menu.findItem(R.id.action_sort).setVisible(false);
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -306,12 +313,8 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
boolean retval = true;
|
|
boolean retval = true;
|
|
switch (item.getItemId()) {
|
|
switch (item.getItemId()) {
|
|
case R.id.action_create_dir: {
|
|
case R.id.action_create_dir: {
|
|
- CreateFolderDialogFragment dialog =
|
|
|
|
- CreateFolderDialogFragment.newInstance(getCurrentFolder());
|
|
|
|
- dialog.show(
|
|
|
|
- getSupportFragmentManager(),
|
|
|
|
- CreateFolderDialogFragment.CREATE_FOLDER_FRAGMENT
|
|
|
|
- );
|
|
|
|
|
|
+ CreateFolderDialogFragment dialog = CreateFolderDialogFragment.newInstance(getCurrentFolder());
|
|
|
|
+ dialog.show(getSupportFragmentManager(), CreateFolderDialogFragment.CREATE_FOLDER_FRAGMENT);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
case android.R.id.home: {
|
|
case android.R.id.home: {
|
|
@@ -321,6 +324,17 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+ case R.id.action_sort: {
|
|
|
|
+ FragmentManager fm = getSupportFragmentManager();
|
|
|
|
+ FragmentTransaction ft = fm.beginTransaction();
|
|
|
|
+ ft.addToBackStack(null);
|
|
|
|
+
|
|
|
|
+ SortingOrderDialogFragment mSortingOrderDialogFragment = SortingOrderDialogFragment.newInstance(
|
|
|
|
+ getSortOrderByFolder(this, getListOfFilesFragment().getCurrentFile()));
|
|
|
|
+ mSortingOrderDialogFragment.show(ft, SortingOrderDialogFragment.SORTING_ORDER_FRAGMENT);
|
|
|
|
+
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
default:
|
|
default:
|
|
retval = super.onOptionsItemSelected(item);
|
|
retval = super.onOptionsItemSelected(item);
|
|
break;
|
|
break;
|
|
@@ -341,7 +355,7 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public void refreshListOfFilesFragment(boolean fromSearch) {
|
|
public void refreshListOfFilesFragment(boolean fromSearch) {
|
|
OCFileListFragment fileListFragment = getListOfFilesFragment();
|
|
OCFileListFragment fileListFragment = getListOfFilesFragment();
|
|
if (fileListFragment != null) {
|
|
if (fileListFragment != null) {
|
|
@@ -350,7 +364,7 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
}
|
|
}
|
|
|
|
|
|
public void browseToRoot() {
|
|
public void browseToRoot() {
|
|
- OCFileListFragment listOfFiles = getListOfFilesFragment();
|
|
|
|
|
|
+ OCFileListFragment listOfFiles = getListOfFilesFragment();
|
|
if (listOfFiles != null) { // should never be null, indeed
|
|
if (listOfFiles != null) { // should never be null, indeed
|
|
OCFile root = getStorageManager().getFileByPath(OCFile.ROOT_PATH);
|
|
OCFile root = getStorageManager().getFileByPath(OCFile.ROOT_PATH);
|
|
listOfFiles.listDirectory(root, false, false);
|
|
listOfFiles.listDirectory(root, false, false);
|
|
@@ -398,10 +412,13 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
mCancelBtn = findViewById(R.id.folder_picker_btn_cancel);
|
|
mCancelBtn = findViewById(R.id.folder_picker_btn_cancel);
|
|
mCancelBtn.setOnClickListener(this);
|
|
mCancelBtn.setOnClickListener(this);
|
|
mChooseBtn = findViewById(R.id.folder_picker_btn_choose);
|
|
mChooseBtn = findViewById(R.id.folder_picker_btn_choose);
|
|
- mChooseBtn.getBackground().setColorFilter(ThemeUtils.primaryColor(this, true), PorterDuff.Mode.SRC_ATOP);
|
|
|
|
- mChooseBtn.setOnClickListener(this);
|
|
|
|
|
|
+
|
|
|
|
+ if (mChooseBtn != null) {
|
|
|
|
+ mChooseBtn.getBackground().setColorFilter(ThemeUtils.primaryColor(this, true), PorterDuff.Mode.SRC_ATOP);
|
|
|
|
+ mChooseBtn.setOnClickListener(this);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public void onClick(View v) {
|
|
public void onClick(View v) {
|
|
if (v.equals(mCancelBtn)) {
|
|
if (v.equals(mCancelBtn)) {
|
|
@@ -418,30 +435,30 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
finish();
|
|
finish();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public void onRemoteOperationFinish(RemoteOperation operation, RemoteOperationResult result) {
|
|
public void onRemoteOperationFinish(RemoteOperation operation, RemoteOperationResult result) {
|
|
super.onRemoteOperationFinish(operation, result);
|
|
super.onRemoteOperationFinish(operation, result);
|
|
-
|
|
|
|
|
|
+
|
|
if (operation instanceof CreateFolderOperation) {
|
|
if (operation instanceof CreateFolderOperation) {
|
|
onCreateFolderOperationFinish((CreateFolderOperation) operation, result);
|
|
onCreateFolderOperationFinish((CreateFolderOperation) operation, result);
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
- * Updates the view associated to the activity after the finish of an operation trying
|
|
|
|
|
|
+ * Updates the view associated to the activity after the finish of an operation trying
|
|
* to create a new folder.
|
|
* to create a new folder.
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param operation Creation operation performed.
|
|
* @param operation Creation operation performed.
|
|
* @param result Result of the creation.
|
|
* @param result Result of the creation.
|
|
*/
|
|
*/
|
|
private void onCreateFolderOperationFinish(
|
|
private void onCreateFolderOperationFinish(
|
|
CreateFolderOperation operation, RemoteOperationResult result
|
|
CreateFolderOperation operation, RemoteOperationResult result
|
|
) {
|
|
) {
|
|
-
|
|
|
|
|
|
+
|
|
if (result.isSuccess()) {
|
|
if (result.isSuccess()) {
|
|
refreshListOfFilesFragment(false);
|
|
refreshListOfFilesFragment(false);
|
|
} else {
|
|
} else {
|
|
@@ -455,7 +472,7 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
private class SyncBroadcastReceiver extends BroadcastReceiver {
|
|
private class SyncBroadcastReceiver extends BroadcastReceiver {
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -472,16 +489,16 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
DataHolderUtil.getInstance().retrieve(intent.getStringExtra(FileSyncAdapter.EXTRA_RESULT));
|
|
DataHolderUtil.getInstance().retrieve(intent.getStringExtra(FileSyncAdapter.EXTRA_RESULT));
|
|
boolean sameAccount = getAccount() != null && accountName.equals(getAccount().name)
|
|
boolean sameAccount = getAccount() != null && accountName.equals(getAccount().name)
|
|
&& getStorageManager() != null;
|
|
&& getStorageManager() != null;
|
|
-
|
|
|
|
|
|
+
|
|
if (sameAccount) {
|
|
if (sameAccount) {
|
|
if (FileSyncAdapter.EVENT_FULL_SYNC_START.equals(event)) {
|
|
if (FileSyncAdapter.EVENT_FULL_SYNC_START.equals(event)) {
|
|
mSyncInProgress = true;
|
|
mSyncInProgress = true;
|
|
} else {
|
|
} else {
|
|
OCFile currentFile = (getFile() == null) ? null :
|
|
OCFile currentFile = (getFile() == null) ? null :
|
|
getStorageManager().getFileByPath(getFile().getRemotePath());
|
|
getStorageManager().getFileByPath(getFile().getRemotePath());
|
|
- OCFile currentDir = (getCurrentFolder() == null) ? null :
|
|
|
|
|
|
+ OCFile currentDir = (getCurrentFolder() == null) ? null :
|
|
getStorageManager().getFileByPath(getCurrentFolder().getRemotePath());
|
|
getStorageManager().getFileByPath(getCurrentFolder().getRemotePath());
|
|
-
|
|
|
|
|
|
+
|
|
if (currentDir == null) {
|
|
if (currentDir == null) {
|
|
// current folder was removed from the server
|
|
// current folder was removed from the server
|
|
DisplayUtils.showSnackMessage(getActivity(), R.string.sync_current_folder_was_removed,
|
|
DisplayUtils.showSnackMessage(getActivity(), R.string.sync_current_folder_was_removed,
|
|
@@ -501,8 +518,8 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
}
|
|
}
|
|
setFile(currentFile);
|
|
setFile(currentFile);
|
|
}
|
|
}
|
|
-
|
|
|
|
- mSyncInProgress = (!FileSyncAdapter.EVENT_FULL_SYNC_END.equals(event) &&
|
|
|
|
|
|
+
|
|
|
|
+ mSyncInProgress = (!FileSyncAdapter.EVENT_FULL_SYNC_END.equals(event) &&
|
|
!RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED.equals(event));
|
|
!RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED.equals(event));
|
|
|
|
|
|
if (RefreshFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED.equals(event) &&
|
|
if (RefreshFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED.equals(event) &&
|
|
@@ -527,9 +544,9 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
|
|
|
|
|
|
setBackgroundText();
|
|
setBackgroundText();
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
} catch (RuntimeException e) {
|
|
} catch (RuntimeException e) {
|
|
- // avoid app crashes after changing the serial id of RemoteOperationResult
|
|
|
|
|
|
+ // avoid app crashes after changing the serial id of RemoteOperationResult
|
|
// in owncloud library with broadcast notifications pending to process
|
|
// in owncloud library with broadcast notifications pending to process
|
|
removeStickyBroadcast(intent);
|
|
removeStickyBroadcast(intent);
|
|
DataHolderUtil.getInstance().delete(intent.getStringExtra(FileSyncAdapter.EXTRA_RESULT));
|
|
DataHolderUtil.getInstance().delete(intent.getStringExtra(FileSyncAdapter.EXTRA_RESULT));
|