Hi all. I'm trying to remove subtitle from a mod menu, my project compiles fine, but the app crashes on startup and I don't get any logs. So, what did I do: In the class Menu.java and Setup.h I removed these code fragments.:
then I removed subtitle from all Init methods
That is, now they look like this:
There are no further references to subtitle in the project. What exactly did I do wrong?
Code:
Menu.java:
//********** Sub title **********
TextView subTitle = new TextView(context);
subTitle.setEllipsize(TextUtils.TruncateAt.MARQUEE);
subTitle.setMarqueeRepeatLimit(-1);
subTitle.setSingleLine(true);
subTitle.setSelected(true);
subTitle.setTextColor(TEXT_COLOR);
subTitle.setTextSize(10.0f);
subTitle.setGravity(Gravity.CENTER);
subTitle.setPadding(0, 0, 0, 5);
//********** Adding view components **********
mExpanded.addView(subTitle);
Setup.h:
setText(env, subtitle, OBFUSCATE("<b><marquee><p style=\"font-size:30\">"
"<p style=\"color:green;\">Modded by LGL</p> | "
"https://github.com/LGLTeam | Lorem Ipsum is simply dummy text of the printing and typesetting</p>"
"</marquee></b>"));
That is, now they look like this:
Code:
In Menu.java:
native void Init(Context context, TextView title);
Init(context, title);
In Setup.h:
void Init(JNIEnv *env, jobject thiz, jobject ctx, jobject title){