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

Commit d0eed06d authored by Danesh M's avatar Danesh M
Browse files

Settings : Fix back button for sim card lock

CYNGNOS-2151

Change-Id: I5420c07931a6aa620328f9f8844512cac9bf1638
(cherry picked from commit 672db85f)
parent 6f987526
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ import android.telephony.SubscriptionInfo;
import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;
import android.widget.ListView;
import android.widget.Toast;
@@ -210,6 +211,16 @@ public class IccLockSettings extends InstrumentedPreferenceActivity
        updatePreferences();
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        if (item.getItemId() == android.R.id.home) {
            finish();
            return true;
        }
        return false;
    }


    private void updatePreferences() {
        mPinDialog.setEnabled(mPhone != null);
        mPinToggle.setEnabled(mPhone != null);