mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 19:12:45 +01:00
Merge pull request #5544 from mhmdanas/remove-content-uri
Remove License#contentUri
This commit is contained in:
commit
8c75b96c38
@ -1,6 +1,5 @@
|
|||||||
package org.schabi.newpipe.about
|
package org.schabi.newpipe.about
|
||||||
|
|
||||||
import android.net.Uri
|
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import kotlinx.android.parcel.Parcelize
|
import kotlinx.android.parcel.Parcelize
|
||||||
import java.io.Serializable
|
import java.io.Serializable
|
||||||
@ -9,11 +8,4 @@ import java.io.Serializable
|
|||||||
* Class for storing information about a software license.
|
* Class for storing information about a software license.
|
||||||
*/
|
*/
|
||||||
@Parcelize
|
@Parcelize
|
||||||
class License(val name: String, val abbreviation: String, val filename: String) : Parcelable, Serializable {
|
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()
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user