Settings: sdcard: Refactor unmount calls for new api

Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
San Mehat
2010-02-18 11:44:21 -08:00
parent fbec09d998
commit efb26fd219
2 changed files with 2 additions and 2 deletions

View File

@@ -176,7 +176,7 @@ public class SdCardSettings extends Activity
OnClickListener mUnmountButtonHandler = new OnClickListener() { OnClickListener mUnmountButtonHandler = new OnClickListener() {
public void onClick(View v) { public void onClick(View v) {
try { try {
mMountService.unmountVolume(Environment.getExternalStorageDirectory().toString()); mMountService.unmountVolume(Environment.getExternalStorageDirectory().toString(), false);
} catch (RemoteException ex) { } catch (RemoteException ex) {
} }
} }

View File

@@ -151,7 +151,7 @@ public class Memory extends PreferenceActivity {
IMountService mountService = getMountService(); IMountService mountService = getMountService();
try { try {
if (mountService != null) { if (mountService != null) {
mountService.unmountVolume(Environment.getExternalStorageDirectory().toString()); mountService.unmountVolume(Environment.getExternalStorageDirectory().toString(), false);
} else { } else {
Log.e(TAG, "Mount service is null, can't unmount"); Log.e(TAG, "Mount service is null, can't unmount");
} }