mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
shortDescription attribute
This commit is contained in:
parent
554cda8fdc
commit
86bf0dbdcb
@ -33,20 +33,30 @@ class MainActivity : AppCompatActivity() {
|
||||
super.onCreate(savedInstanceState)
|
||||
val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)
|
||||
RetrofitInstance.url=sharedPreferences.getString("instance", "https://pipedapi.kavin.rocks/")!!
|
||||
|
||||
DynamicColors.applyToActivitiesIfAvailable(application)
|
||||
|
||||
|
||||
setContentView(R.layout.activity_main)
|
||||
|
||||
bottomNavigationView = findViewById(R.id.bottomNav)
|
||||
|
||||
|
||||
navController = findNavController(R.id.fragment)
|
||||
bottomNavigationView.setupWithNavController(navController)
|
||||
|
||||
|
||||
|
||||
|
||||
bottomNavigationView.setOnItemSelectedListener {
|
||||
when(it.itemId){
|
||||
R.id.home2 -> {
|
||||
navController.navigate(R.id.home2)
|
||||
true
|
||||
}
|
||||
R.id.subscriptions -> {
|
||||
navController.navigate(R.id.subscriptions)
|
||||
true
|
||||
}
|
||||
R.id.library -> {
|
||||
navController.navigate(R.id.library)
|
||||
true
|
||||
}
|
||||
}
|
||||
false
|
||||
}
|
||||
|
||||
toolbar = findViewById(R.id.toolbar)
|
||||
val hexColor = String.format("#%06X", 0xFFFFFF and 0xcc322d)
|
||||
@ -91,8 +101,6 @@ class MainActivity : AppCompatActivity() {
|
||||
finish()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||
|
@ -4,7 +4,8 @@ data class SearchItem(
|
||||
var url: String?,
|
||||
var thumbnail: String?,
|
||||
var uploaderName: String?,
|
||||
var uploaded: String?,
|
||||
var uploaded: Long?,
|
||||
var shortDescription: String?,
|
||||
//Video only attributes
|
||||
var title: String?,
|
||||
var uploaderUrl: String?,
|
||||
@ -20,5 +21,5 @@ data class SearchItem(
|
||||
var videos: Long? = -1,
|
||||
var verified: Boolean? = null
|
||||
){
|
||||
constructor() : this("","","","","","","","",0,0,null)
|
||||
constructor() : this("","","",0,"","","","","",0,0,null)
|
||||
}
|
||||
|
@ -11,7 +11,8 @@ data class StreamItem(
|
||||
var duration: Long?,
|
||||
var views: Long?,
|
||||
var uploaderVerified: Boolean?,
|
||||
var uploaded: Long?
|
||||
var uploaded: Long?,
|
||||
var shortDescription: String?
|
||||
){
|
||||
constructor() : this("","","","","","","",0,0,null,0)
|
||||
constructor() : this("","","","","","","",0,0,null,0,"")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user