mirror of
https://github.com/areteruhiro/LIME-beta-hiro.git
synced 2025-02-10 23:41:38 +09:00
整形
This commit is contained in:
parent
0c7c261c21
commit
ccec2a12fd
@ -24,7 +24,6 @@ public class RemoveFlexibleContents implements IHook {
|
|||||||
@Override
|
@Override
|
||||||
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
|
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
|
||||||
Context context = (Context) param.thisObject;
|
Context context = (Context) param.thisObject;
|
||||||
|
|
||||||
recommendationResId = context.getResources().getIdentifier("home_tab_contents_recommendation_placement", "id", context.getPackageName());
|
recommendationResId = context.getResources().getIdentifier("home_tab_contents_recommendation_placement", "id", context.getPackageName());
|
||||||
serviceNameResId = context.getResources().getIdentifier("home_tab_service_name", "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());
|
notificationResId = context.getResources().getIdentifier("notification_hub_row_rolling_view_group", "id", context.getPackageName());
|
||||||
@ -47,7 +46,7 @@ public class RemoveFlexibleContents implements IHook {
|
|||||||
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
|
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
|
||||||
View view = (View) param.thisObject;
|
View view = (View) param.thisObject;
|
||||||
int viewId = view.getId();
|
int viewId = view.getId();
|
||||||
// String resourceName = getResourceName(view.getContext(), viewId);
|
//String resourceName = getResourceName(view.getContext(), viewId);
|
||||||
//XposedBridge.log("View ID: " + viewId + ", Resource Name: " + resourceName);
|
//XposedBridge.log("View ID: " + viewId + ", Resource Name: " + resourceName);
|
||||||
|
|
||||||
if (limeOptions.removeRecommendation.checked && viewId == recommendationResId
|
if (limeOptions.removeRecommendation.checked && viewId == recommendationResId
|
||||||
@ -71,7 +70,9 @@ public class RemoveFlexibleContents implements IHook {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
private String getResourceName(Context context, int resourceId) {
|
private String getResourceName(Context context, int resourceId) {
|
||||||
return context.getResources().getResourceEntryName(resourceId);
|
return context.getResources().getResourceEntryName(resourceId);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user