[Settings] Avoid from Guest user to access UI which requires permission
for changing mobile networi configurations 1. Confirm eSIM deletion should not be accessible by the end user 2. Erase eSIMs UI should should not be accessible by the end user Bug: 260726944 Test: local Change-Id: I45792fd451dbdc8a0788922480a7fa51f1267a68
This commit is contained in:
@@ -57,7 +57,8 @@ public class ConfirmSimDeletionPreferenceController extends BasePreferenceContro
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
// hide if eSim is not supported on the device
|
||||
return MobileNetworkUtils.showEuiccSettings(mContext) ? AVAILABLE : UNSUPPORTED_ON_DEVICE;
|
||||
return (!MobileNetworkUtils.isMobileNetworkUserRestricted(mContext)) &&
|
||||
MobileNetworkUtils.showEuiccSettings(mContext) ? AVAILABLE : UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
private boolean getGlobalState() {
|
||||
|
||||
Reference in New Issue
Block a user