-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BatteryBar broken with Cyanogenmod 13, fix inside #41
Comments
This project is pretty abandoned (no commits in 2 years), and @zst123 hasn't been active on GitHub since february. If you're willing to invest the time, you might want to track them down (XDA-developers or their commit email address might be a good start?) and see if they can transfer the repo to you. Good luck :) |
Just wanted to post my solution. |
Maybe :) |
could you share your release? thanks. |
With Cyanogenmod 13 the BatteryBar function is broken (at least on "serranoltexx" and official CM 13 nightly). BatteryBar is working with NavBar option, but not with StatusBar option.
When trying to activate BatteryBar with StatusBar, XuiMod did not show the BatteryBar. :(
Thanks to XuiMod is OpenSource it is easy to fix this:
1.) locate file:
BatteryBarMod.java
2a.) locate line:
final Class<?> phoneStatusBar = XposedHelpers.findClass("com.android.systemui.statusbar.phone.PhoneStatusBarView", lpp.classLoader);
replace the line with:
final Class<?> phoneStatusBar = XposedHelpers.findClass("com.android.systemui.statusbar.phone.StatusBarWindowView", lpp.classLoader);
OR
2b) take the line below which states:
XposedBridge.hookAllMethods(phoneStatusBar, "onAttachedToWindow", hook);
replace it with:
XposedBridge.hookAllMethods(phoneStatusBar, "onFinishInflate", hook);
You have to choose only one of the two solutions (2a OR 2b).
I do not know which is the better one.
compile and install ;)
The text was updated successfully, but these errors were encountered: