Skip to content

Commit

Permalink
Merge pull request TeamNewPipe/NewPipe#5544 from mhmdanas/remove-cont…
Browse files Browse the repository at this point in the history
…ent-uri

Remove License#contentUri
  • Loading branch information
TobiGr authored and tossj committed Apr 21, 2021
1 parent 3b4ea60 commit 2a7eb7a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/src/main/java/org/schabi/newpipelegacy/about/License.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.schabi.newpipelegacy.about

import android.net.Uri
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
import java.io.Serializable
Expand All @@ -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

0 comments on commit 2a7eb7a

Please sign in to comment.