Loading services/java/com/android/server/MountService.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -1144,6 +1144,17 @@ class MountService extends IMountService.Stub // Post a unmount message. // Post a unmount message. ShutdownCallBack ucb = new ShutdownCallBack(path, observer); ShutdownCallBack ucb = new ShutdownCallBack(path, observer); mHandler.sendMessage(mHandler.obtainMessage(H_UNMOUNT_PM_UPDATE, ucb)); mHandler.sendMessage(mHandler.obtainMessage(H_UNMOUNT_PM_UPDATE, ucb)); } else if (observer != null) { /* * Observer is waiting for onShutDownComplete when we are done. * Since nothing will be done send notification directly so shutdown * sequence can continue. */ try { observer.onShutDownComplete(StorageResultCode.OperationSucceeded); } catch (RemoteException e) { Slog.w(TAG, "RemoteException when shutting down"); } } } } } Loading Loading
services/java/com/android/server/MountService.java +11 −0 Original line number Original line Diff line number Diff line Loading @@ -1144,6 +1144,17 @@ class MountService extends IMountService.Stub // Post a unmount message. // Post a unmount message. ShutdownCallBack ucb = new ShutdownCallBack(path, observer); ShutdownCallBack ucb = new ShutdownCallBack(path, observer); mHandler.sendMessage(mHandler.obtainMessage(H_UNMOUNT_PM_UPDATE, ucb)); mHandler.sendMessage(mHandler.obtainMessage(H_UNMOUNT_PM_UPDATE, ucb)); } else if (observer != null) { /* * Observer is waiting for onShutDownComplete when we are done. * Since nothing will be done send notification directly so shutdown * sequence can continue. */ try { observer.onShutDownComplete(StorageResultCode.OperationSucceeded); } catch (RemoteException e) { Slog.w(TAG, "RemoteException when shutting down"); } } } } } Loading