mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-25 13:51:16 +00:00
Revert using StrictMode VmPolicy only in debug build type (fixes #2032)
This reverts commit f4ccad8329
.
This commit is contained in:
parent
5cabe050cc
commit
6594955c00
1 changed files with 4 additions and 7 deletions
|
@ -25,13 +25,10 @@ public class SyncthingApp extends Application {
|
|||
|
||||
new Languages(this).setLanguage(this);
|
||||
|
||||
if (BuildConfig.DEBUG) {
|
||||
setStrictMode();
|
||||
}
|
||||
}
|
||||
|
||||
private void setStrictMode() {
|
||||
// Set VM policy to avoid crash when sending folder URI to file manager.
|
||||
// The main point here is to use a VM policy without
|
||||
// `detectFileUriExposure`, as that leads to exceptions when e.g.
|
||||
// opening the ignores file. And it's enabled by default.
|
||||
// We might want to disable `detectAll` and `penaltyLog` on release (non-RC) builds too.
|
||||
StrictMode.VmPolicy policy = new StrictMode.VmPolicy.Builder()
|
||||
.detectAll()
|
||||
.penaltyLog()
|
||||
|
|
Loading…
Reference in a new issue