fix formatting

This commit is contained in:
AndyScherzinger 2017-10-10 23:48:27 +02:00 committed by tobiaskaminsky
parent 982e276284
commit 4d49735c7b
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
2 changed files with 3 additions and 4 deletions

View file

@ -129,11 +129,11 @@ public class MainApp extends MultiDexApplication {
Log_OC.d("Debug", "start logging"); Log_OC.d("Debug", "start logging");
} }
if (Build.VERSION.SDK_INT >= 24){ if (Build.VERSION.SDK_INT >= 24) {
try { try {
Method m = StrictMode.class.getMethod("disableDeathOnFileUriExposure"); Method m = StrictMode.class.getMethod("disableDeathOnFileUriExposure");
m.invoke(null); m.invoke(null);
} catch(Exception e){ } catch (Exception e) {
Log_OC.d("Debug", "Failed to disable uri exposure"); Log_OC.d("Debug", "Failed to disable uri exposure");
} }
} }

View file

@ -119,8 +119,7 @@ public class DocumentsStorageProvider extends DocumentsProvider {
} while (!file.isDown()); } while (!file.isDown());
} }
return ParcelFileDescriptor.open( return ParcelFileDescriptor.open(new File(file.getStoragePath()), ParcelFileDescriptor.parseMode(mode));
new File(file.getStoragePath()), ParcelFileDescriptor.parseMode(mode));
} }
@Override @Override