Skip to content

Commit

Permalink
整形
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT authored Oct 20, 2024
1 parent 0c7c261 commit ccec2a1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public void hook(LimeOptions limeOptions, XC_LoadPackage.LoadPackageParam loadPa
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
Context context = (Context) param.thisObject;

recommendationResId = context.getResources().getIdentifier("home_tab_contents_recommendation_placement", "id", context.getPackageName());
serviceNameResId = context.getResources().getIdentifier("home_tab_service_name", "id", context.getPackageName());
notificationResId = context.getResources().getIdentifier("notification_hub_row_rolling_view_group", "id", context.getPackageName());
Expand All @@ -47,7 +46,7 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
View view = (View) param.thisObject;
int viewId = view.getId();
// String resourceName = getResourceName(view.getContext(), viewId);
//String resourceName = getResourceName(view.getContext(), viewId);
//XposedBridge.log("View ID: " + viewId + ", Resource Name: " + resourceName);

if (limeOptions.removeRecommendation.checked && viewId == recommendationResId
Expand All @@ -71,7 +70,9 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
);
}

/*
private String getResourceName(Context context, int resourceId) {
return context.getResources().getResourceEntryName(resourceId);
}
*/
}

0 comments on commit ccec2a1

Please sign in to comment.