Have SecuritySettings and SoundSettings use getCurrentPhoneType
To preserve proper behavior now that getPhoneType can return PHONE_TYPE_NONE use getCurrentPhoneType. bug: 3198435 Change-Id: I39d385b17d746f3c7cdbc3e1869efa5d4e89230c
This commit is contained in:
@@ -99,7 +99,7 @@ public class SoundSettings extends SettingsPreferenceFragment implements
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
ContentResolver resolver = getContentResolver();
|
||||
int activePhoneType = TelephonyManager.getDefault().getPhoneType();
|
||||
int activePhoneType = TelephonyManager.getDefault().getCurrentPhoneType();
|
||||
|
||||
mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
|
||||
|
||||
|
Reference in New Issue
Block a user