2020-12-21 22:29:15 +00:00
|
|
|
package com.discord.widgets.settings;
|
|
|
|
|
|
|
|
import android.view.View;
|
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
|
|
import com.PatchConfig;
|
2020-12-25 23:51:17 +00:00
|
|
|
import com.discord.app.AppFragment;
|
|
|
|
import com.discord.widgets.tabs.OnTabSelectedListener;
|
2020-12-21 22:29:15 +00:00
|
|
|
import com.discordtest.BuildConfig;
|
|
|
|
|
|
|
|
import lanchon.dexpatcher.annotation.DexAppend;
|
|
|
|
import lanchon.dexpatcher.annotation.DexEdit;
|
|
|
|
import lanchon.dexpatcher.annotation.DexIgnore;
|
|
|
|
|
|
|
|
@DexEdit
|
2021-01-01 21:23:37 +00:00
|
|
|
public final class WidgetSettings extends AppFragment implements OnTabSelectedListener {
|
2020-12-21 22:29:15 +00:00
|
|
|
|
|
|
|
// customversion patch
|
|
|
|
|
|
|
|
// Add on code to add our patch info
|
|
|
|
@DexAppend
|
|
|
|
public void onViewBound(View view) {
|
|
|
|
if (!PatchConfig.CUSTOM_VERSION_ENABLED) {
|
|
|
|
// Patch not enabled
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
TextView appInfoTextView = getAppInfoTextView();
|
|
|
|
CharSequence originalVersionText = appInfoTextView.getText();
|
|
|
|
String newText = originalVersionText+", with Cutthecord patches.. TODO"; // TODO
|
|
|
|
appInfoTextView.setText(newText);
|
|
|
|
}
|
|
|
|
|
|
|
|
@DexIgnore
|
|
|
|
private final TextView getAppInfoTextView() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2020-12-25 23:51:17 +00:00
|
|
|
@DexIgnore
|
|
|
|
@Override
|
|
|
|
public void onTabSelected() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-12-21 22:29:15 +00:00
|
|
|
}
|