mirror of
https://github.com/revanced/revanced-patches
synced 2024-11-09 17:47:18 +01:00
chore(syncforreddit/change-oauth-client-id): revert using downloads directory
This commit is contained in:
parent
8f673da7c9
commit
18ec8f46dd
@ -3,9 +3,7 @@ package android.os;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
public final class Environment {
|
public final class Environment {
|
||||||
public static String DIRECTORY_DOWNLOADS = "Download";
|
public static File getExternalStorageDirectory() {
|
||||||
|
|
||||||
public static File getExternalStoragePublicDirectory(final String type) {
|
|
||||||
throw new UnsupportedOperationException("Stub");
|
throw new UnsupportedOperationException("Stub");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,10 +39,7 @@ class ChangeOAuthClientIdPatch : BytecodePatch(
|
|||||||
return PatchResultError("No client ID provided")
|
return PatchResultError("No client ID provided")
|
||||||
}
|
}
|
||||||
|
|
||||||
File(
|
File(Environment.getExternalStorageDirectory(), "reddit_client_id_revanced.txt").also {
|
||||||
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),
|
|
||||||
"reddit_client_id_revanced.txt"
|
|
||||||
).also {
|
|
||||||
if (it.exists()) return@also
|
if (it.exists()) return@also
|
||||||
|
|
||||||
val error = """
|
val error = """
|
||||||
|
Loading…
Reference in New Issue
Block a user