@ -16,14 +16,11 @@
package com.cyanogenmod.settings.device ;
package com.cyanogenmod.settings.device ;
import android.app.ActionBar ;
import android.os.Bundle ;
import android.os.Bundle ;
import android.preference.Preference ;
import android.preference.Preference ;
import android.preference.PreferenceActivity ;
import android.preference.PreferenceActivity ;
import android.preference.SwitchPreference ;
import android.preference.SwitchPreference ;
import android.provider.Settings ;
import android.provider.Settings ;
import android.view.Menu ;
import android.view.MenuItem ;
import org.cyanogenmod.internal.util.ScreenType ;
import org.cyanogenmod.internal.util.ScreenType ;
@ -59,9 +56,6 @@ public class TouchscreenGestureSettings extends PreferenceActivity {
mProximityWakePreference =
mProximityWakePreference =
( SwitchPreference ) findPreference ( KEY_PROXIMITY_WAKE ) ;
( SwitchPreference ) findPreference ( KEY_PROXIMITY_WAKE ) ;
mProximityWakePreference . setOnPreferenceChangeListener ( mProximityListener ) ;
mProximityWakePreference . setOnPreferenceChangeListener ( mProximityListener ) ;
final ActionBar actionBar = getActionBar ( ) ;
actionBar . setDisplayHomeAsUpEnabled ( true ) ;
}
}
@Override
@Override
@ -74,15 +68,6 @@ public class TouchscreenGestureSettings extends PreferenceActivity {
}
}
}
}
@Override
public boolean onOptionsItemSelected ( MenuItem item ) {
if ( item . getItemId ( ) = = android . R . id . home ) {
onBackPressed ( ) ;
return true ;
}
return false ;
}
private boolean enableDoze ( boolean enable ) {
private boolean enableDoze ( boolean enable ) {
return Settings . Secure . putInt ( getContentResolver ( ) ,
return Settings . Secure . putInt ( getContentResolver ( ) ,
Settings . Secure . DOZE_ENABLED , enable ? 1 : 0 ) ;
Settings . Secure . DOZE_ENABLED , enable ? 1 : 0 ) ;