diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 88ea6ba64..8f5d7d3c2 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -11,32 +11,32 @@
+ android:theme="@style/Theme.Purple">
+ android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
+ android:supportsPictureInPicture="true">
@@ -44,16 +44,16 @@
+ android:icon="@mipmap/ic_gradient"
+ android:label="@string/app_name"
+ android:roundIcon="@mipmap/ic_gradient_round"
+ android:supportsPictureInPicture="true"
+ android:targetActivity=".MainActivity">
@@ -61,16 +61,16 @@
+ android:icon="@mipmap/ic_fire"
+ android:label="@string/app_name"
+ android:roundIcon="@mipmap/ic_fire_round"
+ android:supportsPictureInPicture="true"
+ android:targetActivity=".MainActivity">
@@ -78,16 +78,16 @@
+ android:icon="@mipmap/ic_flame"
+ android:label="@string/app_name"
+ android:roundIcon="@mipmap/ic_flame_round"
+ android:supportsPictureInPicture="true"
+ android:targetActivity=".MainActivity">
@@ -95,16 +95,16 @@
+ android:icon="@mipmap/ic_shaped"
+ android:label="@string/app_name"
+ android:roundIcon="@mipmap/ic_shaped_round"
+ android:supportsPictureInPicture="true"
+ android:targetActivity=".MainActivity">
@@ -112,16 +112,16 @@
+ android:icon="@mipmap/ic_torch"
+ android:label="@string/app_name"
+ android:roundIcon="@mipmap/ic_torch_round"
+ android:supportsPictureInPicture="true"
+ android:targetActivity=".MainActivity">
@@ -129,16 +129,16 @@
+ android:icon="@mipmap/ic_legacy"
+ android:label="@string/app_name"
+ android:roundIcon="@mipmap/ic_legacy_round"
+ android:supportsPictureInPicture="true"
+ android:targetActivity=".MainActivity">
@@ -146,16 +146,16 @@
+ android:icon="@mipmap/ic_bird"
+ android:label="@string/app_name"
+ android:roundIcon="@mipmap/ic_bird_round"
+ android:supportsPictureInPicture="true"
+ android:targetActivity=".MainActivity">
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 1f81707c6..54fe27fd7 100644
--- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt
+++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt
@@ -267,8 +267,12 @@ class PlayerFragment : Fragment() {
toggleComments()
}
- // FullScreen button trigger
val fullScreenButton = view.findViewById(R.id.fullscreen)
+ val exoTitle = view.findViewById(R.id.exo_title)
+ val mainContainer = view.findViewById(R.id.main_container)
+ val linLayout = view.findViewById(R.id.linLayout)
+
+ // FullScreen button trigger
fullScreenButton.setOnClickListener {
exoPlayerView.hideController()
if (!isFullScreen) {
@@ -276,24 +280,29 @@ class PlayerFragment : Fragment() {
getConstraintSet(R.id.start).constrainHeight(R.id.player, -1)
enableTransition(R.id.yt_transition, false)
}
- view.findViewById(R.id.main_container).isClickable = true
- view.findViewById(R.id.linLayout).visibility = View.GONE
+
+ mainContainer.isClickable = true
+ linLayout.visibility = View.GONE
fullScreenButton.setImageResource(R.drawable.ic_fullscreen_exit)
+ exoTitle.visibility = View.VISIBLE
+
val mainActivity = activity as MainActivity
mainActivity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE
- isFullScreen = true
} else {
with(motionLayout) {
getConstraintSet(R.id.start).constrainHeight(R.id.player, 0)
enableTransition(R.id.yt_transition, true)
}
- view.findViewById(R.id.main_container).isClickable = false
- view.findViewById(R.id.linLayout).visibility = View.VISIBLE
+
+ mainContainer.isClickable = false
+ linLayout.visibility = View.VISIBLE
fullScreenButton.setImageResource(R.drawable.ic_fullscreen)
+ exoTitle.visibility = View.INVISIBLE
+
val mainActivity = activity as MainActivity
mainActivity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT
- isFullScreen = false
}
+ isFullScreen = !isFullScreen
}
// switching between original aspect ratio (black bars) and zoomed to fill device screen
@@ -556,6 +565,7 @@ class PlayerFragment : Fragment() {
context?.getString(R.string.views, response.views.formatShort()) +
" • " + response.uploadDate
view.findViewById(R.id.textLike).text = response.likes.formatShort()
+ view.findViewById(R.id.textDislike).text = response.dislikes.formatShort()
val channelImage = view.findViewById(R.id.player_channelImage)
Picasso.get().load(response.uploaderAvatar).into(channelImage)
view.findViewById(R.id.player_channelName).text = response.uploader
@@ -564,6 +574,8 @@ class PlayerFragment : Fragment() {
view.findViewById(R.id.player_title).text = response.title
view.findViewById(R.id.player_description).text = response.description
+ view.findViewById(R.id.exo_title).text = response.title
+
// Listener for play and pause icon change
exoPlayer.addListener(object : Player.Listener {
override fun onIsPlayingChanged(isPlaying: Boolean) {
@@ -758,7 +770,7 @@ class PlayerFragment : Fragment() {
val defres = PreferenceHelper.getString(requireContext(), "default_res", "")!!
val qualityText = view.findViewById(R.id.quality_text)
- val qualitySelect = view.findViewById(R.id.quality_select)
+ val qualitySelect = view.findViewById(R.id.quality_linLayout)
var videosNameArray: Array = arrayOf()
var videosUrlArray: Array = arrayOf()
@@ -941,12 +953,14 @@ class PlayerFragment : Fragment() {
}
private fun lockPlayer(isLocked: Boolean) {
- val visibility = if (isLocked) View.VISIBLE else View.GONE
- exoPlayerView.findViewById(R.id.controls_top_right).visibility = visibility
+ val visibility = if (isLocked) View.VISIBLE else View.INVISIBLE
+ exoPlayerView.findViewById(R.id.exo_top_bar_right).visibility = visibility
exoPlayerView.findViewById(R.id.exo_play_pause).visibility = visibility
exoPlayerView.findViewById
+ android:layout_height="match_parent"
+ android:orientation="vertical" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/channel_search_row.xml b/app/src/main/res/layout/channel_search_row.xml
index bd82790a1..c52c4c0cd 100644
--- a/app/src/main/res/layout/channel_search_row.xml
+++ b/app/src/main/res/layout/channel_search_row.xml
@@ -16,10 +16,10 @@
@@ -29,9 +29,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
- android:textSize="16sp"
+ android:ellipsize="end"
android:maxLines="1"
- android:ellipsize="end" />
+ android:textSize="16sp" />
@@ -35,7 +35,7 @@
android:layout_alignParentEnd="true"
android:backgroundTint="?attr/colorOnPrimary"
android:text="@string/unsubscribe"
- android:textSize="11dp"
android:textColor="?android:attr/textColorPrimary"
+ android:textSize="11dp"
app:cornerRadius="20dp" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/chapter_column.xml b/app/src/main/res/layout/chapter_column.xml
index 4f5171ea4..bc9a2f45d 100644
--- a/app/src/main/res/layout/chapter_column.xml
+++ b/app/src/main/res/layout/chapter_column.xml
@@ -1,9 +1,9 @@
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="10dp"
+ android:orientation="vertical">
diff --git a/app/src/main/res/layout/comments_row.xml b/app/src/main/res/layout/comments_row.xml
index d764f3b71..a694c0029 100644
--- a/app/src/main/res/layout/comments_row.xml
+++ b/app/src/main/res/layout/comments_row.xml
@@ -2,8 +2,8 @@
+ android:layout_height="wrap_content"
+ android:background="?android:attr/selectableItemBackground">
+ android:paddingBottom="16dp"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent">
+ android:layout_marginTop="4dp"
+ android:visibility="gone"
+ app:srcCompat="@drawable/ic_verified" />
+ android:layout_marginTop="4dp"
+ android:visibility="gone"
+ app:srcCompat="@drawable/ic_pinned" />
+ android:visibility="gone"
+ app:srcCompat="@drawable/ic_hearted" />
diff --git a/app/src/main/res/layout/dialog_addtoplaylist.xml b/app/src/main/res/layout/dialog_addtoplaylist.xml
index f8bbb2632..04e3bc172 100644
--- a/app/src/main/res/layout/dialog_addtoplaylist.xml
+++ b/app/src/main/res/layout/dialog_addtoplaylist.xml
@@ -22,8 +22,8 @@
+ android:layout_marginRight="16dp"
+ android:text="@string/addToPlaylist" />
diff --git a/app/src/main/res/layout/dialog_create_playlist.xml b/app/src/main/res/layout/dialog_create_playlist.xml
index 50c0e4780..4a78eb664 100644
--- a/app/src/main/res/layout/dialog_create_playlist.xml
+++ b/app/src/main/res/layout/dialog_create_playlist.xml
@@ -1,17 +1,17 @@
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
@@ -29,19 +29,19 @@
+ android:gravity="right"
+ android:orientation="horizontal">
+ style="@style/CustomDialogButton"
+ android:text="@string/cancel" />
+ android:layout_marginRight="16dp"
+ android:text="@string/createPlaylist" />
diff --git a/app/src/main/res/layout/dialog_custom_instance.xml b/app/src/main/res/layout/dialog_custom_instance.xml
index 46c5d5f0b..2343e3bf5 100644
--- a/app/src/main/res/layout/dialog_custom_instance.xml
+++ b/app/src/main/res/layout/dialog_custom_instance.xml
@@ -1,17 +1,17 @@
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
@@ -40,29 +40,29 @@
+ android:gravity="end"
+ android:orientation="horizontal">
+ style="@style/CustomDialogButton"
+ android:text="@string/cancel" />
+ android:layout_marginRight="16dp"
+ android:text="@string/addInstance" />
diff --git a/app/src/main/res/layout/dialog_delete_account.xml b/app/src/main/res/layout/dialog_delete_account.xml
index 160472415..8eee7ae87 100644
--- a/app/src/main/res/layout/dialog_delete_account.xml
+++ b/app/src/main/res/layout/dialog_delete_account.xml
@@ -1,16 +1,16 @@
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
@@ -28,19 +28,19 @@
+ android:gravity="right"
+ android:orientation="horizontal">
+ style="@style/CustomDialogButton"
+ android:text="@string/cancel" />
+ android:layout_marginRight="16dp"
+ android:text="@string/deleteAccount" />
diff --git a/app/src/main/res/layout/dialog_download.xml b/app/src/main/res/layout/dialog_download.xml
index f4a8bf418..b77541111 100644
--- a/app/src/main/res/layout/dialog_download.xml
+++ b/app/src/main/res/layout/dialog_download.xml
@@ -1,17 +1,17 @@
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+ android:layout_marginRight="16dp"
+ android:text="@string/download" />
diff --git a/app/src/main/res/layout/dialog_login.xml b/app/src/main/res/layout/dialog_login.xml
index a5a1bdaa9..14ff19d95 100644
--- a/app/src/main/res/layout/dialog_login.xml
+++ b/app/src/main/res/layout/dialog_login.xml
@@ -1,17 +1,17 @@
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
@@ -29,10 +29,10 @@
@@ -40,19 +40,19 @@
+ android:gravity="right"
+ android:orientation="horizontal">
+ style="@style/CustomDialogButton"
+ android:text="@string/register" />
+ android:layout_marginRight="16dp"
+ android:text="@string/login" />
diff --git a/app/src/main/res/layout/dialog_logout.xml b/app/src/main/res/layout/dialog_logout.xml
index d2a66be03..4d3bb82ad 100644
--- a/app/src/main/res/layout/dialog_logout.xml
+++ b/app/src/main/res/layout/dialog_logout.xml
@@ -1,29 +1,29 @@
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+ android:text="@string/already_logged_in" />
+ style="@style/CustomDialogButton"
+ android:text="@string/logout" />
diff --git a/app/src/main/res/layout/exo_styled_player_control_view.xml b/app/src/main/res/layout/exo_styled_player_control_view.xml
index 6c1566c57..02d9d5655 100644
--- a/app/src/main/res/layout/exo_styled_player_control_view.xml
+++ b/app/src/main/res/layout/exo_styled_player_control_view.xml
@@ -12,8 +12,8 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
+