Settings: Refactor for new API and remove some unused references / imports

Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
San Mehat
2010-02-05 11:35:45 -08:00
parent 07c61c6dbb
commit 1e60c9603e
5 changed files with 12 additions and 30 deletions

View File

@@ -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) {