{"push_id":561907047,"size":1,"distinct_size":1,"ref":"refs/heads/lp5.0","head":"53171381b149e82e005105300e95e48a494e9b73","before":"f36abe56db4741b4802460838b259f9cafdf41b0","commits":[{"sha":"53171381b149e82e005105300e95e48a494e9b73","author":{"email":"4de0feaf95fd2060b37b225d0f02a97316e29292@gmail.com","name":"Jean-Pierre Rasquin"},"message":"[2/2] Settings: Add options for battery icon and text in status bar\n\nAvailable options :\n\n- icon : portrait, landscape battery / normal, dotted circle / text only / none\n- battery percent : none / inside icon / next to icon\n\nCharging with portrait and landscape icons :\n\n- without battery percent inside --> show a bolt inside of icon blinking\n- with battery percent inside --> alternate every second between battery percent and bolt inside of icon\n\nCharging with circle icon :\n\n- without battery percent inside --> charged subset of circle will rotate with bolt inside blinking\n- with battery percent inside --> charged subset of circle will rotate with bolt and battery percent alternating inside\n\nCharging text only :\n\n- so far no difference between charging and not charging\n\nTo do :\n\n- add a charging animation or color (?) for text only when I get to it\n\nBased on Zavon Joseph patchset 5\n\nExtended with text option by Jean-Pierre Rasquin <yank555.lu@gmail.com> :\n\n- fixed text not showing on lockscreen at all\n\n- fixed always displaying text when charging on lockscreen bug, now respects user setting on lockscreen as well\n\n- fixed text not showing on expanded notifications\n\n- fixed text only won't stick, will show portrait battery plus text on reboot, settings will reflect last user setting, and be different to what is actually applied\n\n- fixed text will always show on expanded notifications, even when quick tiles are not showing\n\n- fixed white on white landscape in icon battery text (text will switch color as soon as 25% is reached)\n\n- added only show text next to icon in expanded notifications when percent is not shown in the icon, else it's redundant\n\n- fixed code layout\n\n- added charging animation for portrait / landscape icon when battery percent is set to 'inside icon'\n\n- fixed charging bolt not correctly showing on landscape icon\n\n- added charging animation (battery percent - bolt) to circle battery icon\n\n- fixed my derp that never showed charge bolt when battery percent was set to hidden or next to icon\n\n- added animate bolt even when battery percent set to hidden\n\n- fixed charged part of battery icon not drawn between hardcoded critical level (15) and battery safe mode level\n\n- fixed battery percent not shown when not opaque (low battery, white color)\n\n- maxed out circle battery icon size (thx to Griffin Millender)\n\n- added dotted battery icon style (thx to Griffin Millender)\n\n- removed two (make that three) unnecessary observers (thx to Griffin Millender)\n\n- fixed the missing update to notification battery icon (thx to Griffin Millender)\n\n- tiny code cleanup in BatteryMeterView.java\n\nChange-Id: I6b6eff25759740b9288c54522e0b7909ea51db8c\nSigned-off-by: Jean-Pierre Rasquin <yank555.lu@gmail.com>","distinct":true,"url":"https://api.github.com/repos/inffy/frameworks_base/commits/53171381b149e82e005105300e95e48a494e9b73"}]}