Remove unneeded vm policy

This commit is contained in:
Bnyro 2023-06-02 16:02:10 +02:00
parent aa21ef28f7
commit eef1c65f66

View File

@ -1,8 +1,6 @@
package com.github.libretube package com.github.libretube
import android.app.Application import android.app.Application
import android.os.StrictMode
import android.os.StrictMode.VmPolicy
import androidx.core.app.NotificationChannelCompat import androidx.core.app.NotificationChannelCompat
import androidx.core.app.NotificationManagerCompat import androidx.core.app.NotificationManagerCompat
import androidx.work.ExistingPeriodicWorkPolicy import androidx.work.ExistingPeriodicWorkPolicy
@ -32,12 +30,6 @@ class LibreTubeApp : Application() {
*/ */
PreferenceHelper.initialize(applicationContext) 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 * Set the api and the auth api url
*/ */