Loading services/java/com/android/server/LightsService.java +1 −2 Original line number Diff line number Diff line Loading @@ -148,7 +148,6 @@ public class LightsService { fis.close(); return (result != '0'); } catch (Exception e) { Slog.e(TAG, "getFlashlightEnabled failed", e); return false; } } Loading @@ -168,7 +167,7 @@ public class LightsService { fos.write(bytes); fos.close(); } catch (Exception e) { Slog.e(TAG, "setFlashlightEnabled failed", e); // fail silently } } }; Loading Loading
services/java/com/android/server/LightsService.java +1 −2 Original line number Diff line number Diff line Loading @@ -148,7 +148,6 @@ public class LightsService { fis.close(); return (result != '0'); } catch (Exception e) { Slog.e(TAG, "getFlashlightEnabled failed", e); return false; } } Loading @@ -168,7 +167,7 @@ public class LightsService { fos.write(bytes); fos.close(); } catch (Exception e) { Slog.e(TAG, "setFlashlightEnabled failed", e); // fail silently } } }; Loading