mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
fix layout
This commit is contained in:
parent
2151fd2dc9
commit
a75d8f7225
@ -604,8 +604,10 @@ class PlayerFragment : BaseFragment() {
|
||||
context.getString(R.string.none)
|
||||
}
|
||||
// set the playback speed
|
||||
currentPlaybackSpeed = "${exoPlayer.playbackParameters.speed.toString()
|
||||
.replace(".0", "")}x"
|
||||
currentPlaybackSpeed = "${
|
||||
exoPlayer.playbackParameters.speed.toString()
|
||||
.replace(".0", "")
|
||||
}x"
|
||||
// set the quality text
|
||||
val isAdaptive = exoPlayer.videoFormat?.codecs != null
|
||||
val quality = exoPlayer.videoSize.height
|
||||
|
@ -163,14 +163,18 @@ class SubscriptionsFragment : BaseFragment() {
|
||||
"4"
|
||||
).toInt()
|
||||
)
|
||||
} else LinearLayoutManager(context)
|
||||
} else {
|
||||
LinearLayoutManager(context)
|
||||
}
|
||||
|
||||
// set the adapter of the subscribed channels
|
||||
binding.subChannels.adapter = if (legacySubscriptions) {
|
||||
LegacySubscriptionAdapter(viewModel.subscriptions.value!!)
|
||||
} else SubscriptionChannelAdapter(
|
||||
viewModel.subscriptions.value!!.toMutableList()
|
||||
)
|
||||
} else {
|
||||
SubscriptionChannelAdapter(
|
||||
viewModel.subscriptions.value!!.toMutableList()
|
||||
)
|
||||
}
|
||||
|
||||
binding.subFeedContainer.visibility = View.GONE
|
||||
binding.subChannelsContainer.visibility =
|
||||
|
@ -26,7 +26,8 @@ import java.util.concurrent.TimeUnit
|
||||
class NotificationHelper(
|
||||
private val context: Context
|
||||
) {
|
||||
val NotificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||
val NotificationManager =
|
||||
context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||
|
||||
// the id where notification channels start
|
||||
private var notificationId = NotificationManager.activeNotifications.size + 5
|
||||
|
@ -15,8 +15,9 @@
|
||||
|
||||
<HorizontalScrollView
|
||||
android:id="@+id/filter_bar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="10dp"
|
||||
android:scrollbars="none"
|
||||
app:layout_constraintBottom_toTopOf="@id/recycler_view"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
@ -27,8 +28,6 @@
|
||||
android:id="@+id/filter_chip_group"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
app:checkedChip="@id/chip_all"
|
||||
app:selectionRequired="true"
|
||||
app:singleLine="true"
|
||||
|
Loading…
x
Reference in New Issue
Block a user