mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
shortDescription attribute
This commit is contained in:
parent
554cda8fdc
commit
86bf0dbdcb
@ -33,20 +33,30 @@ class MainActivity : AppCompatActivity() {
|
|||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)
|
val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)
|
||||||
RetrofitInstance.url=sharedPreferences.getString("instance", "https://pipedapi.kavin.rocks/")!!
|
RetrofitInstance.url=sharedPreferences.getString("instance", "https://pipedapi.kavin.rocks/")!!
|
||||||
|
|
||||||
DynamicColors.applyToActivitiesIfAvailable(application)
|
DynamicColors.applyToActivitiesIfAvailable(application)
|
||||||
|
|
||||||
|
|
||||||
setContentView(R.layout.activity_main)
|
setContentView(R.layout.activity_main)
|
||||||
|
|
||||||
bottomNavigationView = findViewById(R.id.bottomNav)
|
bottomNavigationView = findViewById(R.id.bottomNav)
|
||||||
|
|
||||||
|
|
||||||
navController = findNavController(R.id.fragment)
|
navController = findNavController(R.id.fragment)
|
||||||
bottomNavigationView.setupWithNavController(navController)
|
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)
|
toolbar = findViewById(R.id.toolbar)
|
||||||
val hexColor = String.format("#%06X", 0xFFFFFF and 0xcc322d)
|
val hexColor = String.format("#%06X", 0xFFFFFF and 0xcc322d)
|
||||||
@ -91,8 +101,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||||
|
@ -4,7 +4,8 @@ data class SearchItem(
|
|||||||
var url: String?,
|
var url: String?,
|
||||||
var thumbnail: String?,
|
var thumbnail: String?,
|
||||||
var uploaderName: String?,
|
var uploaderName: String?,
|
||||||
var uploaded: String?,
|
var uploaded: Long?,
|
||||||
|
var shortDescription: String?,
|
||||||
//Video only attributes
|
//Video only attributes
|
||||||
var title: String?,
|
var title: String?,
|
||||||
var uploaderUrl: String?,
|
var uploaderUrl: String?,
|
||||||
@ -20,5 +21,5 @@ data class SearchItem(
|
|||||||
var videos: Long? = -1,
|
var videos: Long? = -1,
|
||||||
var verified: Boolean? = null
|
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 duration: Long?,
|
||||||
var views: Long?,
|
var views: Long?,
|
||||||
var uploaderVerified: Boolean?,
|
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