mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Remove unneeded vm policy
This commit is contained in:
parent
aa21ef28f7
commit
eef1c65f66
@ -1,8 +1,6 @@
|
||||
package com.github.libretube
|
||||
|
||||
import android.app.Application
|
||||
import android.os.StrictMode
|
||||
import android.os.StrictMode.VmPolicy
|
||||
import androidx.core.app.NotificationChannelCompat
|
||||
import androidx.core.app.NotificationManagerCompat
|
||||
import androidx.work.ExistingPeriodicWorkPolicy
|
||||
@ -32,12 +30,6 @@ class LibreTubeApp : Application() {
|
||||
*/
|
||||
PreferenceHelper.initialize(applicationContext)
|
||||
|
||||
/**
|
||||
* Bypassing fileUriExposedException, see https://stackoverflow.com/questions/38200282/android-os-fileuriexposedexception-file-storage-emulated-0-test-txt-exposed
|
||||
*/
|
||||
val builder = VmPolicy.Builder()
|
||||
StrictMode.setVmPolicy(builder.build())
|
||||
|
||||
/**
|
||||
* Set the api and the auth api url
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user