feat: Globals class for proxying getAppContext

This commit is contained in:
oSumAtrIX 2022-04-12 20:55:12 +02:00
parent 241899197d
commit e98bcd2216
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 18 additions and 5 deletions

View File

@ -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;
}
}

View File

@ -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;
}