Hardware: Samsung: simplify CMHW isSupported check

Change-Id: Ia07e20baf5c72dc33394ae48fbacd548592c207f
tirimbino
Dave Daynard 10 years ago
parent f1b9dcdf72
commit 5828e5e904
  1. 7
      cmhw/org/cyanogenmod/hardware/AdaptiveBacklight.java
  2. 7
      cmhw/org/cyanogenmod/hardware/VibratorHW.java

@ -37,12 +37,7 @@ public class AdaptiveBacklight {
*/
public static boolean isSupported() {
File f = new File(FILE_CABC);
if(f.exists()) {
return true;
} else {
return false;
}
return f.exists();
}
/**

@ -30,12 +30,7 @@ public class VibratorHW {
public static boolean isSupported() {
File f = new File(LEVEL_PATH);
if(f.exists()) {
return true;
} else {
return false;
}
return f.exists();
}
public static int getMaxIntensity() {

Loading…
Cancel
Save