mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
fix formatting
This commit is contained in:
parent
982e276284
commit
4d49735c7b
2 changed files with 3 additions and 4 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue