diff --git a/app/src/main/java/app.revanced/integrations/Globals.java b/app/src/main/java/app.revanced/integrations/Globals.java new file mode 100644 index 00000000..07e680d3 --- /dev/null +++ b/app/src/main/java/app.revanced/integrations/Globals.java @@ -0,0 +1,18 @@ +package app.revanced.integrations; + +import android.annotation.SuppressLint; +import android.content.Context; +import android.util.Log; + +public class Globals { + public static Context context; + + public static Context getAppContext() { + + if (context != null) { + return context; + } + Log.e("Globals", "Context is null!"); + return null; + } +} \ No newline at end of file diff --git a/app/src/main/java/com/google/android/apps/youtube/app/YouTubeTikTokRoot_Application.java b/app/src/main/java/com/google/android/apps/youtube/app/YouTubeTikTokRoot_Application.java index 2c321f2a..8da9aba8 100644 --- a/app/src/main/java/com/google/android/apps/youtube/app/YouTubeTikTokRoot_Application.java +++ b/app/src/main/java/com/google/android/apps/youtube/app/YouTubeTikTokRoot_Application.java @@ -2,13 +2,8 @@ package com.google.android.apps.youtube.app; import android.app.Application; import android.content.Context; -import android.os.Bundle; public class YouTubeTikTokRoot_Application extends Application { - protected void onCreate(final Bundle bundle) { - super.onCreate(); - } - public static Context getAppContext() { return null; }