[Settings][Back port] configuration for hidding SIM remove UI
Hide SIM remove UI based on configuraion. Bug: 240515161 Test: test cases and local testing Change-Id: I866b2dd566ffa9953f2a83aa3dcb32440390898a
This commit is contained in:
@@ -51,7 +51,8 @@ public class EraseEuiccDataController extends BasePreferenceController {
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
return mContext.getPackageManager().hasSystemFeature(
|
||||
return SubscriptionUtil.isSimHardwareVisible(mContext) &&
|
||||
mContext.getPackageManager().hasSystemFeature(
|
||||
PackageManager.FEATURE_TELEPHONY_EUICC) ? AVAILABLE_UNSEARCHABLE
|
||||
: UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user