[Sim UI enhancement] MobileNetworkSettings UI enhancement
- Add the phone number - Add the mobile network(SPN) - Add the IMEI - Add the EID - Remove the mobile data - Remove the Auto data switch - Remove the calls and SMS default subscription Bug: 318310357 Bug: 298898436 Bug: 298891941 Test: atest MobileNetworkEidPreferenceControllerTest atest MobileNetworkImeiPreferenceControllerTest atest MobileNetworkPhoneNumberPreferenceControllerTest atest MobileNetworkSpnPreferenceControllerTest atest MobileDataPreferenceControllerTest atest MobileNetworkSettingsTest Change-Id: Ie2767056dd04d1131390e3a03d6d82d56fe5b2dc
This commit is contained in:
committed by
SongFerng Wang
parent
c7e0649c2e
commit
8535539582
@@ -34,6 +34,7 @@ import androidx.preference.PreferenceScreen;
|
||||
import androidx.preference.TwoStatePreference;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.flags.Flags;
|
||||
import com.android.settings.network.MobileNetworkRepository;
|
||||
import com.android.settings.wifi.WifiPickerTrackerHelper;
|
||||
import com.android.settingslib.core.lifecycle.Lifecycle;
|
||||
@@ -83,6 +84,9 @@ public class MobileDataPreferenceController extends TelephonyTogglePreferenceCon
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus(int subId) {
|
||||
if (Flags.isDualSimOnboardingEnabled()) {
|
||||
return CONDITIONALLY_UNAVAILABLE;
|
||||
}
|
||||
return subId != SubscriptionManager.INVALID_SUBSCRIPTION_ID
|
||||
? AVAILABLE
|
||||
: AVAILABLE_UNSEARCHABLE;
|
||||
|
Reference in New Issue
Block a user