fix(misc): user agent always being null

This is due to an issue with the order of initialization.
This commit is contained in:
Mathias-Boulay 2024-03-25 19:06:57 +01:00
parent 195568c0f3
commit 0163c6fedc
2 changed files with 1 additions and 2 deletions

View File

@ -57,7 +57,6 @@ public class PojavApplication extends Application {
try {
super.onCreate();
Tools.APP_NAME = getResources().getString(R.string.app_short_name);
Tools.DIR_DATA = getDir("files", MODE_PRIVATE).getParent();
Tools.DIR_CACHE = getCacheDir();

View File

@ -94,7 +94,7 @@ import java.util.Map;
public final class Tools {
public static final float BYTE_TO_MB = 1024 * 1024;
public static final Handler MAIN_HANDLER = new Handler(Looper.getMainLooper());
public static String APP_NAME = "null";
public static String APP_NAME = "PojavLauncher";
public static final Gson GLOBAL_GSON = new GsonBuilder().setPrettyPrinting().create();