When erasing an eSIM, verify the device screen PIN lock if one is set.
SIM PIN lock existence isn't checked anymore. Bug: 329202869 Test: manual - see b/329202869#comment41 Change-Id: I2c4d2b7e224973c4afa75573e05afe7607d2ae6b
This commit is contained in:
@@ -26,7 +26,7 @@ import androidx.preference.PreferenceScreen
|
||||
import com.android.settings.R
|
||||
import com.android.settings.core.BasePreferenceController
|
||||
import com.android.settings.network.SubscriptionUtil
|
||||
import com.android.settings.wifi.dpp.WifiDppUtils
|
||||
import com.android.settings.network.telephony.MobileNetworkUtils
|
||||
import com.android.settingslib.spa.framework.util.collectLatestWithLifecycle
|
||||
|
||||
/** This controls a preference allowing the user to delete the profile for an eSIM. */
|
||||
@@ -65,7 +65,7 @@ class DeleteSimProfilePreferenceController(context: Context, preferenceKey: Stri
|
||||
override fun handlePreferenceTreeClick(preference: Preference): Boolean {
|
||||
if (preference.key != preferenceKey) return false
|
||||
|
||||
WifiDppUtils.showLockScreen(mContext) { deleteSim() }
|
||||
MobileNetworkUtils.showLockScreen(mContext) { deleteSim() }
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user