Settings: Refresh sd settings screen after mount/unmount
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
@@ -96,8 +96,8 @@ public class Memory extends PreferenceActivity {
|
|||||||
|
|
||||||
StorageEventListener mStorageListener = new StorageEventListener() {
|
StorageEventListener mStorageListener = new StorageEventListener() {
|
||||||
|
|
||||||
public void onVolumeStateChanged(
|
@Override
|
||||||
String label, String path, String oldState, String newState) {
|
public void onStorageStateChanged(String path, String oldState, String newState) {
|
||||||
updateMemoryStatus();
|
updateMemoryStatus();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -156,9 +156,8 @@ public class Memory extends PreferenceActivity {
|
|||||||
Log.e(TAG, "Mount service is null, can't unmount");
|
Log.e(TAG, "Mount service is null, can't unmount");
|
||||||
}
|
}
|
||||||
} catch (RemoteException ex) {
|
} catch (RemoteException ex) {
|
||||||
// Failed for some reason, try to update UI to actual state
|
|
||||||
updateMemoryStatus();
|
|
||||||
}
|
}
|
||||||
|
updateMemoryStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void mount() {
|
private void mount() {
|
||||||
@@ -170,9 +169,8 @@ public class Memory extends PreferenceActivity {
|
|||||||
Log.e(TAG, "Mount service is null, can't mount");
|
Log.e(TAG, "Mount service is null, can't mount");
|
||||||
}
|
}
|
||||||
} catch (RemoteException ex) {
|
} catch (RemoteException ex) {
|
||||||
// Failed for some reason, try to update UI to actual state
|
|
||||||
updateMemoryStatus();
|
|
||||||
}
|
}
|
||||||
|
updateMemoryStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateMemoryStatus() {
|
private void updateMemoryStatus() {
|
||||||
|
Reference in New Issue
Block a user