Settings: Refresh sd settings screen after mount/unmount

Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
San Mehat
2010-02-07 07:38:02 -08:00
parent 1e60c9603e
commit a2175d1df2

View File

@@ -96,8 +96,8 @@ public class Memory extends PreferenceActivity {
StorageEventListener mStorageListener = new StorageEventListener() {
public void onVolumeStateChanged(
String label, String path, String oldState, String newState) {
@Override
public void onStorageStateChanged(String path, String oldState, String newState) {
updateMemoryStatus();
}
};
@@ -156,9 +156,8 @@ public class Memory extends PreferenceActivity {
Log.e(TAG, "Mount service is null, can't unmount");
}
} catch (RemoteException ex) {
// Failed for some reason, try to update UI to actual state
updateMemoryStatus();
}
updateMemoryStatus();
}
private void mount() {
@@ -170,9 +169,8 @@ public class Memory extends PreferenceActivity {
Log.e(TAG, "Mount service is null, can't mount");
}
} catch (RemoteException ex) {
// Failed for some reason, try to update UI to actual state
updateMemoryStatus();
}
updateMemoryStatus();
}
private void updateMemoryStatus() {