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