android 5.0修改插电显示电池百分比,拔掉不显示问题

git diff frameworks/base/packages/SystemUI/Android.mk >diff.txt


a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardStatusBarView.java
@@ -165,7 +165,7 @@ public class KeyguardStatusBarView extends RelativeLayout
                 mMultiUserSwitch.setVisibility(View.GONE);
             }
         }
-        mBatteryLevel.setVisibility(mBatteryCharging ? View.VISIBLE : View.GONE);
+        mBatteryLevel.setVisibility(mBatteryCharging ? View.VISIBLE : View.VISIBLE);
     }

你可能感兴趣的:(android 5.0修改插电显示电池百分比,拔掉不显示问题)