Merge pull request #5544 from mhmdanas/remove-content-uri

Remove License#contentUri
This commit is contained in:
Tobi 2021-02-14 23:49:07 +01:00 committed by GitHub
commit 8c75b96c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 9 deletions

View File

@ -1,6 +1,5 @@
package org.schabi.newpipe.about
import android.net.Uri
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
import java.io.Serializable
@ -9,11 +8,4 @@ import java.io.Serializable
* Class for storing information about a software license.
*/
@Parcelize
class License(val name: String, val abbreviation: String, val filename: String) : Parcelable, Serializable {
val contentUri: Uri
get() = Uri.Builder()
.scheme("file")
.path("/android_asset")
.appendPath(filename)
.build()
}
class License(val name: String, val abbreviation: String, val filename: String) : Parcelable, Serializable