From 315de5963be48d0507961f06762fb640b680bc43 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 12 Sep 2022 14:50:33 +0200 Subject: [PATCH 1/2] fix autoply --- .../main/java/com/github/libretube/views/CustomExoPlayerView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/views/CustomExoPlayerView.kt b/app/src/main/java/com/github/libretube/views/CustomExoPlayerView.kt index ece7af0af..0c94e9a72 100644 --- a/app/src/main/java/com/github/libretube/views/CustomExoPlayerView.kt +++ b/app/src/main/java/com/github/libretube/views/CustomExoPlayerView.kt @@ -56,7 +56,7 @@ internal class CustomExoPlayerView( */ var autoplayEnabled = PreferenceHelper.getBoolean( PreferenceKeys.AUTO_PLAY, - false + true ) private val seekIncrement = PreferenceHelper.getString( From 04b171b99ae9f8c7a4583d49ec682642bd218c75 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 12 Sep 2022 14:55:34 +0200 Subject: [PATCH 2/2] fix bottom nav moving with keyboard --- app/src/main/AndroidManifest.xml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 77fd1d9b4..b2d5fd716 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -48,7 +48,8 @@ android:hardwareAccelerated="true" android:launchMode="singleTop" android:screenOrientation="user" - android:supportsPictureInPicture="true"> + android:supportsPictureInPicture="true" + android:windowSoftInputMode="adjustPan"> @@ -65,7 +66,8 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_gradient_round" android:supportsPictureInPicture="true" - android:targetActivity=".activities.MainActivity"> + android:targetActivity=".activities.MainActivity" + android:windowSoftInputMode="adjustPan"> @@ -82,7 +84,8 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_fire_round" android:supportsPictureInPicture="true" - android:targetActivity=".activities.MainActivity"> + android:targetActivity=".activities.MainActivity" + android:windowSoftInputMode="adjustPan"> @@ -99,7 +102,8 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_flame_round" android:supportsPictureInPicture="true" - android:targetActivity=".activities.MainActivity"> + android:targetActivity=".activities.MainActivity" + android:windowSoftInputMode="adjustPan"> @@ -116,7 +120,8 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_shaped_round" android:supportsPictureInPicture="true" - android:targetActivity=".activities.MainActivity"> + android:targetActivity=".activities.MainActivity" + android:windowSoftInputMode="adjustPan"> @@ -133,7 +138,8 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_torch_round" android:supportsPictureInPicture="true" - android:targetActivity=".activities.MainActivity"> + android:targetActivity=".activities.MainActivity" + android:windowSoftInputMode="adjustPan"> @@ -150,7 +156,8 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_legacy_round" android:supportsPictureInPicture="true" - android:targetActivity=".activities.MainActivity"> + android:targetActivity=".activities.MainActivity" + android:windowSoftInputMode="adjustPan"> @@ -167,7 +174,8 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_bird_round" android:supportsPictureInPicture="true" - android:targetActivity=".activities.MainActivity"> + android:targetActivity=".activities.MainActivity" + android:windowSoftInputMode="adjustPan">