feat: Update to patcher v22
This commit is contained in:
parent
c4a720fbd3
commit
724e6d61b2
420 changed files with 4247 additions and 4429 deletions
|
|
@ -1,14 +1,18 @@
|
|||
package app.revanced.extension.twitch;
|
||||
|
||||
import app.revanced.extension.shared.ResourceType;
|
||||
|
||||
public class Utils {
|
||||
|
||||
/* Called from SettingsPatch smali */
|
||||
public static int getStringId(String name) {
|
||||
return app.revanced.extension.shared.Utils.getResourceIdentifier(name, "string");
|
||||
return app.revanced.extension.shared.Utils.getResourceIdentifier(
|
||||
ResourceType.STRING, name);
|
||||
}
|
||||
|
||||
/* Called from SettingsPatch smali */
|
||||
public static int getDrawableId(String name) {
|
||||
return app.revanced.extension.shared.Utils.getResourceIdentifier(name, "drawable");
|
||||
return app.revanced.extension.shared.Utils.getResourceIdentifier(
|
||||
ResourceType.DRAWABLE, name);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,16 +2,19 @@ package app.revanced.extension.twitch.settings;
|
|||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.appcompat.app.ActionBar;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import app.revanced.extension.shared.Logger;
|
||||
import app.revanced.extension.shared.ResourceType;
|
||||
import app.revanced.extension.shared.Utils;
|
||||
import app.revanced.extension.twitch.settings.preference.ReVancedPreferenceFragment;
|
||||
import tv.twitch.android.feature.settings.menu.SettingsMenuGroup;
|
||||
import tv.twitch.android.settings.SettingsActivity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Hooks AppCompatActivity.
|
||||
* <p>
|
||||
|
|
@ -105,7 +108,7 @@ public class AppCompatActivityHook {
|
|||
|
||||
base.getFragmentManager()
|
||||
.beginTransaction()
|
||||
.replace(Utils.getResourceIdentifier("fragment_container", "id"), fragment)
|
||||
.replace(Utils.getResourceIdentifier(ResourceType.ID, "fragment_container"), fragment)
|
||||
.commit();
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue