Skip to content

Commit

Permalink
- use J8+ compatible API for path access to avoid samsung J11 ART issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rodvar committed Feb 21, 2025
1 parent 3832199 commit 558e685
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import java.io.IOException;
import java.nio.channels.FileLock;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import java.util.Locale;
import java.util.Optional;
Expand Down Expand Up @@ -139,7 +140,8 @@ public ApplicationService(String configFileName, String[] args, Path userDataDir
Path appDataDir = OptionUtils.findOptionValue(args, "--data-dir")
.map(Path::of)
.orElse(userDataDir.resolve(appName));
File customConfigFile = Path.of(appDataDir.toString(), "bisq.conf").toFile();
// J8 compatible to avoid issues on mobile Samsung devices
File customConfigFile = Paths.get(appDataDir.toString(), "bisq.conf").toFile();
com.typesafe.config.Config typesafeConfig;
boolean customConfigProvided = customConfigFile.exists();
if (customConfigProvided) {
Expand Down

0 comments on commit 558e685

Please sign in to comment.