File tree 1 file changed +10
-13
lines changed
app/src/main/java/com/owncloud/android
1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ public PowerManagementService getPowerManagementService() {
217
217
218
218
private String getAppProcessName () {
219
219
String processName = "" ;
220
- if (Build .VERSION .SDK_INT < Build .VERSION_CODES .P ) {
220
+ if (Build .VERSION .SDK_INT < Build .VERSION_CODES .P ) {
221
221
ActivityManager manager = (ActivityManager ) this .getSystemService (Context .ACTIVITY_SERVICE );
222
222
final int ownPid = android .os .Process .myPid ();
223
223
final List <ActivityManager .RunningAppProcessInfo > processes = manager .getRunningAppProcesses ();
@@ -488,20 +488,17 @@ private void fixStoragePath() {
488
488
}
489
489
490
490
private void enableStrictMode () {
491
- if (BuildConfig .DEBUG && BuildConfig .RUNTIME_PERF_ANALYSIS ) {
492
- Log_OC .d (TAG , "Enabling StrictMode" );
493
- StrictMode .setThreadPolicy (new StrictMode .ThreadPolicy .Builder ()
494
- .detectDiskReads ()
495
- .detectDiskWrites ()
496
- .detectAll ()
497
- .penaltyLog ()
498
- .build ());
499
- StrictMode .setVmPolicy (new StrictMode .VmPolicy .Builder ()
500
- .detectLeakedSqlLiteObjects ()
501
- .detectLeakedClosableObjects ()
491
+ StrictMode .setThreadPolicy (new StrictMode .ThreadPolicy .Builder ()
492
+ .detectDiskReads ()
493
+ .detectDiskWrites ()
494
+ .detectAll ()
502
495
.penaltyLog ()
503
496
.build ());
504
- }
497
+ StrictMode .setVmPolicy (new StrictMode .VmPolicy .Builder ()
498
+ .detectLeakedSqlLiteObjects ()
499
+ .detectLeakedClosableObjects ()
500
+ .penaltyLog ()
501
+ .build ());
505
502
}
506
503
507
504
public static void initSyncOperations (
You can’t perform that action at this time.
0 commit comments