vibrator intensity: disable tunable framework if not supported

Change-Id: I6481b82b7ee5412234d42e39f7f5560489f14af3
tirimbino
David Daynard 11 years ago committed by Daniel Hillenbrand
parent f30a562c57
commit f138a2fb67
  1. 8
      cmhw/org/cyanogenmod/hardware/VibratorHW.java

@ -29,7 +29,13 @@ public class VibratorHW {
private static String LEVEL_THRESHOLD_PATH = "/sys/class/timed_output/vibrator/pwm_threshold";
public static boolean isSupported() {
return true;
File f = new File(LEVEL_PATH);
if(f.exists()) {
return true;
} else {
return false;
}
}
public static int getMaxIntensity() {

Loading…
Cancel
Save