diff --git a/app/src/main/java/io/github/chipppppppppp/lime/Main.java b/app/src/main/java/io/github/chipppppppppp/lime/Main.java
index e361ffbe..11ad011c 100644
--- a/app/src/main/java/io/github/chipppppppppp/lime/Main.java
+++ b/app/src/main/java/io/github/chipppppppppp/lime/Main.java
@@ -18,6 +18,7 @@
public class Main implements IXposedHookLoadPackage {
public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lparam) throws Throwable {
+ if (!lparam.packageName.equals("jp.naver.line.android")) return;
XSharedPreferences prefs = new XSharedPreferences("io.github.chipppppppppp.lime", "settings");
prefs.reload();
boolean deleteVoom = prefs.getBoolean("delete_voom", true);
@@ -42,7 +43,21 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
XposedHelpers.findAndHookMethod(hookTarget, "onAttachedToWindow", new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
- ((ViewGroup) ((View) param.thisObject).getParent().getParent().getParent()).removeAllViews();
+ ViewGroup viewGroup = ((ViewGroup) ((View) param.thisObject).getParent().getParent().getParent());
+ viewGroup.setVisibility(View.GONE);
+ ViewGroup.LayoutParams layoutParams = viewGroup.getLayoutParams();
+ layoutParams.height = 0;
+ viewGroup.setLayoutParams(layoutParams);
+ }
+ });
+ XposedHelpers.findAndHookMethod(hookTarget, "onDrawForeground", Canvas.class, new XC_MethodHook() {
+ @Override
+ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
+ ViewGroup viewGroup = ((ViewGroup) ((View) param.thisObject).getParent().getParent().getParent());
+ viewGroup.setVisibility(View.GONE);
+ ViewGroup.LayoutParams layoutParams = viewGroup.getLayoutParams();
+ layoutParams.height = 0;
+ viewGroup.setLayoutParams(layoutParams);
}
});
hookTarget = lparam.classLoader.loadClass("com.linecorp.line.admolin.smartch.v2.view.SmartChannelViewLayout");
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
index 4dd920ef..d1c087c0 100644
--- a/app/src/main/res/values/arrays.xml
+++ b/app/src/main/res/values/arrays.xml
@@ -3,7 +3,7 @@
- jp.naver.line.android
-
+
- Reply
- Reply to all