Skip to content

Commit

Permalink
HotFix, Filemanager
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielcoderX committed Aug 11, 2024
1 parent e686c69 commit 8c0d002
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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)
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 8c0d002

Please sign in to comment.