Skip to content

Commit e15bfd6

Browse files
committed
ref(Twitter): refactor native downloader package name
1 parent 71c2823 commit e15bfd6

File tree

2 files changed

+3
-5
lines changed
  • extensions/twitter/src/main/java/app/revanced/extension/twitter/patches/nativeFeatures/downloader
  • patches/src/main/kotlin/app/crimera/patches/twitter/misc/shareMenu/nativeDownloader

2 files changed

+3
-5
lines changed

extensions/twitter/src/main/java/app/revanced/extension/twitter/patches/nativeFeatures/NativeDownloader.java renamed to extensions/twitter/src/main/java/app/revanced/extension/twitter/patches/nativeFeatures/downloader/NativeDownloader.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package app.revanced.extension.twitter.patches.nativeFeatures;
1+
package app.revanced.extension.twitter.patches.nativeFeatures.downloader;
22

33
import android.app.AlertDialog;
44
import android.content.Context;
@@ -94,9 +94,7 @@ public static void downloader(Context activity, Object tweetObj) throws NoSuchMe
9494
try {
9595
Tweet tweet = new Tweet(tweetObj);
9696
ArrayList<Media> media = tweet.getMedias();
97-
for(Media m:media){
98-
Utils.logger(m);
99-
}
97+
10098
assert media != null;
10199
if (media.isEmpty()) {
102100
Utils.toast(Utils.strRes("piko_pref_native_downloader_no_media"));

patches/src/main/kotlin/app/crimera/patches/twitter/misc/shareMenu/nativeDownloader/NativeDownloaderPatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ val nativeDownloaderPatch =
1919
val prefFunctionName = "enableNativeDownloader"
2020
val stringId = "piko_pref_native_downloader_alert_title"
2121
val iconId = "ic_vector_incoming"
22-
val functionReference = "/NativeDownloader;->downloader"
22+
val functionReference = "/downloader/NativeDownloader;->downloader"
2323
val statusFunctionName = "nativeDownloader"
2424
shareMenuButtonInjection(actionName, prefFunctionName, stringId, iconId, functionReference, statusFunctionName)
2525
}

0 commit comments

Comments
 (0)