Skip to content

Commit

Permalink
m7-common: Update VibratorHW.java to use new CMSDK FileUtils
Browse files Browse the repository at this point in the history
Change-Id: I7dac88c5eca334e636835a0ae350e673eb3e8b34
  • Loading branch information
WildfireDEV authored and Flyhalf205 committed Nov 17, 2016
1 parent 9088941 commit 0415824
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmhw/org/cyanogenmod/hardware/VibratorHW.java
Expand Up @@ -16,17 +16,14 @@

package org.cyanogenmod.hardware;

import java.io.File;

import org.cyanogenmod.hardware.util.FileUtils;
import org.cyanogenmod.internal.util.FileUtils;

public class VibratorHW {

private static String AMP_PATH = "/sys/class/timed_output/vibrator/voltage_level";

public static boolean isSupported() {
File f = new File(AMP_PATH);
return f.exists();
return FileUtils.isFileWritable(AMP_PATH);
}

public static int getMaxIntensity() {
Expand Down

0 comments on commit 0415824

Please sign in to comment.