diff --git a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt index b05624a71..51ceca53a 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -892,7 +892,7 @@ class PlayerFragment : Fragment() { } if (response.hls != null) { - binding.relPlayerVlc.setOnClickListener { + binding.relPlayerOpen.setOnClickListener { // start an intent with video as mimetype using the hls stream val uri: Uri = Uri.parse(response.hls) val intent = Intent() @@ -904,7 +904,11 @@ class PlayerFragment : Fragment() { intent.putExtra("artist", uploader) intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) - startActivity(intent) + try { + startActivity(intent) + } catch (e: Exception) { + Toast.makeText(context, R.string.no_player_found, Toast.LENGTH_SHORT).show() + } } } if (relatedStreamsEnabled) { diff --git a/app/src/main/java/com/github/libretube/fragments/SubscriptionsFragment.kt b/app/src/main/java/com/github/libretube/fragments/SubscriptionsFragment.kt index 6e40f18cb..9c3a07aae 100644 --- a/app/src/main/java/com/github/libretube/fragments/SubscriptionsFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/SubscriptionsFragment.kt @@ -72,7 +72,6 @@ class SubscriptionsFragment : Fragment() { var loadedSubbedChannels = false binding.toggleSubs.setOnClickListener { - binding.toggle.animate().rotationBy(180F).setDuration(100).start() if (!binding.subChannels.isVisible) { if (!loadedSubbedChannels) { binding.subChannels.layoutManager = LinearLayoutManager(context) diff --git a/app/src/main/java/com/github/libretube/preferences/AboutFragment.kt b/app/src/main/java/com/github/libretube/preferences/AboutFragment.kt index 0605e6707..e998267f3 100644 --- a/app/src/main/java/com/github/libretube/preferences/AboutFragment.kt +++ b/app/src/main/java/com/github/libretube/preferences/AboutFragment.kt @@ -16,7 +16,6 @@ import com.github.libretube.R import com.github.libretube.WEBSITE_URL import com.github.libretube.activities.SettingsActivity import com.github.libretube.databinding.FragmentAboutBinding -import com.github.libretube.util.ThemeHelper.getThemeColor import com.google.android.material.dialog.MaterialAlertDialogBuilder import com.google.android.material.snackbar.Snackbar @@ -94,10 +93,6 @@ class AboutFragment : Fragment() { val snackBar = Snackbar .make(binding.root, text, Snackbar.LENGTH_LONG) - // set snackBar color - snackBar.setBackgroundTint(getThemeColor(requireContext(), R.attr.colorSurface)) - snackBar.setTextColor(getThemeColor(requireContext(), R.attr.colorPrimary)) - // prevent the text from being partially hidden snackBar.setTextMaxLines(3) diff --git a/app/src/main/res/layout/fragment_player.xml b/app/src/main/res/layout/fragment_player.xml index 6584543e2..892f10cbf 100644 --- a/app/src/main/res/layout/fragment_player.xml +++ b/app/src/main/res/layout/fragment_player.xml @@ -185,7 +185,7 @@ + android:textSize="15sp" /> - + android:textSize="17sp" /> + android:src="@drawable/ic_arrow_up_down" /> - + diff --git a/app/src/main/res/layout/fragment_subscriptions.xml b/app/src/main/res/layout/fragment_subscriptions.xml index 68a377c56..fda53e70d 100644 --- a/app/src/main/res/layout/fragment_subscriptions.xml +++ b/app/src/main/res/layout/fragment_subscriptions.xml @@ -1,5 +1,6 @@ - + android:layout_marginStart="16dp" + android:layout_marginTop="16dp" + android:layout_marginEnd="16dp" + android:layout_marginBottom="16dp" + android:visibility="gone" + app:cardCornerRadius="18dp"> - - - - - - - - - - + android:layout_margin="8dp"> - + + + + + + + + + android:nestedScrollingEnabled="false" + android:visibility="gone" /> - - + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ec330ecf6..1697d78cf 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -241,4 +241,5 @@ Automatically switch to player fullscreen when the device gets turned. Pure theme Pure white/black theme + No external player found. Please make sure you have one installed. \ No newline at end of file