Skip to content

Commit

Permalink
CHANGELOG: [Experiment] Fixed battery icon unwanted resize
Browse files Browse the repository at this point in the history
  • Loading branch information
siavash79 committed Jan 20, 2024
1 parent f8f820f commit 764cc53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/edit2MakeNewCanary
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Editing this file will trigger the build script for a new canary.
Editing this file will trigger the build script for a new canary..
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ private static void updateBatteryViewValues(View view)

@Override
public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) {
BatteryDataProvider.registerInfoCallback(BatteryStyleManager::refreshAllBatteryIcons);

findAndHookConstructor("com.android.settingslib.graph.ThemedBatteryDrawable", lpparam.classLoader, Context.class, int.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
Expand Down

0 comments on commit 764cc53

Please sign in to comment.