Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dde25397 authored by San Mehat's avatar San Mehat
Browse files

MountService: Remove ACTION_SHUTDOWN handler



   Shutdown handlers run too early for unmounting, so don't handle it.
Shutdown will be called explicitly from the ShutdownThread

Signed-off-by: default avatarSan Mehat <san@google.com>
parent 1b780a01
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -115,8 +115,6 @@ class MountService extends IMountService.Stub {
        // start processing events before we ought-to
        mContext.registerReceiver(mBroadcastReceiver,
                new IntentFilter(Intent.ACTION_BOOT_COMPLETED), null, null);
        mContext.registerReceiver(mBroadcastReceiver,
                new IntentFilter(Intent.ACTION_SHUTDOWN), null, null);

        mListener =  new MountListener(this);       
        mShowSafeUnmountNotificationWhenUnmounted = false;
@@ -133,8 +131,6 @@ class MountService extends IMountService.Stub {
            if (action.equals(Intent.ACTION_BOOT_COMPLETED)) {
                Thread thread = new Thread(mListener, MountListener.class.getName());
                thread.start();
            } else if (action.equals(Intent.ACTION_SHUTDOWN)) {
                shutdown();
            }
        }
    };