fix(Twitter): Correct extension path to fix crashes
This commit is contained in:
parent
bfa94c9463
commit
f4b2545742
14 changed files with 2 additions and 24 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
package app.revanced.twitter.patches.links;
|
package app.revanced.extension.twitter.patches.links;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public final class ChangeLinkSharingDomainPatch {
|
public final class ChangeLinkSharingDomainPatch {
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
package app.revanced.twitter.patches.links;
|
|
||||||
|
|
||||||
import android.content.Context;
|
|
||||||
import android.content.Intent;
|
|
||||||
|
|
||||||
import app.revanced.extension.shared.Logger;
|
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
|
||||||
@Deprecated(forRemoval = true)
|
|
||||||
public final class OpenLinksWithAppChooserPatch {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Injection point.
|
|
||||||
*/
|
|
||||||
public static void openWithChooser(final Context context, final Intent intent) {
|
|
||||||
Logger.printInfo(() -> "Opening intent with chooser: " + intent);
|
|
||||||
|
|
||||||
intent.setAction("android.intent.action.VIEW");
|
|
||||||
|
|
||||||
context.startActivity(Intent.createChooser(intent, null));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -14,7 +14,7 @@ import java.net.InetAddress
|
||||||
import java.net.UnknownHostException
|
import java.net.UnknownHostException
|
||||||
import java.util.logging.Logger
|
import java.util.logging.Logger
|
||||||
|
|
||||||
internal const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/twitter/patches/links/ChangeLinkSharingDomainPatch;"
|
internal const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/twitter/patches/links/ChangeLinkSharingDomainPatch;"
|
||||||
|
|
||||||
internal val domainNameOption = stringOption(
|
internal val domainNameOption = stringOption(
|
||||||
default = "fxtwitter.com",
|
default = "fxtwitter.com",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue