mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-22 12:21:15 +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);
|
new Languages(this).setLanguage(this);
|
||||||
|
|
||||||
if (BuildConfig.DEBUG) {
|
// The main point here is to use a VM policy without
|
||||||
setStrictMode();
|
// `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.
|
||||||
|
|
||||||
private void setStrictMode() {
|
|
||||||
// Set VM policy to avoid crash when sending folder URI to file manager.
|
|
||||||
StrictMode.VmPolicy policy = new StrictMode.VmPolicy.Builder()
|
StrictMode.VmPolicy policy = new StrictMode.VmPolicy.Builder()
|
||||||
.detectAll()
|
.detectAll()
|
||||||
.penaltyLog()
|
.penaltyLog()
|
||||||
|
|
Loading…
Reference in a new issue