浏览代码

Don't fade battery icon when charging (#384)

Fixes #372
Danilo Bargen 8 年之前
父节点
当前提交
3b46db7c1b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/directives/battery.ts

+ 1 - 1
src/directives/battery.ts

@@ -30,7 +30,7 @@ export default [
             controllerAs: 'ctrl',
             controller: [function() {
                 this.available = () => batteryStatusService.dataAvailable;
-                this.alert = () => batteryStatusService.isLow;
+                this.alert = () => batteryStatusService.isLow && !batteryStatusService.isCharging;
                 this.percent = () => batteryStatusService.percent;
 
                 this.description = (): string => {