diff --git a/app/src/main/java/org/bepass/oblivion/service/OblivionVpnService.java b/app/src/main/java/org/bepass/oblivion/service/OblivionVpnService.java index e7eef75e..4f809d69 100644 --- a/app/src/main/java/org/bepass/oblivion/service/OblivionVpnService.java +++ b/app/src/main/java/org/bepass/oblivion/service/OblivionVpnService.java @@ -502,6 +502,7 @@ private void setLastKnownState(ConnectionState lastKnownState) { } private String getNotificationText() { + FileManager.initialize(this); boolean usePsiphon = FileManager.getBoolean("USERSETTING_psiphon"); boolean useWarp = FileManager.getBoolean("USERSETTING_gool"); boolean proxyMode = FileManager.getBoolean("USERSETTING_proxymode"); @@ -521,6 +522,7 @@ private String getNotificationText() { } private void createNotification() { + FileManager.initialize(this); NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this); NotificationChannelCompat notificationChannel = new NotificationChannelCompat.Builder( "vpn_service", NotificationManagerCompat.IMPORTANCE_DEFAULT) @@ -557,11 +559,9 @@ public void removeConnectionStateObserver(String key) { } private void configure() throws Exception { + FileManager.initialize(this); boolean proxyModeEnabled = FileManager.getBoolean("USERSETTING_proxymode"); - if (proxyModeEnabled) { - // Syncing FileManager - // Proxy mode logic StartOptions so = new StartOptions(); so.setPath(getApplicationContext().getFilesDir().getAbsolutePath());