Settings: Refactor for new API and remove some unused references / imports
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
@@ -25,7 +25,6 @@ import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.media.AudioManager;
|
||||
import android.os.Bundle;
|
||||
import android.os.IMountService;
|
||||
import android.os.RemoteException;
|
||||
import android.os.ServiceManager;
|
||||
import android.preference.CheckBoxPreference;
|
||||
@@ -59,8 +58,6 @@ public class SoundSettings extends PreferenceActivity implements
|
||||
|
||||
private CheckBoxPreference mSilent;
|
||||
|
||||
private IMountService mMountService = null;
|
||||
|
||||
/*
|
||||
* If we are currently in one of the silent modes (the ringer mode is set to either
|
||||
* "silent mode" or "vibrate mode"), then toggling the "Phone vibrate"
|
||||
@@ -95,8 +92,6 @@ public class SoundSettings extends PreferenceActivity implements
|
||||
|
||||
mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
|
||||
|
||||
mMountService = IMountService.Stub.asInterface(ServiceManager.getService("mount"));
|
||||
|
||||
addPreferencesFromResource(R.xml.sound_settings);
|
||||
|
||||
if (TelephonyManager.PHONE_TYPE_CDMA != activePhoneType) {
|
||||
|
Reference in New Issue
Block a user