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

Commit 2be66cb5 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "Don't display prompt when card inserted/removed" into cm-10.2

parents 5d93f5ca 5f5fa7db
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -228,6 +228,15 @@ public class UiccCard {
    }

    private void onIccSwap(boolean isAdded) {

        boolean isHotSwapSupported = mContext.getResources().getBoolean(
                com.android.internal.R.bool.config_hotswapCapable);

        if(isHotSwapSupported) {
            //no need to prompt the user to reboot the device
            return;
        }

        synchronized (mLock) {
            // TODO: Here we assume the device can't handle SIM hot-swap
            //      and has to reboot. We may want to add a property,