mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-22 19:01:30 +00:00
This reverts commit f4ccad8329
.
This commit is contained in:
parent
9ed273a32e
commit
58e02308aa
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